org.codehaus.wadi.servicespace.basic
Class BasicServiceMonitor
java.lang.Object
org.codehaus.wadi.servicespace.basic.BasicServiceMonitor
- All Implemented Interfaces:
- Lifecycle, ServiceMonitor
public class BasicServiceMonitor
- extends java.lang.Object
- implements ServiceMonitor, Lifecycle
- Version:
- $Revision: $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicServiceMonitor
public BasicServiceMonitor(ServiceSpace serviceSpace,
ServiceName serviceName)
addServiceLifecycleListener
public void addServiceLifecycleListener(ServiceListener listener)
- Specified by:
addServiceLifecycleListener
in interface ServiceMonitor
getHostingPeers
public java.util.Set<Peer> getHostingPeers()
- Specified by:
getHostingPeers
in interface ServiceMonitor
removeServiceLifecycleListener
public void removeServiceLifecycleListener(ServiceListener listener)
- Specified by:
removeServiceLifecycleListener
in interface ServiceMonitor
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface ServiceMonitor
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface Lifecycle
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface Lifecycle
- Throws:
java.lang.Exception
notifyListeners
protected void notifyListeners(ServiceLifecycleEvent event,
java.util.Set<Peer> newHostingPeers)
processLifecycleEvent
protected void processLifecycleEvent(ServiceLifecycleEvent event)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011. All Rights Reserved.