summaryrefslogtreecommitdiff
path: root/lib/top_block_query.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-09-15 22:18:03 -0700
committerJosh Blum2013-09-15 22:18:03 -0700
commit4f50f9d0c52b1efd09d1f7ed7aadbfef94949eb2 (patch)
tree9de5be6ce362241ba53aec8d393dc24f13f69252 /lib/top_block_query.cpp
parent4f00d9b66ff6813da0e9fc986fb6fe5d7c693e52 (diff)
parentadfedc68b7f4348a0aad7e5e63a74b0c412ec128 (diff)
downloadsandhi-4f50f9d0c52b1efd09d1f7ed7aadbfef94949eb2.tar.gz
sandhi-4f50f9d0c52b1efd09d1f7ed7aadbfef94949eb2.tar.bz2
sandhi-4f50f9d0c52b1efd09d1f7ed7aadbfef94949eb2.zip
Merge branch 'gr_update'
Diffstat (limited to 'lib/top_block_query.cpp')
-rw-r--r--lib/top_block_query.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/top_block_query.cpp b/lib/top_block_query.cpp
index ccc5c29..68a56ef 100644
--- a/lib/top_block_query.cpp
+++ b/lib/top_block_query.cpp
@@ -31,7 +31,7 @@ static ptree query_blocks(ElementImpl *self, const ptree &)
{
ptree root;
ptree e;
- BOOST_FOREACH(Apology::Worker *w, self->executor->get_workers())
+ BOOST_FOREACH(Apology::Worker *w, self->topology->get_workers())
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
ptree prop_e;
@@ -61,7 +61,7 @@ static ptree query_stats(ElementImpl *self, const ptree &query)
//get stats with custom receiver and set high prio
GetStatsReceiver receiver;
size_t outstandingCount(0);
- BOOST_FOREACH(Apology::Worker *w, self->executor->get_workers())
+ BOOST_FOREACH(Apology::Worker *w, self->topology->get_workers())
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
@@ -93,7 +93,7 @@ static ptree query_stats(ElementImpl *self, const ptree &query)
//thread pool counts
std::set<ThreadPool> thread_pools;
- BOOST_FOREACH(Apology::Worker *w, self->executor->get_workers())
+ BOOST_FOREACH(Apology::Worker *w, self->topology->get_workers())
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
thread_pools.insert(actor->thread_pool);
@@ -161,7 +161,7 @@ static ptree query_calls(ElementImpl *self, const ptree &query)
ptree root;
const std::string block_id = query.get<std::string>("block");
const std::string call_name = query.get<std::string>("name");
- BOOST_FOREACH(Apology::Worker *w, self->executor->get_workers())
+ BOOST_FOREACH(Apology::Worker *w, self->topology->get_workers())
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
if (actor->data->block->get_uid() != block_id) continue;
@@ -189,7 +189,7 @@ static std::string query_topology(ElementImpl *self, const ptree &query)
buff += "rankdir=LR;\n";
buff += "node [shape=record, fontsize=10];\n";
- BOOST_FOREACH(Apology::Worker *w, self->executor->get_workers())
+ BOOST_FOREACH(Apology::Worker *w, self->topology->get_workers())
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
std::string in_ports_str, out_ports_str;
@@ -222,7 +222,7 @@ static std::string query_topology(ElementImpl *self, const ptree &query)
);
}
- BOOST_FOREACH(const Apology::Flow &flow, self->executor->get_flat_flows())
+ BOOST_FOREACH(const Apology::Flow &flow, self->topology->get_flat_flows())
{
buff += str(boost::format("%u:out%u -> %u:in%u;\n")
% dynamic_cast<const Apology::Worker *>(flow.src.elem)->get_actor()->GetAddress().AsInteger()