otsdaq  3.04.02
ots::SupervisorInfo Class Reference
+ Collaboration diagram for ots::SupervisorInfo:

Classes

struct  SubappInfo
 

Public Member Functions

 SupervisorInfo (XDAQ_CONST_CALL xdaq::ApplicationDescriptor *descriptor, const std::string &name, const std::string &contextName)
 
bool isGatewaySupervisor (void) const
 BOOLs ----------------—.
 
bool isWizardSupervisor (void) const
 
bool isTypeFESupervisor (void) const
 
bool isTypeDMSupervisor (void) const
 
bool isTypeLogbookSupervisor (void) const
 
bool isTypeMacroMakerSupervisor (void) const
 
bool isTypeConfigurationGUISupervisor (void) const
 
bool isTypeChatSupervisor (void) const
 
bool isTypeConsoleSupervisor (void) const
 
bool isTypeCodeEditorSupervisor (void) const
 
bool isTypeARTDAQSupervisor (void) const
 
XDAQ_CONST_CALL xdaq::ApplicationDescriptor * getDescriptor (void) const
 Getters ----------------—.
 
const xdaq::ContextDescriptor * getContextDescriptor (void) const
 
const std::string & getName (void) const
 
const std::string & getHostname (void) const
 
const std::string & getContextName (void) const
 
const unsigned int & getId (void) const
 
const std::string & getClass (void) const
 
const std::string & getStatus (void) const
 Note: be careful accessing status_ in multithreaded code (need higher level lock, a la getSupervisorInfoMutex)
 
time_t getLastStatusTime (void) const
 
const unsigned int & getProgress (void) const
 
const std::string & getDetail (void) const
 
const std::string & getURL (void) const
 
const std::string & getURN (void) const
 
const std::string & getFullURL (void) const
 
const uint16_t & getPort (void) const
 
const std::map< std::string, SubappInfo > & getSubappInfo (void) const
 
int64_t getAvailableLogSpaceKB (void) const
 
int64_t getAvailableDataSpaceKB (void) const
 
float getLogUsageRateLastHourKBps (void) const
 
float getLogUsageRateLastHalfHourKBps (void) const
 
float getLogUsageRateLastQuarterHourKBps (void) const
 
float getLogUsageRateNowKBps (void) const
 
float getDataUsageRateLastHourKBps (void) const
 
float getDataUsageRateLastHalfHourKBps (void) const
 
float getDataUsageRateLastQuarterHourKBps (void) const
 
float getDataUsageRateNowKBps (void) const
 
void setStatus (const std::string &status, const unsigned int progress, const std::string &detail="", const int64_t availableLogSpaceKB=0, const int64_t availableDataSpaceKB=0)
 Setters ----------------—. More...
 
void setSubappStatus (const std::string &name, const std::string &status, const unsigned int progress, const std::string &detail="", const int64_t availableLogSpaceKB=0, const int64_t availableDataSpaceKB=0)
 
void copySubappStatus (const SubappInfo &info)
 
void clearSubapps ()
 

Static Public Member Functions

static std::string serializeSubappInfos (std::vector< SubappInfo > infos)
 
static std::vector< SubappInfodeserializeSubappInfos (std::string info_string)
 

Static Public Attributes

static const std::string APP_STATUS_UNKNOWN = "UNKNOWN"
 
static const std::string APP_STATUS_NOT_MONITORED = "Not Monitored"
 

Detailed Description

Definition at line 25 of file SupervisorInfo.h.

Constructor & Destructor Documentation

◆ SupervisorInfo()

ots::SupervisorInfo::SupervisorInfo ( XDAQ_CONST_CALL xdaq::ApplicationDescriptor *  descriptor,
const std::string &  name,
const std::string &  contextName 
)
inline

when no configuration, e.g. Wizard Mode, then name and contextName are derived from the class name and LID

Definition at line 30 of file SupervisorInfo.h.

Member Function Documentation

◆ setStatus()

void SupervisorInfo::setStatus ( const std::string &  status,
const unsigned int  progress,
const std::string &  detail = "",
const int64_t  availableLogSpaceKB = 0,
const int64_t  availableDataSpaceKB = 0 
)

Setters ----------------—.

Note: be careful accessing status_ in multithreaded code (need higher level lock, a la getSupervisorInfoMutex)

Definition at line 9 of file SupervisorInfo.cc.


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