nidas v1.2.3
|
Base class for a service, as built from a <service>
XML tag.
More...
#include <DSMService.h>
Static Public Member Functions | |
static const std::string | getClassName (const xercesc::DOMElement *node, const Project *) |
static const XMLCh * | getNamespaceURI () |
Protected Member Functions | |
void | addSubThread (nidas::util::Thread *) throw () |
Protected Attributes | |
std::string | _name |
DSMServer * | _server |
std::set< nidas::util::Thread * > | _subThreads |
nidas::util::Mutex | _subThreadMutex |
std::list< SampleInput * > | _inputs |
std::list< SampleIOProcessor * > | _processors |
std::list< IOChannel * > | _ochans |
nidas::util::Thread::SchedPolicy | _threadPolicy |
int | _threadPriority |
Private Member Functions | |
DSMService (const DSMService &x) | |
Copying not supported. | |
DSMService & | operator= (const DSMService &x) |
Assignment not supported. | |
Static Private Attributes | |
static XMLCh * | namespaceURI = 0 |
Base class for a service, as built from a <service>
XML tag.
DSMService::DSMService | ( | const std::string & | name | ) |
Constructor.
|
virtual |
References _inputs, _ochans, _processors, and nidas::core::getSample().
|
private |
Copying not supported.
|
inlinevirtual |
Add a processor to this RawSampleService.
This is done at configuration (XML) time.
References _processors.
Referenced by fromDOMElement().
|
protected |
References nidas::core::getSample().
|
virtual |
References _subThreadMutex, _subThreads, nidas::core::getSample(), and LOG_ERR.
|
virtual |
References _subThreadMutex, _subThreads, nidas::core::getSample(), and LOG_ERR.
|
pure virtual |
Implemented in nidas::dynld::RawSampleService, and nidas::dynld::XMLConfigService.
nidas::util::InvalidParameterException |
Implements nidas::core::DOMable.
Reimplemented in nidas::dynld::RawSampleService.
References _inputs, _ochans, _threadPolicy, _threadPriority, addProcessor(), nidas::core::IOChannel::createIOChannel(), nidas::core::DOMObjectFactory::createObject(), fromDOMElement(), getDSMServer(), getName(), nidas::core::getSample(), and LOG_WARNING.
Referenced by fromDOMElement(), and nidas::dynld::RawSampleService::fromDOMElement().
|
static |
nidas::util::InvalidParameterException |
References getClassName(), and nidas::core::getSample().
Referenced by nidas::core::DSMServer::fromDOMElement(), and getClassName().
References _server.
Referenced by fromDOMElement(), nidas::dynld::RawSampleService::fromDOMElement(), and nidas::dynld::RawSampleService::schedule().
|
inline |
References _inputs.
Referenced by nidas::dynld::RawSampleService::schedule().
|
inline |
References _name.
Referenced by fromDOMElement(), nidas::dynld::RawSampleService::fromDOMElement(), and nidas::dynld::RawSampleService::schedule().
References nidas::core::DOMable::namespaceURI.
Referenced by nidas::dynld::UDPSampleOutput::getProjectDOM(), nidas::core::Dataset::toDOMElement(), nidas::core::ProjectConfig::toDOMElement(), nidas::core::Dataset::toDOMParent(), nidas::core::Datasets::toDOMParent(), nidas::core::ProjectConfig::toDOMParent(), nidas::core::ProjectConfigs::toDOMParent(), nidas::core::DSMConfig::toDOMParent(), nidas::core::DSMSensor::toDOMParent(), nidas::core::Project::toDOMParent(), nidas::core::SampleTag::toDOMParent(), nidas::core::Site::toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
ProcessorIterator DSMService::getProcessorIterator | ( | ) | const |
Referenced by nidas::dynld::RawSampleService::printStatus().
|
inlinevirtual |
References _processors.
Referenced by nidas::dynld::RawSampleService::interrupt().
|
inline |
References _threadPolicy.
|
inline |
References _threadPriority.
|
virtual |
Reimplemented in nidas::dynld::RawSampleService, and nidas::dynld::XMLConfigService.
References _subThreadMutex, _subThreads, nidas::core::getSample(), and LOG_ERR.
Referenced by nidas::dynld::RawSampleService::interrupt(), and nidas::dynld::XMLConfigService::interrupt().
|
virtual |
References _subThreadMutex, _subThreads, nidas::core::getSample(), and LOG_ERR.
|
private |
Assignment not supported.
Reimplemented in nidas::dynld::RawSampleService.
|
inlinevirtual |
Reimplemented in nidas::dynld::RawSampleService.
schedule this service to run.
nidas::util::Exception |
Implemented in nidas::dynld::RawSampleService, and nidas::dynld::XMLConfigService.
References _server, and nidas::core::getSample().
|
virtualinherited |
Add my content into a DOMElement.
xercesc::DOMException |
Reimplemented in nidas::core::DSMConfig, nidas::core::DSMSensor, nidas::core::Project, nidas::core::SampleTag, nidas::core::Site, nidas::core::ServerSocket, and nidas::core::Variable.
Referenced by nidas::core::ServerSocket::toDOMParent().
|
virtualinherited |
Create a DOMElement and append it to the parent.
xercesc::DOMException |
Reimplemented in nidas::core::DSMConfig, nidas::core::DSMSensor, nidas::core::Project, nidas::core::SampleTag, nidas::core::Site, nidas::core::ServerSocket, and nidas::core::Variable.
|
protected |
Referenced by fromDOMElement(), nidas::dynld::RawSampleService::fromDOMElement(), getInputs(), and ~DSMService().
|
protected |
Referenced by getName().
|
protected |
|
protected |
Referenced by addProcessor(), getProcessors(), nidas::dynld::RawSampleService::schedule(), and ~DSMService().
|
protected |
Referenced by getDSMServer(), and setDSMServer().
|
protected |
Referenced by cancel(), checkSubThreads(), interrupt(), and join().
|
protected |
Referenced by cancel(), checkSubThreads(), interrupt(), and join().
|
protected |
Referenced by fromDOMElement(), and getSchedPolicy().
|
protected |
Referenced by fromDOMElement(), and getSchedPriority().
|
staticprivateinherited |
Referenced by nidas::core::DOMable::getNamespaceURI().