Added MetricsServer code, still needs a WinMain.cpp for windows

This commit is contained in:
Anonymous
2014-01-17 06:29:50 -07:00
parent 58b76dd538
commit 7759ffd3c0
11 changed files with 970 additions and 0 deletions
@@ -0,0 +1,89 @@
// ConfigMetricsServer.h
// copyright 2000 Verant Interactive
// Author: Justin Randall
#ifndef _ConfigMetricsServer_H
#define _ConfigMetricsServer_H
//-----------------------------------------------------------------------
class ConfigMetricsServer
{
public:
struct Data
{
const char * authenticationFileName;
const char * clusterName;
uint16 metricsListenerPort;
uint16 metricsServicePort;
bool runTestStats;
uint16 taskManagerPort;
const char * metricsServiceBindInterface;
};
static void install ();
static void remove ();
static const char* getAuthenticationFileName();
static const char* getClusterName();
static uint16 getMetricsListenerPort();
static uint16 getMetricsServicePort();
static bool getRunTestStats();
static uint16 getTaskManagerPort();
static const char* getMetricsServiceBindInterface();
private:
static Data * data;
};
//-----------------------------------------------------------------------
inline const char* ConfigMetricsServer::getAuthenticationFileName()
{
return data->authenticationFileName;
}
//-----------------------------------------------------------------------
inline const char* ConfigMetricsServer::getClusterName()
{
return data->clusterName;
}
//-----------------------------------------------------------------------
inline uint16 ConfigMetricsServer::getMetricsListenerPort()
{
return data->metricsListenerPort;
}
//-----------------------------------------------------------------------
inline uint16 ConfigMetricsServer::getMetricsServicePort()
{
return data->metricsServicePort;
}
//-----------------------------------------------------------------------
inline bool ConfigMetricsServer::getRunTestStats()
{
return data->runTestStats;
}
//-----------------------------------------------------------------------
inline uint16 ConfigMetricsServer::getTaskManagerPort()
{
return data->taskManagerPort;
}
//-----------------------------------------------------------------------
inline const char * ConfigMetricsServer::getMetricsServiceBindInterface()
{
return data->metricsServiceBindInterface;
}
//-----------------------------------------------------------------------
#endif // _ConfigMetricsServer_H