LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
lsst.ctrl.events::StatusEvent Class Reference

Representation of an LSST Event. More...

#include <StatusEvent.h>

Inheritance diagram for lsst.ctrl.events::StatusEvent:
lsst.ctrl.events::Event

Public Member Functions

 StatusEvent ()
 Creates StatusEvent which contains a PropertySet. More...
 
virtual ~StatusEvent ()
 destructor More...
 
 StatusEvent (cms::TextMessage *msg)
 
 StatusEvent (const std::string &runid, int64_t originator, const PropertySet &ps)
 
 StatusEvent (const std::string &runid, int64_t originator, const PropertySet::Ptr psp)
 
virtual void populateHeader (cms::TextMessage *msg) const
 
int getProcessId ()
 
short getLocalId ()
 
int getIPId ()
 
int64_t getOriginatorId ()
 
void setOriginatorId (int64_t id)
 
- Public Member Functions inherited from lsst.ctrl.events::Event
 Event ()
 
 Event (const std::string &runid, const PropertySet::Ptr ps)
 
 Event (const std::string &runid, const PropertySet &ps)
 
 Event (cms::TextMessage *msg)
 
virtual ~Event ()
 destructor More...
 
PropertySet::Ptr getPropertySet () const
 
std::string getPubDate ()
 Get the publication date of this event. More...
 
long long getPubTime ()
 
void setPubTime (long long t)
 
long long getEventTime ()
 
void setEventTime (long long nsecs)
 
void updateEventTime ()
 
std::string getEventDate ()
 Get the creation date of this event. More...
 
std::string getHostId ()
 
std::string getRunId ()
 
std::string getType ()
 
std::string getStatus ()
 
void setStatus (std::string status)
 
void setTopic (std::string topic)
 
std::string getTopic ()
 
vector< std::string > getFilterablePropertyNames ()
 
vector< std::string > getCustomPropertyNames ()
 
PropertySet::Ptr getCustomPropertySet () const
 
void marshall (cms::TextMessage *msg)
 
 ExceptionEvent ()
 
 ExceptionEvent (const std::string &runid, const LSSTException ex)
 
 ExceptionEvent (cms::TextMessage *msg)
 
 ~LogEvent ()
 
void populateHeader (cms::TextMessage *msg)
 
std::string getExceptionType ()
 
std::string getStackTrace ()
 

Static Public Attributes

static const std::string ORIGINATORID = "ORIGINATORID"
 
static const std::string LOCALID = "LOCALID"
 
static const std::string PROCESSID = "PROCESSID"
 
static const std::string IPID = "IPID"
 
- Static Public Attributes inherited from lsst.ctrl.events::Event
static const std::string TYPE = "TYPE"
 Creates Event which contains a PropertySet. More...
 
static const std::string EVENTTIME = "EVENTTIME"
 
static const std::string HOSTID = "HOSTID"
 
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"
 
static const std::string EXCEPTIONTYPE
 
static const std::string STACKTRACE
 

Private Member Functions

void _init ()
 
void _constructor (const std::string &runid, int64_t originator, const PropertySet &ps)
 

Additional Inherited Members

- Protected Member Functions inherited from lsst.ctrl.events::Event
void _init ()
 
void _constructor (const std::string &runid, const PropertySet &ps)
 
void splitString (std::string str, std::string delim, std::vector< std::string > &results)
 
void splitTuple (std::string str, std::string delim, std::vector< std::string > &results)
 
- Protected Attributes inherited from lsst.ctrl.events::Event
PropertySet::Ptr _psp
 
set< std::string > _keywords
 

Detailed Description

Representation of an LSST Event.

Definition at line 63 of file StatusEvent.h.

Constructor & Destructor Documentation

lsst.ctrl.events::StatusEvent::StatusEvent ( )

Creates StatusEvent which contains a PropertySet.

Definition at line 74 of file StatusEvent.cc.

74  : Event() {
75  _init();
76 }
lsst.ctrl.events::StatusEvent::~StatusEvent ( )
virtual

destructor

Definition at line 151 of file StatusEvent.cc.

151  {
152 }
lsst.ctrl.events::StatusEvent::StatusEvent ( cms::TextMessage *  msg)

Definition at line 86 of file StatusEvent.cc.

86  : Event(msg) {
87  _init();
88 
89  _psp->set(ORIGINATORID, (int64_t)msg->getLongProperty(ORIGINATORID));
90  _psp->set(LOCALID, (short)msg->getShortProperty(LOCALID));
91  _psp->set(PROCESSID, (int)msg->getIntProperty(PROCESSID));
92  _psp->set(IPID, (signed int)msg->getIntProperty(IPID));
93 
94 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string ORIGINATORID
Definition: StatusEvent.h:66
static const std::string LOCALID
Definition: StatusEvent.h:67
static const std::string IPID
Definition: StatusEvent.h:69
static const std::string PROCESSID
Definition: StatusEvent.h:68
lsst.ctrl.events::StatusEvent::StatusEvent ( const std::string &  runid,
int64_t  originator,
const PropertySet ps 
)

Definition at line 100 of file StatusEvent.cc.

100  : Event(runId, ps) {
101  _constructor(runId, originatorId, ps);
102 }
void _constructor(const std::string &runid, int64_t originator, const PropertySet &ps)
Definition: StatusEvent.cc:104
lsst.ctrl.events::StatusEvent::StatusEvent ( const std::string &  runid,
int64_t  originator,
const PropertySet::Ptr  psp 
)

Definition at line 96 of file StatusEvent.cc.

96  : Event(runId, *psp) {
97  _constructor(runId, originatorId, *psp);
98 }
void _constructor(const std::string &runid, int64_t originator, const PropertySet &ps)
Definition: StatusEvent.cc:104

Member Function Documentation

void lsst.ctrl.events::StatusEvent::_constructor ( const std::string &  runid,
int64_t  originator,
const PropertySet ps 
)
private

Definition at line 104 of file StatusEvent.cc.

104  {
105  _init();
106 
107 
108  EventSystem eventSystem = EventSystem().getDefaultEventSystem();
109 
110  _psp->set(ORIGINATORID, originatorId);
111 
112  _psp->set(LOCALID, eventSystem.extractLocalId(originatorId));
113  _psp->set(PROCESSID, eventSystem.extractProcessId(originatorId));
114  _psp->set(IPID, eventSystem.extractIPId(originatorId));
116 
117 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string ORIGINATORID
Definition: StatusEvent.h:66
static const std::string TYPE
Creates Event which contains a PropertySet.
Definition: Event.h:71
static const std::string LOCALID
Definition: StatusEvent.h:67
static const std::string IPID
Definition: StatusEvent.h:69
static const std::string STATUS
Definition: EventTypes.h:48
static const std::string PROCESSID
Definition: StatusEvent.h:68
void lsst.ctrl.events::StatusEvent::_init ( )
private

Definition at line 79 of file StatusEvent.cc.

79  {
80  _keywords.insert(ORIGINATORID);
81  _keywords.insert(LOCALID);
82  _keywords.insert(PROCESSID);
83  _keywords.insert(IPID);
84 }
static const std::string ORIGINATORID
Definition: StatusEvent.h:66
static const std::string LOCALID
Definition: StatusEvent.h:67
static const std::string IPID
Definition: StatusEvent.h:69
static const std::string PROCESSID
Definition: StatusEvent.h:68
set< std::string > _keywords
Definition: Event.h:118
int lsst.ctrl.events::StatusEvent::getIPId ( )

Definition at line 145 of file StatusEvent.cc.

145  {
146  return _psp->get<int>(IPID);
147 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string IPID
Definition: StatusEvent.h:69
short lsst.ctrl.events::StatusEvent::getLocalId ( )

Definition at line 137 of file StatusEvent.cc.

137  {
138  return _psp->get<short>(LOCALID);
139 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string LOCALID
Definition: StatusEvent.h:67
int64_t lsst.ctrl.events::StatusEvent::getOriginatorId ( )

Definition at line 128 of file StatusEvent.cc.

128  {
129  return _psp->get<int64_t>(ORIGINATORID);
130 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string ORIGINATORID
Definition: StatusEvent.h:66
int lsst.ctrl.events::StatusEvent::getProcessId ( )

Definition at line 141 of file StatusEvent.cc.

141  {
142  return _psp->get<int>(PROCESSID);
143 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string PROCESSID
Definition: StatusEvent.h:68
void lsst.ctrl.events::StatusEvent::populateHeader ( cms::TextMessage *  msg) const
virtual

Reimplemented from lsst.ctrl.events::Event.

Definition at line 119 of file StatusEvent.cc.

119  {
121 
122  msg->setLongProperty(ORIGINATORID, _psp->get<int64_t>(ORIGINATORID));
123  msg->setShortProperty(LOCALID, _psp->get<short>(LOCALID));
124  msg->setIntProperty(PROCESSID, _psp->get<int>(PROCESSID));
125  msg->setIntProperty(IPID, _psp->get<int>(IPID));
126 }
virtual void populateHeader(cms::TextMessage *msg) const
Definition: Event.cc:201
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string ORIGINATORID
Definition: StatusEvent.h:66
static const std::string LOCALID
Definition: StatusEvent.h:67
static const std::string IPID
Definition: StatusEvent.h:69
static const std::string PROCESSID
Definition: StatusEvent.h:68
void lsst.ctrl.events::StatusEvent::setOriginatorId ( int64_t  id)

Definition at line 132 of file StatusEvent.cc.

132  {
133  return _psp->set(ORIGINATORID, id);
134 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string ORIGINATORID
Definition: StatusEvent.h:66

Member Data Documentation

const std::string lsst.ctrl.events::StatusEvent::IPID = "IPID"
static

Definition at line 69 of file StatusEvent.h.

const std::string lsst.ctrl.events::StatusEvent::LOCALID = "LOCALID"
static

Definition at line 67 of file StatusEvent.h.

const std::string lsst.ctrl.events::StatusEvent::ORIGINATORID = "ORIGINATORID"
static

Definition at line 66 of file StatusEvent.h.

const std::string lsst.ctrl.events::StatusEvent::PROCESSID = "PROCESSID"
static

Definition at line 68 of file StatusEvent.h.


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