ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbWATCHDOG Class Reference

#include <ngcbWATCHDOG.hpp>

Inheritance diagram for ngcbWATCHDOG:
WatchdogTest

Public Member Functions

 ngcbWATCHDOG (int verbose=0)
 Constructor.
 
 ~ngcbWATCHDOG ()
 Destructor.
 
int Initialized ()
 Watchdog properly initialized.
 
const char * ErrMsg ()
 Return error message, if initialization has failed.
 
FILE * Watchdog ()
 Return watchdog stream for direct access.
 
void Add (int pid)
 Add process to local kill-list.
 
void Add (const char *host, int pid)
 Add process to kill-list for host.
 
void Add (const char *cmd)
 Add command to local instruction list.
 
void Add (const char *host, const char *cmd)
 Add command to instruction list for host.
 
void DB (const char *attr, const char *value)
 Add DB-update to local instruction list.
 
void DB (const char *host, const char *attr, const char *value)
 Add DB-update to instruction list for host.
 
void Remove (int pid)
 Remove process from local kill-list.
 
void Remove (const char *host, int pid)
 Remove process from kill-list for host.
 
void Remove (const char *cmd)
 Remove command from local instruction list.
 
void Remove (const char *host, const char *cmd)
 Remove command from instruction list for host.
 
void Clear ()
 Clear all instructions.
 
void Clear (const char *host)
 Clear all instructions for host.
 
void ClearLocal ()
 Clear all local instructions.
 
void Send (const char *msg)
 Send message to watchdog.
 

Protected Member Functions

void Watchdog (FILE *wd)
 Set watchdog stream for direct access.
 

Detailed Description

NGC CORE watchdog class

Constructor & Destructor Documentation

◆ ngcbWATCHDOG()

ngcbWATCHDOG::ngcbWATCHDOG ( int verbose = 0)
inline

Constructor.

◆ ~ngcbWATCHDOG()

ngcbWATCHDOG::~ngcbWATCHDOG ( )
inline

Destructor.

Member Function Documentation

◆ Add() [1/4]

void ngcbWATCHDOG::Add ( const char * cmd)
inline

Add command to local instruction list.

◆ Add() [2/4]

void ngcbWATCHDOG::Add ( const char * host,
const char * cmd )
inline

Add command to instruction list for host.

◆ Add() [3/4]

void ngcbWATCHDOG::Add ( const char * host,
int pid )
inline

Add process to kill-list for host.

◆ Add() [4/4]

void ngcbWATCHDOG::Add ( int pid)
inline

Add process to local kill-list.

◆ Clear() [1/2]

void ngcbWATCHDOG::Clear ( )
inline

Clear all instructions.

◆ Clear() [2/2]

void ngcbWATCHDOG::Clear ( const char * host)
inline

Clear all instructions for host.

◆ ClearLocal()

void ngcbWATCHDOG::ClearLocal ( )
inline

Clear all local instructions.

◆ DB() [1/2]

void ngcbWATCHDOG::DB ( const char * attr,
const char * value )
inline

Add DB-update to local instruction list.

◆ DB() [2/2]

void ngcbWATCHDOG::DB ( const char * host,
const char * attr,
const char * value )
inline

Add DB-update to instruction list for host.

◆ ErrMsg()

const char * ngcbWATCHDOG::ErrMsg ( )
inline

Return error message, if initialization has failed.

◆ Initialized()

int ngcbWATCHDOG::Initialized ( )
inline

Watchdog properly initialized.

◆ Remove() [1/4]

void ngcbWATCHDOG::Remove ( const char * cmd)
inline

Remove command from local instruction list.

◆ Remove() [2/4]

void ngcbWATCHDOG::Remove ( const char * host,
const char * cmd )
inline

Remove command from instruction list for host.

◆ Remove() [3/4]

void ngcbWATCHDOG::Remove ( const char * host,
int pid )
inline

Remove process from kill-list for host.

◆ Remove() [4/4]

void ngcbWATCHDOG::Remove ( int pid)
inline

Remove process from local kill-list.

◆ Send()

void ngcbWATCHDOG::Send ( const char * msg)
inline

Send message to watchdog.

◆ Watchdog() [1/2]

FILE * ngcbWATCHDOG::Watchdog ( )
inline

Return watchdog stream for direct access.

◆ Watchdog() [2/2]

void ngcbWATCHDOG::Watchdog ( FILE * wd)
inlineprotected

Set watchdog stream for direct access.


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