de.janrufmonitor.framework.monitor
Interface IMonitorListener

All Known Implementing Classes:
AbstractMonitorListener

public interface IMonitorListener

This interface must be implemented by a monitor listener object. A monitor listener keeps track of the information provided by a monitor object. It normally creates events for the framework to notify on information provided by the monitor, e.g., an incoming call or a call information.

Author:
Thilo Brandt

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.
 IMonitor getDefaultMonitor()
          Gets the default monitor object this listener is registered to.
 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.
 boolean isEnabled()
          Indicates wether listener is enabled or not.
 boolean isRunning()
          Indicates wether listener is running or not.
 void shutdown()
          This method is called on shutdown time by the runtime object.
 void start()
          This method starts all IMonitor objects registered at this service.
 void startup()
          This method is called on startup time by the runtime object.
 void stop()
          This method stops all IMonitor objects registered at this service.
 

Method Detail

doCallConnect

void doCallConnect(ICall call)
Informs the framework of an new call connection.

Parameters:
call - call incoming

doCallDisconnect

void doCallDisconnect(ICall call)
Informs the framework of a call disconnection.

Parameters:
call - call to be disconnected

isEnabled

boolean isEnabled()
Indicates wether listener is enabled or not.

Returns:
true if enabled, otherwise false.

isRunning

boolean isRunning()
Indicates wether listener is running or not.

Returns:
true if running, otherwise false.

getMonitors

List getMonitors()
Gets the monitor objects this listener is registered to.

Returns:
List of IMonitor objects

getMonitor

IMonitor getMonitor(String id)
Gets the monitor object this listener is registered to with aspecific ID.

Returns:
IMonitor objects of the specified ID or null, if it does not exist.

getDefaultMonitor

IMonitor getDefaultMonitor()
Gets the default monitor object this listener is registered to.

Returns:
IMonitor object of the default implementation

startup

void startup()
This method is called on startup time by the runtime object.


shutdown

void shutdown()
This method is called on shutdown time by the runtime object.


start

void start()
This method starts all IMonitor objects registered at this service.


stop

void stop()
This method stops all IMonitor objects registered at this service.



Copyright © 2010 by Thilo Brandt. All Rights Reserved.