6 #include <boost/assign.hpp>
11 #include <cmn/buildinfo.h>
13 #include <sandesh/sandesh_types.h>
14 #include <sandesh/sandesh.h>
15 #include <sandesh/request_pipeline.h>
41 const char *config_exclude_list[] = {
50 "ifmap::StateMachine",
52 "http::RequestHandlerTask",
55 int arraysize =
sizeof(config_exclude_list) /
sizeof(
char *);
56 for (
int i = 0; i < arraysize; ++i) {
57 int task_id = scheduler->
GetTaskId(config_exclude_list[i]);
63 const char *bindstatus_exclude_list[] = {
68 "http::RequestHandlerTask",
70 arraysize =
sizeof(bindstatus_exclude_list) /
sizeof(
char *);
72 for (
int i = 0; i < arraysize; ++i) {
73 int task_id = scheduler->
GetTaskId(bindstatus_exclude_list[i]);
static const uint16_t DnsServerPort()
static uint32_t xmpp_srv_port_
static uint32_t dns_port_
static std::string prog_name_
static std::string host_name_
static std::string self_ip_
static std::string collector_
static void SetTaskSchedulingPolicy()
static XmppServer * xmpp_server_
static uint32_t http_port_
static DnsConfigManager * dns_config_mgr_
static DnsAgentXmppChannelManager * agent_xmpp_channel_mgr_
static DnsManager * dns_mgr_
static bool GetVersion(std::string &build_info_str)
static EventManager * event_mgr_
The TaskScheduler keeps track of what tasks are currently schedulable. When a task is enqueued it is ...
int GetTaskId(const std::string &name)
void SetPolicy(int task_id, TaskPolicy &policy)
Sets the task exclusion policy. Adds policy entries for the task Examples:
static TaskScheduler * GetInstance()
The class is used to specify a Task label for formulating a task exclusion list (an execution policy)...
std::vector< TaskExclusion > TaskPolicy
Defines a type to store an execution policy (a list of task exclusions).
const std::string BuildInfo