|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.framework.monitor.AbstractMonitorListener
public abstract class AbstractMonitorListener
This abstract class can be used as base class for a new monitor listener component. It delivers default implementations for the CAPI event methods.
| Field Summary | |
|---|---|
protected Logger |
m_logger
|
protected List |
m_monitors
|
| Constructor Summary | |
|---|---|
AbstractMonitorListener()
|
|
| Method Summary | |
|---|---|
void |
doCallConnect(ICall call)
Informs the framework of an new call connection. |
void |
doCallDisconnect(ICall call)
Informs the framework of a call disconnection. |
String[] |
getCapiInformation()
|
abstract IMonitor |
getDefaultMonitor()
Gets the default monitor object this listener is registered to. |
abstract String |
getID()
Gets a unique ID of this listener |
IMonitor |
getMonitor(String id)
Gets the monitor object this listener is registered to with aspecific ID. |
List |
getMonitors()
Gets the monitor objects this listener is registered to. |
abstract boolean |
isEnabled()
Indicates wether listener is enabled or not. |
abstract boolean |
isRunning()
Indicates wether listener is running or not. |
void |
shutdown()
This method is called on shutdown time by the runtime object. |
void |
startup()
This method is called on startup time by the runtime object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.janrufmonitor.framework.monitor.IMonitorListener |
|---|
start, stop |
| Field Detail |
|---|
protected Logger m_logger
protected List m_monitors
| Constructor Detail |
|---|
public AbstractMonitorListener()
| Method Detail |
|---|
public void doCallConnect(ICall call)
IMonitorListener
doCallConnect in interface IMonitorListenercall - call incomingpublic void doCallDisconnect(ICall call)
IMonitorListener
doCallDisconnect in interface IMonitorListenercall - call to be disconnectedpublic String[] getCapiInformation()
public IMonitor getMonitor(String id)
IMonitorListener
getMonitor in interface IMonitorListenerpublic List getMonitors()
IMonitorListener
getMonitors in interface IMonitorListenerpublic abstract boolean isEnabled()
IMonitorListener
isEnabled in interface IMonitorListenerpublic abstract boolean isRunning()
IMonitorListener
isRunning in interface IMonitorListenerpublic abstract IMonitor getDefaultMonitor()
IMonitorListener
getDefaultMonitor in interface IMonitorListenerpublic abstract String getID()
public void shutdown()
IMonitorListener
shutdown in interface IMonitorListenerpublic void startup()
IMonitorListener
startup in interface IMonitorListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||