Yate
SubsystemStatusTest Class Reference
Inheritance diagram for SubsystemStatusTest:
RefObject GenObject

Public Member Functions

 SubsystemStatusTest (u_int32_t interval)
 
virtual ~SubsystemStatusTest ()
 
bool startTest (SccpRemote *remoteSccp, SccpSubsystem *rSubsystem)
 
SccpRemotegetRemote ()
 
bool timeout ()
 
SccpSubsystemgetSubsystem ()
 
void restartTimer ()
 
bool markAllowed ()
 
void setAllowed (bool allowed)
 
- Public Member Functions inherited from RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void * getObject (const String &name) const
 
virtual bool alive () const
 
bool ref ()
 
bool deref ()
 
int refcount () const
 
virtual void destruct ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from RefObject
static bool alive (const RefObject *obj)
 
static bool efficientIncDec ()
 
- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 
- Protected Member Functions inherited from RefObject
virtual void zeroRefs ()
 
bool resurrect ()
 
virtual void destroyed ()
 

Constructor & Destructor Documentation

◆ SubsystemStatusTest()

SubsystemStatusTest ( u_int32_t interval)
inline

Constructor

Parameters
intervalThe time interval in milliseconds representing the test duration

◆ ~SubsystemStatusTest()

virtual ~SubsystemStatusTest ( )
virtual

Destructor

Member Function Documentation

◆ getRemote()

SccpRemote * getRemote ( )
inline

Obtain the remote SCCP of this status test

Returns
Remote Sccp

◆ getSubsystem()

SccpSubsystem * getSubsystem ( )
inline

Get the subsystem who caused this test

Returns
The subsystem for who this test was initiated

◆ markAllowed()

bool markAllowed ( )
inline

Helper method used to find if we should mark the remote subsystem as allowed at the end of the test

◆ restartTimer()

void restartTimer ( )

Restart subsystem status test with exponential backoff

◆ setAllowed()

void setAllowed ( bool allowed)
inline

Mark the tested subsystem as allowed at the end of the test

Parameters
allowedTrue to set the subsystem allowed at the end of the test

◆ startTest()

bool startTest ( SccpRemote * remoteSccp,
SccpSubsystem * rSubsystem )

Start this subsystem status test

Parameters
remoteSccpThe remote sccp where the subsystem is located
rSubsystemThe remote subsystem for witch the test is performed
Returns
True if the test has successfully started

◆ timeout()

bool timeout ( )
inline

Helper method to check for timeouts

Returns
True if timed out

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