/* $Id: //depot/tools/main/performance/perfstat_cluster/src/threadHandler.hpp#35 $ */ #ifndef THREADHANDLER_H #define THREADHANDLER_H #include #include #ifndef WIN32 #include #include #endif using namespace boost; using namespace std; class threadHandler { presetHandler presetHandle; CLIHandler* cliHandle; outputHandler* commonOutputHandler; bool hostFlag; //added for host data collection bool switchFlag; //added for switch data collection map clusterFlag; // Added for cluster commands node* clusterNodes; // Added BURT_562755 targetSwitch* switches; public: /** empty constructor */ threadHandler() {}; /** constructor * takes presethandler, clihandler and vector contain all * nodes name in cluster */ threadHandler(presetHandler, CLIHandler*, outputHandler*, vector); /** start creating thread to request data * for all the nodes */ void startThreadHandler(vector, vector, vector, int, map legacyFLags); void startTimerThread(int); node* getNodes() const; bool checkConnectivity(const string& ip, CLIHandler* cliHandle, string& testCmd); }; #endif