StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | List of all members
TxLogging::TxEventLogWeb Class Reference
Inheritance diagram for TxLogging::TxEventLogWeb:
TxLogging::TxEventLogFile TxLogging::TxEventLog

Public Member Functions

 TxEventLogWeb ()
 
virtual ~TxEventLogWeb ()
 
virtual StUcmTasksgetTaskList ()
 
virtual StUcmTasksgetTaskList (int limit)
 
virtual StUcmTasksgetTaskList (int limit, int offset)
 
virtual StUcmJobsgetJobList ()
 
virtual StUcmJobsgetJobList (StRecord *task)
 
virtual StUcmJobsgetJobList (StRecord *task, int limit)
 
virtual StUcmJobsgetJobList (int limit)
 
virtual StUcmJobsgetJobList (int limit, int offset)
 
virtual StUcmJobsgetJobList (StRecord *task, int limit, int offset)
 
virtual int getJobId (const char *reqName, const char *taskBrokerId, int jobBrokerId)
 
virtual StUcmEventsgetEventList ()
 
virtual StUcmEventsgetEventList (StRecord *job)
 
virtual StUcmEventsgetEventList (StRecord *job, int limit)
 
virtual StUcmEventsgetEventList (int limit)
 
virtual StUcmEventsgetEventList (int limit, int offset)
 
virtual StUcmEventsgetEventList (StRecord *job, int limit, int offset)
 
virtual void setDbJobID (int bJobID)
 
virtual int queryTableSize (const char *tableName)
 
virtual int queryTableSize (const char *tableName, const char *where)
 
virtual int queryTableSize (const char *tableName, const StRecord *where)
 
- Public Member Functions inherited from TxLogging::TxEventLogFile
 TxEventLogFile ()
 
virtual ~TxEventLogFile ()
 
virtual void setEnvBrokerTaskID (const std::string &envBrokerTaskID)
 
virtual void setEnvBrokerJobID (const std::string &envBrokerJobID)
 
virtual void setBrokerTaskID (const std::string &brokerTaskID)
 
virtual void setBrokerJobID (int brokerJobID)
 
virtual void setRequesterName (const std::string &requester)
 
virtual void setContext (const std::string &context)
 
virtual void logStart (const std::string &key, const std::string &value)
 
virtual void logJobAttribute (const std::string &key, const std::string &value)
 
virtual void logJobSubmitLocation (const std::string &url)
 
virtual void setJobSubmitLocation (const std::string &url)
 
virtual void logJobSubmitState (State state)
 
virtual void setJobSubmitState (State state)
 
virtual void logTask (unsigned int size=1)
 
virtual void logTask (const std::string &taskAttributes)
 
virtual void logJobSubmitID (const std::string &ID)
 
virtual void setJobSubmitID (const std::string &ID)
 
virtual void logEvent (const std::string &logMsg, Level level=LEVEL_INFO, Stage stage=STATUS, const std::string &msgContext=TxUCMConstants::defaultContext)
 
virtual void logEvent (const std::string &userKey, const std::string &userValue, Level level=LEVEL_INFO, Stage stage=STATUS, const std::string &msgContext=TxUCMConstants::defaultContext)
 
virtual void logEnd (const std::string &key, const std::string &value)
 
- Public Member Functions inherited from TxLogging::TxEventLog
virtual ~TxEventLog ()
 
void setEnvBrokerTaskID (const char *envBrokerTaskID)
 
void setEnvBrokerJobID (const char *envBrokerJobID)
 
void setBrokerTaskID (const char *brokerTaskID)
 
void setRequesterName (const char *requester)
 
void setContext (const char *context)
 
void logStart (const char *key=TxUCMConstants::appStart, const char *value="application started")
 
void logJobSubmitLocation (const char *url)
 
void setJobSubmitLocation (const char *url)
 
void logJobAttribute (const char *key, const char *value)
 
void logTask (const char *taskAttributes)
 
void logJobSubmitID (const char *ID)
 
void setJobSubmitID (const char *ID)
 
void logEvent (const char *logMsg, Level level=LEVEL_INFO, Stage stage=STATUS, const char *msgContext=TxUCMConstants::defaultContext)
 
void logEvent (const char *userKey, const char *userValue, Level level=LEVEL_INFO, Stage stage=STATUS, const char *msgContext=TxUCMConstants::defaultContext)
 
void logEnd (const char *key=TxUCMConstants::appEnd, const char *value="application ended")
 

Protected Member Functions

virtual void writeDown (const char *message)
 
virtual void writeDown (const std::string &message)
 
- Protected Member Functions inherited from TxLogging::TxEventLog
 TxEventLog ()
 

Additional Inherited Members

- Public Types inherited from TxLogging::TxEventLog
enum  Stage { START = 1, STATUS = 2, END = 3 }
 
enum  Level {
  LEVEL_UNKNOWN = 0, LEVEL_TRACE = 1, LEVEL_DEBUG = 2, LEVEL_INFO = 3,
  LEVEL_NOTICE = 4, LEVEL_WARNING = 5, LEVEL_ERROR = 6, LEVEL_CRITICAL = 7,
  LEVEL_ALERT = 8, LEVEL_FATAL = 9, TOTAL_LEVELS
}
 
enum  State {
  UNKNOWN = 0, UNSUBMITTED = 1, STAGEIN = 2, PENDING = 3,
  ACTIVE = 4, SUSPENDED = 5, STAGEOUT = 6, CLEANUP = 7,
  DONE = 8, FAILED = 9, TOTAL_STATES
}
 

Detailed Description

Definition at line 18 of file TxEventLogWeb.h.

Constructor & Destructor Documentation

TxLogging::TxEventLogWeb::TxEventLogWeb ( )

Constructor

  • Gets hostname and sets nodeLocation for the running job.
virtual TxLogging::TxEventLogWeb::~TxEventLogWeb ( )
inlinevirtual

Destructor:

  • Sets job state to finished (STAGE = END)

Definition at line 42 of file TxEventLogWeb.h.

Member Function Documentation

virtual void TxLogging::TxEventLogWeb::writeDown ( const char *  message)
protectedvirtual

Write down the prepared plain message using the Web interface

Parameters
stringmessage , Message to be written out

Reimplemented from TxLogging::TxEventLogFile.

virtual void TxLogging::TxEventLogWeb::writeDown ( const std::string &  message)
protectedvirtual

Write down the prepared plain message using the concete media

Parameters
stringmessage , Message to be written out

Reimplemented from TxLogging::TxEventLogFile.


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