nidas v1.2.3
|
A provider of services to a DSM. More...
#include <DSMServer.h>
Static Public Member Functions | |
static const XMLCh * | getNamespaceURI () |
Private Member Functions | |
DSMServer (const DSMServer &) | |
Copy not supported. | |
DSMServer & | operator= (const DSMServer &) |
Assignment not supported. | |
Private Attributes | |
std::string | _name |
Name of this server. | |
Project * | _project |
const Site * | _site |
What Site to I serve? Can be NULL if this DSMServer is not for a specific Site, but serves the Project. | |
std::list< DSMService * > | _services |
The DSMServices that we've been configured to start. | |
std::string | _xmlFileName |
nidas::util::SocketAddress * | _statusSocketAddr |
Static Private Attributes | |
static XMLCh * | namespaceURI = 0 |
A provider of services to a DSM.
DSMServer::DSMServer | ( | ) |
|
virtual |
References _services, _statusSocketAddr, and nidas::core::getSample().
|
inline |
References _services.
Referenced by fromDOMElement().
void nidas::core::DSMServer::addThread | ( | nidas::util::Thread * | thrd | ) |
nidas::util::InvalidParameterException |
Implements nidas::core::DOMable.
References addService(), nidas::core::DOMObjectFactory::createObject(), nidas::core::DSMService::getClassName(), getName(), getProject(), nidas::core::getSample(), NIDAS_MULTICAST_ADDR, port, setName(), and setStatusSocketAddr().
DSMServiceIterator DSMServer::getDSMServiceIterator | ( | ) | const |
|
inline |
References _name.
Referenced by nidas::core::Project::findServers(), and fromDOMElement().
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 DSMServer::getProcessorIterator | ( | ) | const |
References _project.
Referenced by fromDOMElement().
SampleTagIterator DSMServer::getSampleTagIterator | ( | ) | const |
SensorIterator DSMServer::getSensorIterator | ( | ) | const |
References _project, nidas::core::getSample(), nidas::core::Project::getSensorIterator(), and getSite().
Referenced by nidas::core::DSMServerStat::run().
|
inline |
References _services.
Referenced by nidas::core::DSMServerStat::run().
References _site.
Referenced by getSensorIterator().
|
inline |
References _statusSocketAddr.
Referenced by nidas::core::DSMServerStat::run().
|
inline |
References _xmlFileName.
void DSMServer::interruptServices | ( | ) | ||||
throw | ( | ) |
void DSMServer::joinServices | ( | ) | ||||
throw | ( | ) |
References _services, nidas::core::getSample(), and ILOG.
Assignment not supported.
nidas::util::Exception |
References _project, _services, nidas::core::getSample(), and nidas::core::Project::initSensors().
References _name, and nidas::core::getSample().
Referenced by fromDOMElement().
References _project, and nidas::core::getSample().
References _site, and nidas::core::getSample().
|
inline |
References _statusSocketAddr, and nidas::util::SocketAddress::clone().
Referenced by fromDOMElement().
References _xmlFileName, 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.
|
private |
|
private |
Referenced by getProject(), getSensorIterator(), scheduleServices(), and setProject().
|
private |
The DSMServices that we've been configured to start.
Referenced by addService(), getServices(), interruptServices(), joinServices(), scheduleServices(), and ~DSMServer().
|
private |
Referenced by getStatusSocketAddr(), setStatusSocketAddr(), and ~DSMServer().
|
private |
Referenced by getXMLConfigFileName(), and setXMLConfigFileName().
|
staticprivateinherited |
Referenced by nidas::core::DOMable::getNamespaceURI().