nidas  v1.2-1520
Public Member Functions | Static Public Member Functions | Private Member Functions | 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) throw (nidas::util::Exception)
 
void interruptServices () throw ()
 
void joinServices () throw ()
 
void setStatusSocketAddr (const nidas::util::SocketAddress &val)
 
const nidas::util::SocketAddressgetStatusSocketAddr () const
 
void fromDOMElement (const xercesc::DOMElement *) throw (nidas::util::InvalidParameterException)
 Initialize myself from a xercesc::DOMElement. More...
 
virtual xercesc::DOMElement * toDOMParent (xercesc::DOMElement *parent, bool complete) const throw (xercesc::DOMException)
 Create a DOMElement and append it to the parent. More...
 
virtual xercesc::DOMElement * toDOMElement (xercesc::DOMElement *node, bool complete) const throw (xercesc::DOMException)
 Add my content into a DOMElement. More...
 

Static Public Member Functions

static const XMLCh * getNamespaceURI ()
 

Private Member Functions

 DSMServer (const DSMServer &)
 Copy not supported. More...
 
DSMServeroperator= (const DSMServer &)
 Assignment not supported. More...
 

Private Attributes

std::string _name
 Name of this server. More...
 
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. More...
 
std::list< DSMService * > _services
 The DSMServices that we've been configured to start. More...
 
std::string _xmlFileName
 
nidas::util::SocketAddress_statusSocketAddr
 

Detailed Description

A provider of services to a DSM.

Constructor & Destructor Documentation

DSMServer::DSMServer ( )
DSMServer::~DSMServer ( )
virtual
nidas::core::DSMServer::DSMServer ( const DSMServer )
private

Copy not supported.

Member Function Documentation

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

References _services.

void nidas::core::DSMServer::addThread ( nidas::util::Thread thrd)
void DSMServer::fromDOMElement ( const xercesc::DOMElement *  )
throw (nidas::util::InvalidParameterException
)
virtual
DSMServiceIterator DSMServer::getDSMServiceIterator ( ) const
const std::string& nidas::core::DSMServer::getName ( ) const
inline
static const XMLCh* nidas::core::DOMable::getNamespaceURI ( )
inlinestaticinherited
ProcessorIterator DSMServer::getProcessorIterator ( ) const
const Project* nidas::core::DSMServer::getProject ( ) const
inline
SampleTagIterator DSMServer::getSampleTagIterator ( ) const
SensorIterator DSMServer::getSensorIterator ( ) const
const std::list<DSMService*>& nidas::core::DSMServer::getServices ( ) const
inline
const Site* nidas::core::DSMServer::getSite ( ) const
inline

References _site.

Referenced by getSensorIterator().

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

References _xmlFileName.

void DSMServer::interruptServices ( )
throw (
)
void DSMServer::joinServices ( )
throw (
)
DSMServer& nidas::core::DSMServer::operator= ( const DSMServer )
private

Assignment not supported.

void DSMServer::scheduleServices ( bool  optionalProcessing)
throw (nidas::util::Exception
)
void nidas::core::DSMServer::setName ( const std::string &  val)
inline

References _name.

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

References _site.

Referenced by nidas::core::Site::fromDOMElement().

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

References _xmlFileName.

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

xercesc::DOMElement * DOMable::toDOMElement ( xercesc::DOMElement *  node,
bool  complete 
) const
throw (xercesc::DOMException
)
virtualinherited
xercesc::DOMElement * DOMable::toDOMParent ( xercesc::DOMElement *  parent,
bool  complete 
) const
throw (xercesc::DOMException
)
virtualinherited

Member Data Documentation

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* nidas::core::DSMServer::_project
private
std::list<DSMService*> nidas::core::DSMServer::_services
private

The DSMServices that we've been configured to start.

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

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().

nidas::util::SocketAddress* nidas::core::DSMServer::_statusSocketAddr
private
std::string nidas::core::DSMServer::_xmlFileName
private

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