semaine::cms::sender::StateSender Class Reference

#include <StateSender.h>

Inheritance diagram for semaine::cms::sender::StateSender:
semaine::cms::sender::XMLSender semaine::cms::sender::Sender semaine::cms::IOBase

List of all members.

Public Member Functions

 StateSender (const std::string &topicName, semaine::datatypes::stateinfo::StateInfo::Type datatype, const std::string &source) throw (CMSException, SystemConfigurationException)
 StateSender (const std::string &cmsUrl, const std::string &cmsUser, const std::string &cmsPassword, const std::string &topicName, semaine::datatypes::stateinfo::StateInfo::Type datatype, const std::string &source) throw (CMSException, SystemConfigurationException)
virtual ~StateSender ()
void sendStateInfo (semaine::datatypes::stateinfo::StateInfo *state, long long usertime, const std::string &contentID="", long long contentCreationTime=-1) throw (CMSException, SystemConfigurationException)

Constructor & Destructor Documentation

semaine::cms::sender::StateSender::StateSender ( const std::string &  topicName,
semaine::datatypes::stateinfo::StateInfo::Type  datatype,
const std::string &  source 
) throw (CMSException, SystemConfigurationException) [inline]

Create a new Sender to the given topic on the default JMS server. The default JMS server is determined as follows:

  • jms URL: default value tcp://localhost:61616;
  • jms User: default value empty;
  • jms Password: default value empty.

Datatype and source will be sent with every message.

Parameters:
topic the name of the topic to send to.
datatype the name of the type of data being sent.
source the name of the component sending the data.
Exceptions:
CMSException 
semaine::cms::sender::StateSender::StateSender ( const std::string &  cmsUrl,
const std::string &  cmsUser,
const std::string &  cmsPassword,
const std::string &  topicName,
semaine::datatypes::stateinfo::StateInfo::Type  datatype,
const std::string &  source 
) throw (CMSException, SystemConfigurationException) [inline]

Create a new CMS IOBase connection with the given topic on the given JMS server.

Parameters:
cmsUrl the url where to contact the JMS server
cmsUser the username to use (can be an empty string)
cmsPassword the password to use (can be an empty string)
topicName the name of the topic to send to.
datatype the name of the type of data being sent.
source the name of the component sending the data.
Exceptions:
CMSException 
virtual semaine::cms::sender::StateSender::~StateSender (  )  [inline, virtual]

Member Function Documentation

void semaine::cms::sender::StateSender::sendStateInfo ( semaine::datatypes::stateinfo::StateInfo state,
long long  usertime,
const std::string &  contentID = "",
long long  contentCreationTime = -1 
) throw (CMSException, SystemConfigurationException)

The documentation for this class was generated from the following files:
Generated on Tue Dec 14 17:13:18 2010 for SEMAINE by  doxygen 1.6.3