#include <DSMServerApp.h>
Enumerator |
---|
RUN |
|
QUIT |
|
RESTART |
|
ERROR |
|
DSMServerApp::DSMServerApp |
( |
| ) |
|
DSMServerApp::~DSMServerApp |
( |
| ) |
|
nidas::core::DSMServerApp::DSMServerApp |
( |
const DSMServerApp & |
| ) |
|
|
private |
Dataset DSMServerApp::getDataset |
( |
| ) |
|
static DSMServerApp* nidas::core::DSMServerApp::getInstance |
( |
| ) |
|
|
inlinestatic |
const std::string& nidas::core::DSMServerApp::getXMLFileName |
( |
| ) |
|
|
inline |
What is the XML configuration file name.
References _xmlFileName.
void DSMServerApp::initLogger |
( |
| ) |
|
int DSMServerApp::initProcess |
( |
| ) |
|
void DSMServerApp::killStatusThread |
( |
| ) |
|
throw | ( | |
| ) | | |
void DSMServerApp::killXmlRpcThread |
( |
| ) |
|
throw | ( | |
| ) | | |
int DSMServerApp::main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
throw | ( | |
| ) | | |
|
static |
Run DSMServerApp from the unix command line.
References nidas::core::XMLCachingParser::destroyInstance(), DLOG, initLogger(), initProcess(), killXmlRpcThread(), parseRunstring(), PLOG, run(), startXmlRpcThread(), nidas::core::XMLImplementation::terminate(), and nidas::util::Exception::what().
Referenced by main().
int DSMServerApp::parseRunstring |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
References _app, _configsXMLName, _datasetName, _externalControl, _optionalProcessing, _xmlFileName, nidas::core::NidasAppArg::asBool(), nidas::core::NidasApp::ConfigsArg, nidas::core::NidasApp::DatasetName, nidas::core::NidasApp::DebugDaemon, nidas::core::NidasApp::enableArguments(), ExternalControl, nidas::core::NidasApp::getConfigsXML(), nidas::core::NidasAppArg::getValue(), nidas::core::NidasApp::Help, nidas::core::NidasApp::helpRequested(), nidas::core::NidasApp::Hostname, nidas::core::NidasApp::loggingArgs(), OptionalProcessing, nidas::core::NidasApp::parseArgs(), nidas::core::NidasApp::unparsedArgs(), usage(), nidas::core::NidasApp::Username, and nidas::core::NidasApp::Version.
Referenced by main().
Invoke a XMLCachingParser to parse the XML and initialize the Project.
References nidas::util::Process::expandEnvVars(), nidas::core::XMLCachingParser::getInstance(), NLOG, nidas::core::XMLCachingParser::parse(), nidas::core::XMLParser::setDOMDatatypeNormalization(), nidas::core::XMLParser::setDOMNamespaces(), nidas::core::XMLParser::setDOMValidateIfSchema(), nidas::core::XMLParser::setDOMValidation(), nidas::core::XMLParser::setXercesDoXInclude(), nidas::core::XMLParser::setXercesHandleMultipleImports(), nidas::core::XMLParser::setXercesSchema(), and nidas::core::XMLParser::setXercesSchemaFullChecking().
Referenced by run().
int DSMServerApp::run |
( |
| ) |
|
throw | ( | |
| ) | | |
References _app, _configsXMLName, _datasetName, _optionalProcessing, _runState, _xmlFileName, _xmlrpcThread, ERROR, nidas::core::Project::findServers(), nidas::core::ProjectConfigs::getConfig(), getDataset(), nidas::core::NidasApp::getHostName(), nidas::core::SampleOutputRequestThread::getInstance(), nidas::util::SocketAddress::getPort(), nidas::core::DSMServer::getStatusSocketAddr(), nidas::core::ProjectConfig::getXMLName(), nidas::core::ProjectConfig::initProject(), nidas::core::DSMServer::interruptServices(), nidas::core::DSMServer::joinServices(), killStatusThread(), nidas::core::ProjectConfigs::parseXML(), parseXMLConfigFile(), PLOG, QUIT, RUN, nidas::core::DSMServer::scheduleServices(), nidas::core::Project::setConfigName(), nidas::core::Project::setDataset(), nidas::core::DSMServerIntf::setDSMServer(), nidas::core::DSMServer::setXMLConfigFileName(), nidas::util::Thread::start(), startStatusThread(), waitForSignal(), and nidas::util::Exception::what().
Referenced by main().
void DSMServerApp::setupSignals |
( |
| ) |
|
|
private |
Create a signal mask, and block those masked signals.
DSMEngine uses sigwait, and does not register asynchronous signal handlers.
References _signalMask.
Referenced by DSMServerApp().
int DSMServerApp::usage |
( |
| ) |
|
void DSMServerApp::waitForSignal |
( |
int |
timeoutSecs | ) |
|
|
private |
NidasApp nidas::core::DSMServerApp::_app |
|
private |
std::string nidas::core::DSMServerApp::_configsXMLName |
|
private |
The xml file that contains all the project configurations, by date.
Referenced by parseRunstring(), and run().
std::string nidas::core::DSMServerApp::_datasetName |
|
private |
bool nidas::core::DSMServerApp::_debug |
|
private |
-d option.
If user wants messages on stderr rather than syslog.
bool nidas::core::DSMServerApp::_externalControl |
|
private |
pthread_t nidas::core::DSMServerApp::_myThreadId |
|
private |
bool nidas::core::DSMServerApp::_optionalProcessing |
|
private |
enum runState nidas::core::DSMServerApp::_runState |
|
private |
sigset_t nidas::core::DSMServerApp::_signalMask |
|
private |
std::string nidas::core::DSMServerApp::_xmlFileName |
|
private |
NidasAppArg nidas::core::DSMServerApp::OptionalProcessing |
|
private |
The documentation for this class was generated from the following files: