#include <PlayLogFactory.h>
Inheritance diagram for LiveSupport::Scheduler::PlayLogFactory:
This object has to be configured with an element that contains the configuration element that the factory should build. Currently only PostgresqlPlayLog is supported by this factory.
An example configuration element is the following:
<playLogFactory>
<postgresqlPlayLog/>
</playLogFactory>
The DTD for the above element is:
<!ELEMENT playLogFactory (postgresqlPlayLog) >
For details on the <postgreslPlayLog> element, see the PostgresqlPlayLog documentation.
Definition at line 91 of file PlayLogFactory.h.
Public Member Functions | |
virtual | ~PlayLogFactory (void) throw () |
A virtual destructor, as this class has virtual functions. | |
virtual void | configure (const xmlpp::Element &element) throw (std::invalid_argument, std::logic_error) |
Configure the object based on the XML element supplied. | |
Ptr< PlayLogInterface >::Ref | getPlayLog (void) throw () |
Return a play log. | |
Static Public Member Functions | |
static const std::string | getConfigElementName (void) throw () |
Return the name of the XML element this object expects to be sent to a call to configure(). | |
static Ptr< PlayLogFactory >::Ref | getInstance () throw () |
Returns the singleton instance of this object. |
virtual LiveSupport::Scheduler::PlayLogFactory::~PlayLogFactory | ( | void | ) | throw () [inline, virtual] |
A virtual destructor, as this class has virtual functions.
Definition at line 122 of file PlayLogFactory.h.
void PlayLogFactory::configure | ( | const xmlpp::Element & | element | ) | throw (std::invalid_argument, std::logic_error) [virtual] |
Configure the object based on the XML element supplied.
element | the XML element to configure the object from. |
std::invalid_argument | if the supplied XML element contains bad configuration information | |
std::logic_error | if the object has already been configured, and can not be reconfigured. |
Implements LiveSupport::Core::Configurable.
Definition at line 85 of file PlayLogFactory.cxx.
References LiveSupport::Scheduler::PostgresqlPlayLog::getConfigElementName(), and LiveSupport::Db::ConnectionManagerFactory::getInstance().
static const std::string LiveSupport::Scheduler::PlayLogFactory::getConfigElementName | ( | void | ) | throw () [inline, static] |
Return the name of the XML element this object expects to be sent to a call to configure().
Definition at line 133 of file PlayLogFactory.h.
Referenced by LiveSupport::Scheduler::SchedulerDaemon::configure().
Ptr< PlayLogFactory >::Ref PlayLogFactory::getInstance | ( | ) | throw () [static] |
Returns the singleton instance of this object.
Definition at line 71 of file PlayLogFactory.cxx.
Referenced by LiveSupport::Scheduler::SchedulerDaemon::configure().
Ptr<PlayLogInterface>::Ref LiveSupport::Scheduler::PlayLogFactory::getPlayLog | ( | void | ) | throw () [inline] |
Return a play log.
Definition at line 167 of file PlayLogFactory.h.