Yate
|
Abstract signalling component that can be managed by the engine. More...
#include <yatesig.h>
Public Member Functions | |
virtual | ~SignallingComponent () |
virtual const String & | toString () const |
virtual bool | initialize (const NamedList *config) |
virtual bool | control (NamedList ¶ms) |
virtual void | engine (SignallingEngine *eng) |
SignallingEngine * | engine () const |
int | debugLevel (int level) |
Protected Member Functions | |
SignallingComponent (const char *name=0, const NamedList *params=0) | |
void | destroyed () |
void | insert (SignallingComponent *component) |
virtual void | detach () |
virtual void | timerTick (const Time &when) |
void | setName (const char *name) |
unsigned long | tickSleep (unsigned long usec=1000000) const |
Friends | |
class | SignallingEngine |
Abstract signalling component that can be managed by the engine.
Interface to an abstract signalling component that is managed by an engine. The engine will periodically poll each component to keep them alive.
virtual ~SignallingComponent | ( | ) | [virtual] |
Destructor, detaches the engine and other components
SignallingComponent | ( | const char * | name = 0 , |
const NamedList * | params = 0 |
||
) | [protected] |
Constructor with a default empty component name
name | Name of this component |
params | Optional pointer to creation parameters |
virtual bool control | ( | NamedList & | params | ) | [virtual] |
int debugLevel | ( | int | level | ) | [inline] |
Conditionally set the debug level of the component
level | Desired debug level, negative for no change |
Reimplemented from DebugEnabler.
References TelEngine::debugLevel().
void destroyed | ( | ) | [protected, virtual] |
This method is called to clean up and destroy the object after the reference counter becomes zero
Reimplemented from RefObject.
Reimplemented in SignallingCircuitGroup, AnalogLineGroup, SS7MTP2, SS7MTP3, SS7ISUP, ISDNQ921, ISDNQ921Passive, ISDNQ931, and ISDNQ931Monitor.
Referenced by ISDNQ931Monitor::destroyed(), ISDNQ931::destroyed(), ISDNQ921Passive::destroyed(), ISDNQ921::destroyed(), SS7MTP2::destroyed(), and SignallingCircuitGroup::destroyed().
virtual void detach | ( | ) | [protected, virtual] |
Detach this component from all its links - components and engine. Reimplement this method in all components that keep pointers to other components. The default implementation detaches from the engine.
virtual void engine | ( | SignallingEngine * | eng | ) | [virtual] |
Set the TelEngine::SignallingEngine that manages this component and any subcomponent of it
eng | Pointer to the engine that will manage this component |
Reimplemented in ISDNQ921Management.
SignallingEngine* engine | ( | ) | const [inline] |
Get the TelEngine::SignallingEngine that manages this component
virtual bool initialize | ( | const NamedList * | config | ) | [virtual] |
Configure and initialize the component and any subcomponents it may have
config | Optional configuration parameters override |
Reimplemented in SS7Router, SS7MTP2, SS7MTP3, SS7ISUP, ISDNQ921, ISDNQ921Management, ISDNQ921Passive, ISDNQ931, and ISDNQ931Monitor.
void insert | ( | SignallingComponent * | component | ) | [protected] |
Insert another component in the same engine as this one. This method should be called for every component we attach.
component | Pointer to component to insert in engine |
void setName | ( | const char * | name | ) | [protected] |
Change the name of the component after it was constructed
name | Name of this component |
unsigned long tickSleep | ( | unsigned long | usec = 1000000 | ) | const [protected] |
Adjust (decrease only) the desired maximum time until next tick. Can be called only from within timerTick()
usec | Desired time until next engine's timerTick() call in usec |
virtual void timerTick | ( | const Time & | when | ) | [protected, virtual] |
Method called periodically by the engine to keep everything alive
when | Time to use as computing base for events and timeouts |
Reimplemented in SS7MTP2, SS7ISUP, ISDNQ921, ISDNQ921Management, ISDNQ921Passive, ISDNQ931, and ISDNQ931Monitor.
virtual const String& toString | ( | ) | const [virtual] |
Get the component's name so it can be used for list searches
Reimplemented from GenObject.