|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.service.AbstractConfigurableService
de.janrufmonitor.service.AbstractReceiverConfigurableService
public abstract class AbstractReceiverConfigurableService
This abstract class can be used as base class for a new service implementation which is supporting configuration and eventing.
| Field Summary |
|---|
| Fields inherited from class de.janrufmonitor.service.AbstractConfigurableService |
|---|
CFG_ENABLED, CFG_PRIORITY, m_configuration, m_logger |
| Constructor Summary | |
|---|---|
AbstractReceiverConfigurableService()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
enabledReceived(IEvent event)
This method is called by the framework if an event is fired by the event broker and the received event passes the service enabled check. |
abstract String |
getID()
Gets the ID of the new service. |
abstract String |
getNamespace()
Gets the namespace of the configurable object. |
String |
getReceiverID()
Gets the ID of the receiver |
void |
received(IEvent event)
Receives the event for which this event receiver is registered for. |
void |
receivedIdentifiedCall(IEvent event)
This method is called by the framework if an event of type EVENT_TYPE_IDENTIFIED_CALL was fired by the event broker and the service
passes the enabled check. |
void |
receivedOtherEventCall(IEvent event)
This method is called by the framework if an event of any type except EVENT_TYPE_IDENTIFIED_CALL was fired by the event broker and the service
passes the enabled check. |
void |
receivedValidRule(ICall aCall)
This method is called by the framework if the service passes the valid rule check. |
| Methods inherited from class de.janrufmonitor.service.AbstractConfigurableService |
|---|
getConfigurableID, getDependencyServices, getPriority, getRuntime, getServiceID, isEnabled, isRunning, restart, setConfiguration, setEnabled, shutdown, startup, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.janrufmonitor.framework.event.IEventReceiver |
|---|
getPriority |
| Constructor Detail |
|---|
public AbstractReceiverConfigurableService()
| Method Detail |
|---|
public void received(IEvent event)
IEventReceiver
received in interface IEventReceiverevent - the event to receivepublic void enabledReceived(IEvent event)
event - evnt which was fired by the event brokerpublic void receivedIdentifiedCall(IEvent event)
EVENT_TYPE_IDENTIFIED_CALL was fired by the event broker and the service
passes the enabled check.
event - the identified call eventpublic void receivedOtherEventCall(IEvent event)
EVENT_TYPE_IDENTIFIED_CALL was fired by the event broker and the service
passes the enabled check.
event - the eventpublic void receivedValidRule(ICall aCall)
aCall - the incoming callpublic String getReceiverID()
IEventReceiver
getReceiverID in interface IEventReceiverpublic abstract String getNamespace()
IConfigurable
getNamespace in interface IConfigurablegetNamespace in class AbstractConfigurableServicepublic abstract String getID()
getID in class AbstractConfigurableService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||