nidas v1.2.3
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
nidas::core::DSMServer Class Reference

A provider of services to a DSM. More...

#include <DSMServer.h>

Inheritance diagram for nidas::core::DSMServer:
Inheritance graph
[legend]

Public Member Functions

 DSMServer ()
 
virtual ~DSMServer ()
 
const std::string & getName () const
 
void setName (const std::string &val)
 
const std::string & getXMLConfigFileName () const
 
void setXMLConfigFileName (const std::string &val)
 
void addService (DSMService *service)
 
const std::list< DSMService * > & getServices () const
 
void setProject (Project *val)
 
const ProjectgetProject () const
 
void setSite (const Site *val)
 
const SitegetSite () const
 
DSMServiceIterator getDSMServiceIterator () const
 
ProcessorIterator getProcessorIterator () const
 
SensorIterator getSensorIterator () const
 
SampleTagIterator getSampleTagIterator () const
 
void addThread (nidas::util::Thread *thrd)
 
void scheduleServices (bool optionalProcessing)
 
void interruptServices () throw ()
 
void joinServices () throw ()
 
void setStatusSocketAddr (const nidas::util::SocketAddress &val)
 
const nidas::util::SocketAddressgetStatusSocketAddr () const
 
void fromDOMElement (const xercesc::DOMElement *)
 
virtual xercesc::DOMElement * toDOMParent (xercesc::DOMElement *parent, bool complete) const
 Create a DOMElement and append it to the parent.
 
virtual xercesc::DOMElement * toDOMElement (xercesc::DOMElement *node, bool complete) const
 Add my content into a DOMElement.
 

Static Public Member Functions

static const XMLChgetNamespaceURI ()
 

Private Member Functions

 DSMServer (const DSMServer &)
 Copy not supported.
 
DSMServeroperator= (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 XMLChnamespaceURI = 0
 

Detailed Description

A provider of services to a DSM.

Constructor & Destructor Documentation

◆ DSMServer() [1/2]

DSMServer::DSMServer ( )

◆ ~DSMServer()

DSMServer::~DSMServer ( )
virtual

◆ DSMServer() [2/2]

nidas::core::DSMServer::DSMServer ( const DSMServer & )
private

Copy not supported.

Member Function Documentation

◆ addService()

void nidas::core::DSMServer::addService ( DSMService * service)
inline

References _services.

Referenced by fromDOMElement().

◆ addThread()

void nidas::core::DSMServer::addThread ( nidas::util::Thread * thrd)

◆ fromDOMElement()

void DSMServer::fromDOMElement ( const xercesc::DOMElement * node)
virtual

◆ getDSMServiceIterator()

DSMServiceIterator DSMServer::getDSMServiceIterator ( ) const

◆ getName()

const std::string & nidas::core::DSMServer::getName ( ) const
inline

◆ getNamespaceURI()

static const XMLCh * nidas::core::DOMable::getNamespaceURI ( )
inlinestaticinherited

◆ getProcessorIterator()

ProcessorIterator DSMServer::getProcessorIterator ( ) const

◆ getProject()

const Project * nidas::core::DSMServer::getProject ( ) const
inline

References _project.

Referenced by fromDOMElement().

◆ getSampleTagIterator()

SampleTagIterator DSMServer::getSampleTagIterator ( ) const

◆ getSensorIterator()

SensorIterator DSMServer::getSensorIterator ( ) const

◆ getServices()

const std::list< DSMService * > & nidas::core::DSMServer::getServices ( ) const
inline

References _services.

Referenced by nidas::core::DSMServerStat::run().

◆ getSite()

const Site * nidas::core::DSMServer::getSite ( ) const
inline

References _site.

Referenced by getSensorIterator().

◆ getStatusSocketAddr()

const nidas::util::SocketAddress & nidas::core::DSMServer::getStatusSocketAddr ( ) const
inline

◆ getXMLConfigFileName()

const std::string & nidas::core::DSMServer::getXMLConfigFileName ( ) const
inline

References _xmlFileName.

◆ interruptServices()

void DSMServer::interruptServices ( )
throw ( )

◆ joinServices()

void DSMServer::joinServices ( )
throw ( )

◆ operator=()

DSMServer & nidas::core::DSMServer::operator= ( const DSMServer & )
private

Assignment not supported.

◆ scheduleServices()

void DSMServer::scheduleServices ( bool optionalProcessing)

◆ setName()

void nidas::core::DSMServer::setName ( const std::string & val)
inline

References _name, and nidas::core::getSample().

Referenced by fromDOMElement().

◆ setProject()

void nidas::core::DSMServer::setProject ( Project * val)
inline

◆ setSite()

void nidas::core::DSMServer::setSite ( const Site * val)
inline

References _site, and nidas::core::getSample().

◆ setStatusSocketAddr()

void nidas::core::DSMServer::setStatusSocketAddr ( const nidas::util::SocketAddress & val)
inline

◆ setXMLConfigFileName()

void nidas::core::DSMServer::setXMLConfigFileName ( const std::string & val)
inline

◆ toDOMElement()

xercesc::DOMElement * DOMable::toDOMElement ( xercesc::DOMElement * node,
bool complete ) const
virtualinherited

◆ toDOMParent()

xercesc::DOMElement * DOMable::toDOMParent ( xercesc::DOMElement * parent,
bool complete ) const
virtualinherited

Create a DOMElement and append it to the parent.

Exceptions
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.

Member Data Documentation

◆ _name

std::string nidas::core::DSMServer::_name
private

Name of this server.

This should correspond to a hostname of a machine.

Referenced by getName(), and setName().

◆ _project

Project* nidas::core::DSMServer::_project
private

◆ _services

std::list<DSMService*> nidas::core::DSMServer::_services
private

The DSMServices that we've been configured to start.

Referenced by addService(), getServices(), interruptServices(), joinServices(), scheduleServices(), and ~DSMServer().

◆ _site

const Site* nidas::core::DSMServer::_site
private

What Site to I serve? Can be NULL if this DSMServer is not for a specific Site, but serves the Project.

Referenced by getSite(), and setSite().

◆ _statusSocketAddr

nidas::util::SocketAddress* nidas::core::DSMServer::_statusSocketAddr
private

◆ _xmlFileName

std::string nidas::core::DSMServer::_xmlFileName
private

◆ namespaceURI

XMLCh * DOMable::namespaceURI = 0
staticprivateinherited

The documentation for this class was generated from the following files: