Ejemplo n.º 1
0
void CNSInfoCollector::TraverseNodes(
    IAction<CNetScheduleAdmin::SWorkerNodeInfo>& action)
{
    std::list<CNetScheduleAdmin::SWorkerNodeInfo> worker_nodes;

    x_GetNetScheduleAPI().GetAdmin().GetWorkerNodes(worker_nodes);

    ITERATE(std::list<CNetScheduleAdmin::SWorkerNodeInfo>, it, worker_nodes) {
        action(*it);
    }
Ejemplo n.º 2
0
void CNSInfoCollector::GetQueues(CNetScheduleAdmin::TQueueList& queues)
{
    x_GetNetScheduleAPI().GetAdmin().GetQueueList(queues);
}