LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Representation of an LSST Event. More...
#include <StatusEvent.h>
Public Member Functions | |
StatusEvent () | |
Constructor to create a StatusEvent. More... | |
virtual | ~StatusEvent () |
StatusEvent (cms::TextMessage *msg) | |
Constructor to convert a TextMessage into a StatusEvent. More... | |
StatusEvent (LocationId const &originator, PropertySet const &ps) | |
Constructor to create a StatusEvent. More... | |
StatusEvent (LocationId const &originator, PropertySet const &ps, PropertySet const &filterable) | |
Constructor to create a StatusEvent. More... | |
StatusEvent (std::string const &runid, LocationId const &originator, PropertySet const &ps) | |
Constructor to create a StatusEvent. More... | |
StatusEvent (std::string const &runid, LocationId const &originator, PropertySet const &ps, PropertySet const &filterable) | |
Constructor to create a StatusEvent. More... | |
StatusEvent (std::string const &runid, LocationId const &originator, PropertySet::Ptr const psp) | |
Constructor to create a StatusEvent. More... | |
StatusEvent (std::string const &runid, LocationId const &originator, PropertySet::Ptr const psp, PropertySet const &filterable) | |
Constructor to create a StatusEvent. More... | |
LocationId * | getOriginator () |
accessor to get originator information More... | |
Public Member Functions inherited from lsst::ctrl::events::Event | |
Event () | |
Constructor for Event with no properties. More... | |
Event (PropertySet const &properties) | |
Constructor for Event. More... | |
Event (PropertySet const &properties, PropertySet const &filterable) | |
Constructor for Event. More... | |
Event (std::string const &runid, PropertySet::Ptr const properties) | |
Constructor for Event. More... | |
Event (std::string const &runid, PropertySet const &properties) | |
Constructor for Event. More... | |
Event (std::string const &runid, PropertySet const &properties, PropertySet const &filterable) | |
Constructor for Event. More... | |
Event (cms::TextMessage *msg) | |
Constructor for Event. More... | |
virtual | ~Event () |
destructor More... | |
PropertySet::Ptr | getPropertySet () const |
retrieve the PropertySet for this Event More... | |
std::string | getPubDate () |
get the publication date of this Event, in ASCII More... | |
long long | getPubTime () |
get the publication time of this Event More... | |
void | setPubTime (long long t) |
set the publication time of this Event More... | |
long long | getEventTime () |
get the event creation time More... | |
void | setEventTime (long long nsecs) |
set the event creation time More... | |
void | updateEventTime () |
update the Event time to the current time More... | |
std::string | getEventDate () |
get the Event Date More... | |
std::string | getRunId () |
get the RunId for this Event More... | |
std::string | getType () |
get the Event type More... | |
std::string | getStatus () |
get the Event status More... | |
void | setStatus (std::string status) |
set the Event status More... | |
void | setTopic (std::string topic) |
set the Event topic More... | |
std::string | getTopic () |
get the Event topic More... | |
vector< std::string > | getFilterablePropertyNames () |
return all filterable property names More... | |
vector< std::string > | getCustomPropertyNames () |
return all custom property names More... | |
PropertySet::Ptr | getCustomPropertySet () const |
return all custom property set More... | |
void | marshall (cms::TextMessage *msg) |
marshall values in this event into a cms::TextMessage More... | |
Static Public Attributes | |
static std::string const | ORIG_HOSTNAME = "ORIG_HOSTNAME" |
static std::string const | ORIG_PROCESSID = "ORIG_PROCESSID" |
static std::string const | ORIG_LOCALID = "ORIG_LOCALID" |
Static Public Attributes inherited from lsst::ctrl::events::Event | |
static const std::string | TYPE = "TYPE" |
static const std::string | EVENTTIME = "EVENTTIME" |
static const std::string | RUNID = "RUNID" |
static const std::string | STATUS = "STATUS" |
static const std::string | TOPIC = "TOPIC" |
static const std::string | PUBTIME = "PUBTIME" |
static const std::string | UNINITIALIZED = "uninitialized" |
Private Member Functions | |
void | _init () |
void | _constructor (LocationId const &originator) |
virtual void | populateHeader (cms::TextMessage *msg) const |
populate a cms::TextMessage header with properties More... | |
Additional Inherited Members | |
Protected Member Functions inherited from lsst::ctrl::events::Event | |
void | _init () |
void | _constructor (std::string const &runid, PropertySet const &properties, PropertySet const &filterable) |
template<typename T > | |
void | add (std::string const &name, std::string const &tag, PropertySet const &properties, boost::property_tree::ptree &child) |
Protected Attributes inherited from lsst::ctrl::events::Event | |
PropertySet::Ptr | _psp |
PropertySet::Ptr | _filterable |
set< std::string > | _keywords |
Representation of an LSST Event.
Definition at line 62 of file StatusEvent.h.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | ) |
Constructor to create a StatusEvent.
Definition at line 67 of file StatusEvent.cc.
|
virtual |
Definition at line 148 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | cms::TextMessage * | msg | ) |
Constructor to convert a TextMessage into a StatusEvent.
Definition at line 78 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | LocationId const & | originator, |
PropertySet const & | ps | ||
) |
Constructor to create a StatusEvent.
originator | the LocationId of where this StatusEvent was created |
ps | a PropertySet |
Definition at line 86 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | LocationId const & | originator, |
PropertySet const & | ps, | ||
PropertySet const & | filterable | ||
) |
Constructor to create a StatusEvent.
originator | the LocationId of where this StatusEvent was created |
ps | a PropertySet |
filterable | a PropertySet that will be added to Event headers so they can be filtered using selectors. |
Definition at line 91 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | std::string const & | runid, |
LocationId const & | originator, | ||
PropertySet const & | ps | ||
) |
Constructor to create a StatusEvent.
runid | a string identify for this Event |
originator | the LocationId of where this StatusEvent was created |
ps | a PropertySet |
Definition at line 110 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | std::string const & | runid, |
LocationId const & | originator, | ||
PropertySet const & | ps, | ||
PropertySet const & | filterable | ||
) |
Constructor to create a StatusEvent.
runid | a string identify for this Event |
originator | the LocationId of where this StatusEvent was created |
ps | a PropertySet |
filterable | a PropertySet that will be added to Event headers so they can be filtered using selectors. |
Definition at line 116 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | std::string const & | runid, |
LocationId const & | originator, | ||
PropertySet::Ptr const | psp | ||
) |
Constructor to create a StatusEvent.
runid | a string identify for this Event |
originator | the LocationId of where this StatusEvent was created |
psp | a PropertySet::Ptr |
Definition at line 97 of file StatusEvent.cc.
lsst::ctrl::events::StatusEvent::StatusEvent | ( | std::string const & | runid, |
LocationId const & | originator, | ||
PropertySet::Ptr const | psp, | ||
PropertySet const & | filterable | ||
) |
Constructor to create a StatusEvent.
runid | a string identify for this Event |
originator | the LocationId of where this StatusEvent was created |
psp | a PropertySet::Ptr |
filterable | a PropertySet that will be added to Event headers so they can be filtered using selectors. |
Definition at line 103 of file StatusEvent.cc.
|
private |
Definition at line 123 of file StatusEvent.cc.
|
private |
Definition at line 72 of file StatusEvent.cc.
LocationId * lsst::ctrl::events::StatusEvent::getOriginator | ( | ) |
accessor to get originator information
Definition at line 141 of file StatusEvent.cc.
|
privatevirtual |
populate a cms::TextMessage header with properties
[in] | msg | a cms::TextMessage |
Reimplemented from lsst::ctrl::events::Event.
Definition at line 133 of file StatusEvent.cc.
|
static |
Definition at line 65 of file StatusEvent.h.
|
static |
Definition at line 67 of file StatusEvent.h.
|
static |
Definition at line 66 of file StatusEvent.h.