27 #ifndef NIDAS_CORE_DSMSERVERAPP_H
28 #define NIDAS_CORE_DSMSERVERAPP_H
39 namespace nidas {
namespace core {
56 static int main(
int argc,
char** argv)
throw();
78 nidas::util::InvalidParameterException,nidas::util::IOException);
void waitForSignal(int timeoutSecs)
Unblock and wait for signals of interest up to timeoutSecs.
Definition: DSMServerApp.cc:387
Definition: DSMServerApp.h:114
const std::string & getXMLFileName()
What is the XML configuration file name.
Definition: DSMServerApp.h:91
int initProcess()
Definition: DSMServerApp.cc:204
static DSMServerApp * _instance
Definition: DSMServerApp.h:112
Exception which can be built from an xerces::XMLException, xercesc::SAXException, or xercesc::DOMExce...
Definition: XMLException.h:43
Definition: DSMServerApp.h:114
DSMServerApp & operator=(const DSMServerApp &)
Assignment not needed.
bool _externalControl
Definition: DSMServerApp.h:138
Definition: DSMServerApp.h:46
DSMServerIntf * _xmlrpcThread
This thread provides XML-based Remote Procedure calls.
Definition: DSMServerApp.h:134
std::string _xmlFileName
The xml file that is being used for configuration information.
Definition: DSMServerApp.h:124
static int main(int argc, char **argv)
Run DSMServerApp from the unix command line.
Definition: DSMServerApp.cc:153
A Dataset is a named collection of parameters, that are used in data processing.
Definition: Datasets.h:47
Thread which provides status from a dsm_server on a datagram socket.
Definition: StatusThread.h:172
Definition: DSMServerApp.h:114
DSMServerApp()
Definition: DSMServerApp.cc:62
void startXmlRpcThread()
Definition: DSMServerApp.cc:315
Definition: DSMServerApp.h:114
enum runState _runState
Definition: DSMServerApp.h:131
int parseRunstring(int argc, char **argv)
Definition: DSMServerApp.cc:88
Dataset getDataset()
Definition: DSMServerApp.cc:456
static DSMServerApp * getInstance()
Definition: DSMServerApp.h:58
~DSMServerApp()
Definition: DSMServerApp.cc:82
int run()
Definition: DSMServerApp.cc:211
void parseXMLConfigFile(const std::string &xmlFileName, Project &)
Invoke a XMLCachingParser to parse the XML and initialize the Project.
Definition: DSMServerApp.cc:426
int usage()
Send usage message to cerr.
Definition: DSMServerApp.cc:134
NidasAppArg ExternalControl
Definition: DSMServerApp.h:150
A NidasAppArg is command-line argument which can be handled by NidasApp.
Definition: NidasApp.h:73
void startStatusThread(DSMServer *svr)
Definition: DSMServerApp.cc:340
void initLogger()
Definition: DSMServerApp.cc:199
void setupSignals()
Create a signal mask, and block those masked signals.
Definition: DSMServerApp.cc:374
A thread that provides XML-based Remote Procedure Calls to web interfaces from the DSMServer...
Definition: DSMServerIntf.h:43
runState
Definition: DSMServerApp.h:114
NidasApp handles common options for NIDAS applications.
Definition: NidasApp.h:572
NidasAppArg OptionalProcessing
Definition: DSMServerApp.h:151
DSMServerStat * _statusThread
Definition: DSMServerApp.h:136
std::string _datasetName
Definition: DSMServerApp.h:146
pthread_t _myThreadId
Definition: DSMServerApp.h:144
sigset_t _signalMask
Definition: DSMServerApp.h:142
A provider of services to a DSM.
Definition: DSMServer.h:50
bool _optionalProcessing
Definition: DSMServerApp.h:140
void killXmlRpcThread()
Definition: DSMServerApp.cc:323
static int timeoutSecs
Definition: sing.cc:62
void killStatusThread()
Definition: DSMServerApp.cc:349
std::string _configsXMLName
The xml file that contains all the project configurations, by date.
Definition: DSMServerApp.h:129
NidasApp _app
Definition: DSMServerApp.h:148
bool _debug
-d option.
Definition: DSMServerApp.h:119