edu.ntnu.cikmr.services
Class AbstractService

java.lang.Object
  extended by edu.ntnu.cikmr.services.AbstractService
All Implemented Interfaces:
Service
Direct Known Subclasses:
AbstractResourceService, Arbitration, ContextService, PeersService, ResourceManagerService, Scheduler, ServiceManager

public abstract class AbstractService
extends java.lang.Object
implements Service


Field Summary
protected  javax.swing.event.EventListenerList listenerList
           
 
Constructor Summary
AbstractService()
           
 
Method Summary
 void addServiceListener(ServiceListener l)
           
protected  void fireServiceStarted(Service service)
           
protected  void fireServiceStopped(Service service)
           
 void removeServiceListner(ServiceListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ntnu.cikmr.services.Service
init, isStarted, start, stop
 

Field Detail

listenerList

protected javax.swing.event.EventListenerList listenerList
Constructor Detail

AbstractService

public AbstractService()
Method Detail

addServiceListener

public void addServiceListener(ServiceListener l)
Specified by:
addServiceListener in interface Service

removeServiceListner

public void removeServiceListner(ServiceListener l)
Specified by:
removeServiceListner in interface Service

fireServiceStarted

protected void fireServiceStarted(Service service)

fireServiceStopped

protected void fireServiceStopped(Service service)