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::PipelineLogEvent Class Reference

Representation of an LSST Event. More...

#include <PipelineLogEvent.h>

Inheritance diagram for lsst.ctrl.events::PipelineLogEvent:
lsst.ctrl.events::LogEvent lsst.ctrl.events::Event

Public Member Functions

 PipelineLogEvent ()
 Creates PipelineLogEvent which contains a PropertySet. More...
 
 PipelineLogEvent (const std::string &runid, const pexLogging::LogRecord &rec)
 
 PipelineLogEvent (cms::TextMessage *msg)
 
virtual ~PipelineLogEvent ()
 destructor More...
 
virtual void populateHeader (cms::TextMessage *msg) const
 
std::string getDataId ()
 
int getLoopnum ()
 
std::string getPipeline ()
 
int getSliceId ()
 
int getStageId ()
 
- Public Member Functions inherited from lsst.ctrl.events::LogEvent
 LogEvent ()
 Creates LogEvent which contains a PropertySet. More...
 
 LogEvent (const std::string &runid, const pexLogging::LogRecord &rec)
 
 LogEvent (cms::TextMessage *msg)
 
virtual ~LogEvent ()
 destructor More...
 
int getLevel ()
 
std::string getLog ()
 
vector< std::string > getComment ()
 
- 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 DATAID = "DATAID"
 
static const std::string LOOPNUM = "LOOPNUM"
 
static const std::string PIPELINE = "PIPELINE"
 
static const std::string SLICEID = "SLICEID"
 
static const std::string STAGEID = "STAGEID"
 
- Static Public Attributes inherited from lsst.ctrl.events::LogEvent
static const std::string COMMENT = "COMMENT"
 
static const std::string LEVEL = "LEVEL"
 
static const std::string LOG = "LOG"
 
- 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 ()
 

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 67 of file PipelineLogEvent.h.

Constructor & Destructor Documentation

lsst.ctrl.events::PipelineLogEvent::PipelineLogEvent ( )

Creates PipelineLogEvent which contains a PropertySet.

Definition at line 68 of file PipelineLogEvent.cc.

68  : LogEvent() {
69  _init();
70 }
LogEvent()
Creates LogEvent which contains a PropertySet.
Definition: LogEvent.cc:66
lsst.ctrl.events::PipelineLogEvent::PipelineLogEvent ( const std::string &  runid,
const pexLogging::LogRecord rec 
)

Definition at line 93 of file PipelineLogEvent.cc.

93  : LogEvent(runId, rec) {
94  _init();
95 
96 
97  const PropertySet& ps = rec.getProperties();
98 
100 
102  _psp->set(PipelineLogEvent::DATAID, "unknown");
103  else
105 
108  else
110 
111 
113  _psp->set(PipelineLogEvent::PIPELINE, "unknown");
114  } else
116 
119  else
121 
124  else
126 
127 }
static const std::string STAGEID
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string PIPELINELOG
Definition: EventTypes.h:50
static const std::string LOOPNUM
static const std::string TYPE
Creates Event which contains a PropertySet.
Definition: Event.h:71
LogEvent()
Creates LogEvent which contains a PropertySet.
Definition: LogEvent.cc:66
static const std::string SLICEID
int getAsInt(std::string const &name) const
Definition: PropertySet.cc:333
Class for storing generic metadata.
Definition: PropertySet.h:82
std::string getAsString(std::string const &name) const
Definition: PropertySet.cc:444
const lsst::daf::base::PropertySet & getProperties() const
Definition: LogRecord.h:209
static const std::string DATAID
bool exists(std::string const &name) const
Definition: PropertySet.cc:190
static const std::string PIPELINE
lsst.ctrl.events::PipelineLogEvent::PipelineLogEvent ( cms::TextMessage *  msg)

Definition at line 81 of file PipelineLogEvent.cc.

81  : LogEvent(msg) {
82 
83  _init();
84 
85  _psp->set(PipelineLogEvent::DATAID, msg->getStringProperty(PipelineLogEvent::DATAID));
86  _psp->set(PipelineLogEvent::LOOPNUM, msg->getIntProperty(PipelineLogEvent::LOOPNUM));
87  _psp->set(PipelineLogEvent::PIPELINE, msg->getStringProperty(PipelineLogEvent::PIPELINE));
88  _psp->set(PipelineLogEvent::SLICEID, msg->getIntProperty(PipelineLogEvent::SLICEID));
89  _psp->set(PipelineLogEvent::STAGEID, msg->getIntProperty(PipelineLogEvent::STAGEID));
90 
91 }
static const std::string STAGEID
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string LOOPNUM
LogEvent()
Creates LogEvent which contains a PropertySet.
Definition: LogEvent.cc:66
static const std::string SLICEID
static const std::string DATAID
static const std::string PIPELINE
lsst.ctrl.events::PipelineLogEvent::~PipelineLogEvent ( )
virtual

destructor

Definition at line 161 of file PipelineLogEvent.cc.

161  {
162 }

Member Function Documentation

void lsst.ctrl.events::PipelineLogEvent::_init ( )
private

Definition at line 73 of file PipelineLogEvent.cc.

73  {
79 }
static const std::string STAGEID
static const std::string LOOPNUM
static const std::string SLICEID
set< std::string > _keywords
Definition: Event.h:118
static const std::string DATAID
static const std::string PIPELINE
std::string lsst.ctrl.events::PipelineLogEvent::getDataId ( )

Definition at line 139 of file PipelineLogEvent.cc.

139  {
140  return _psp->get<std::string>(PipelineLogEvent::DATAID);
141 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string DATAID
int lsst.ctrl.events::PipelineLogEvent::getLoopnum ( )

Definition at line 143 of file PipelineLogEvent.cc.

143  {
144  return _psp->get<int>(PipelineLogEvent::LOOPNUM);
145 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string LOOPNUM
std::string lsst.ctrl.events::PipelineLogEvent::getPipeline ( )

Definition at line 147 of file PipelineLogEvent.cc.

147  {
148  return _psp->get<std::string>(PipelineLogEvent::PIPELINE);
149 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string PIPELINE
int lsst.ctrl.events::PipelineLogEvent::getSliceId ( )

Definition at line 151 of file PipelineLogEvent.cc.

151  {
152  return _psp->get<int>(PipelineLogEvent::SLICEID);
153 }
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string SLICEID
int lsst.ctrl.events::PipelineLogEvent::getStageId ( )

Definition at line 155 of file PipelineLogEvent.cc.

155  {
156  return _psp->get<int>(PipelineLogEvent::STAGEID);
157 }
static const std::string STAGEID
PropertySet::Ptr _psp
Definition: Event.h:117
void lsst.ctrl.events::PipelineLogEvent::populateHeader ( cms::TextMessage *  msg) const
virtual

Reimplemented from lsst.ctrl.events::LogEvent.

Definition at line 129 of file PipelineLogEvent.cc.

129  {
131 
132  msg->setStringProperty(PipelineLogEvent::DATAID, _psp->get<std::string>(PipelineLogEvent::DATAID));
133  msg->setIntProperty(PipelineLogEvent::LOOPNUM, _psp->get<int>(PipelineLogEvent::LOOPNUM));
134  msg->setStringProperty(PipelineLogEvent::PIPELINE, _psp->get<std::string>(PipelineLogEvent::PIPELINE));
135  msg->setIntProperty(PipelineLogEvent::SLICEID, _psp->get<int>(PipelineLogEvent::SLICEID));
136  msg->setIntProperty(PipelineLogEvent::STAGEID, _psp->get<int>(PipelineLogEvent::STAGEID));
137 }
static const std::string STAGEID
PropertySet::Ptr _psp
Definition: Event.h:117
static const std::string LOOPNUM
static const std::string SLICEID
virtual void populateHeader(cms::TextMessage *msg) const
Definition: LogEvent.cc:134
static const std::string DATAID
static const std::string PIPELINE

Member Data Documentation

const std::string lsst.ctrl.events::PipelineLogEvent::DATAID = "DATAID"
static

Definition at line 70 of file PipelineLogEvent.h.

const std::string lsst.ctrl.events::PipelineLogEvent::LOOPNUM = "LOOPNUM"
static

Definition at line 71 of file PipelineLogEvent.h.

const std::string lsst.ctrl.events::PipelineLogEvent::PIPELINE = "PIPELINE"
static

Definition at line 72 of file PipelineLogEvent.h.

const std::string lsst.ctrl.events::PipelineLogEvent::SLICEID = "SLICEID"
static

Definition at line 73 of file PipelineLogEvent.h.

const std::string lsst.ctrl.events::PipelineLogEvent::STAGEID = "STAGEID"
static

Definition at line 74 of file PipelineLogEvent.h.


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