5 #include <boost/assign.hpp>
10 #include <cmn/buildinfo.h>
12 #include <sandesh/sandesh_types.h>
13 #include <sandesh/sandesh.h>
14 #include <sandesh/request_pipeline.h>
39 const char *config_exclude_list[] = {
48 "ifmap::StateMachine",
50 "http::RequestHandlerTask",
53 int arraysize =
sizeof(config_exclude_list) /
sizeof(
char *);
54 for (
int i = 0; i < arraysize; ++i) {
55 int task_id = scheduler->
GetTaskId(config_exclude_list[i]);
61 const char *bindstatus_exclude_list[] = {
66 "http::RequestHandlerTask",
68 arraysize =
sizeof(bindstatus_exclude_list) /
sizeof(
char *);
70 for (
int i = 0; i < arraysize; ++i) {
71 int task_id = scheduler->
GetTaskId(bindstatus_exclude_list[i]);
static uint32_t dns_port_
The TaskScheduler keeps track of what tasks are currently schedulable. When a task is enqueued it is ...
static uint32_t xmpp_srv_port_
void SetPolicy(int task_id, TaskPolicy &policy)
Sets the task exclusion policy. Adds policy entries for the task Examples:
static XmppServer * xmpp_server_
static EventManager * event_mgr_
static bool GetBuildInfo(BuildModule id, const std::string &build_info, std::string &result)
static const uint16_t DnsServerPort()
int GetTaskId(const std::string &name)
static void SetTaskSchedulingPolicy()
static TaskScheduler * GetInstance()
static DnsAgentXmppChannelManager * agent_xmpp_channel_mgr_
static std::string host_name_
static DnsConfigManager * dns_config_mgr_
static std::string collector_
static uint32_t http_port_
std::vector< TaskExclusion > TaskPolicy
static std::string prog_name_
static std::string self_ip_
static bool GetVersion(std::string &build_info_str)
static DnsManager * dns_mgr_