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 <LogEvent.h>
Public Member Functions | |
LogEvent () | |
Creates LogEvent which contains a PropertySet. More... | |
LogEvent (log4cxx::spi::LoggingEventPtr const &event, log4cxx::helpers::Pool &p) | |
LogEvent (cms::TextMessage *msg) | |
Constructor to take a JMS TextMessage and turn it into a LogEvent. More... | |
virtual | ~LogEvent () |
destructor More... | |
virtual void | populateHeader (cms::TextMessage *msg) const |
int | getLevel () |
retreive the log level More... | |
std::string | getLoggingTopic () |
Retreive the log message. More... | |
std::string | getLogger () |
Retreive the log message. 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 const std::string | LEVEL = "LEVEL" |
static const std::string | LOGGER = "LOGGER" |
static const std::string | MESSAGE = "MESSAGE" |
static const std::string | TIMESTAMP = "TIMESTAMP" |
static const std::string | THREADNAME = "THREADNAME" |
static const std::string | FILENAME = "FILENAME" |
static const std::string | CLASSNAME = "CLASSNAME" |
static const std::string | METHODNAME = "METHODNAME" |
static const std::string | LINENUMBER = "LINENUMBER" |
static const std::string | LOCATION = "LOCATION" |
static const std::string | LOGGING_TOPIC = "Logging" |
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 () |
Static Private Attributes | |
static const std::string | DELIMITER |
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 64 of file LogEvent.h.
lsst::ctrl::events::LogEvent::LogEvent | ( | ) |
Creates LogEvent which contains a PropertySet.
Definition at line 79 of file LogEvent.cc.
lsst::ctrl::events::LogEvent::LogEvent | ( | log4cxx::spi::LoggingEventPtr const & | event, |
log4cxx::helpers::Pool & | p | ||
) |
Definition at line 83 of file LogEvent.cc.
lsst::ctrl::events::LogEvent::LogEvent | ( | cms::TextMessage * | msg | ) |
Constructor to take a JMS TextMessage and turn it into a LogEvent.
msg | a TextMessage |
Definition at line 118 of file LogEvent.cc.
|
virtual |
|
private |
private method to add keywords used in LogEvent JMS headers
Definition at line 108 of file LogEvent.cc.
int lsst::ctrl::events::LogEvent::getLevel | ( | ) |
retreive the log level
Definition at line 141 of file LogEvent.cc.
std::string lsst::ctrl::events::LogEvent::getLogger | ( | ) |
Retreive the log message.
Definition at line 149 of file LogEvent.cc.
std::string lsst::ctrl::events::LogEvent::getLoggingTopic | ( | ) |
Retreive the log message.
Definition at line 157 of file LogEvent.cc.
|
virtual |
private method used to populate the LogEvent
Reimplemented from lsst::ctrl::events::Event.
Definition at line 129 of file LogEvent.cc.
|
static |
Definition at line 74 of file LogEvent.h.
|
staticprivate |
Definition at line 95 of file LogEvent.h.
|
static |
Definition at line 73 of file LogEvent.h.
|
static |
Definition at line 67 of file LogEvent.h.
|
static |
Definition at line 76 of file LogEvent.h.
|
static |
Definition at line 77 of file LogEvent.h.
|
static |
Definition at line 68 of file LogEvent.h.
|
static |
Definition at line 79 of file LogEvent.h.
|
static |
Definition at line 70 of file LogEvent.h.
|
static |
Definition at line 75 of file LogEvent.h.
|
static |
Definition at line 72 of file LogEvent.h.
|
static |
Definition at line 71 of file LogEvent.h.