org.codehaus.wadi.servicespace.basic
Class BasicServiceMonitor

java.lang.Object
  extended by org.codehaus.wadi.servicespace.basic.BasicServiceMonitor
All Implemented Interfaces:
Lifecycle, ServiceMonitor

public class BasicServiceMonitor
extends java.lang.Object
implements ServiceMonitor, Lifecycle

Version:
$Revision: $

Nested Class Summary
protected  class BasicServiceMonitor.HostingServiceSpaceFailure
           
protected  class BasicServiceMonitor.ServiceLifecycleEndpoint
           
 
Constructor Summary
BasicServiceMonitor(ServiceSpace serviceSpace, ServiceName serviceName)
           
 
Method Summary
 void addServiceLifecycleListener(ServiceListener listener)
           
 java.util.Set getHostingPeers()
           
 boolean isStarted()
           
protected  void notifyListeners(ServiceLifecycleEvent event, java.util.Set<org.codehaus.wadi.group.Peer> newHostingPeers)
           
protected  void processLifecycleEvent(ServiceLifecycleEvent event)
           
 void removeServiceLifecycleListener(ServiceListener listener)
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicServiceMonitor

public BasicServiceMonitor(ServiceSpace serviceSpace,
                           ServiceName serviceName)
Method Detail

addServiceLifecycleListener

public void addServiceLifecycleListener(ServiceListener listener)
Specified by:
addServiceLifecycleListener in interface ServiceMonitor

getHostingPeers

public java.util.Set 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<org.codehaus.wadi.group.Peer> newHostingPeers)

processLifecycleEvent

protected void processLifecycleEvent(ServiceLifecycleEvent event)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.