synergynetframework.appsystem.services.net.netservicediscovery
Class NetworkServiceDiscoveryService

java.lang.Object
  extended by synergynetframework.appsystem.services.SynergyNetService
      extended by synergynetframework.appsystem.services.net.netservicediscovery.NetworkServiceDiscoveryService

public class NetworkServiceDiscoveryService
extends SynergyNetService

Service that publishes information about services, or listens for services that become available or become unavailable.


Constructor Summary
NetworkServiceDiscoveryService()
          Instantiates a new network service discovery service.
 
Method Summary
 ServiceAnnounceSystem getServiceAnnouncer()
          Gets the service announcer.
 ServiceDiscoverySystem getServiceDiscovery()
          Gets the service discovery.
 boolean hasStarted()
          Checks for started.
 void shutdown()
          Shutdown.
 void start()
          Start.
 void stop()
          Stop.
 void update()
          Used to avoid threading issues.
 
Methods inherited from class synergynetframework.appsystem.services.SynergyNetService
registerServiceMessageListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkServiceDiscoveryService

public NetworkServiceDiscoveryService()
Instantiates a new network service discovery service.

Method Detail

getServiceAnnouncer

public ServiceAnnounceSystem getServiceAnnouncer()
Gets the service announcer.

Returns:
the service announcer

getServiceDiscovery

public ServiceDiscoverySystem getServiceDiscovery()
Gets the service discovery.

Returns:
the service discovery

hasStarted

public boolean hasStarted()
Description copied from class: SynergyNetService
Checks for started.

Specified by:
hasStarted in class SynergyNetService
Returns:
true, if successful

shutdown

public void shutdown()
Description copied from class: SynergyNetService
Shutdown.

Specified by:
shutdown in class SynergyNetService

start

public void start()
           throws CouldNotStartServiceException
Description copied from class: SynergyNetService
Start.

Throws:
CouldNotStartServiceException - the could not start service exception

stop

public void stop()
Description copied from class: SynergyNetService
Stop.

Specified by:
stop in class SynergyNetService

update

public void update()
Description copied from class: SynergyNetService
Used to avoid threading issues. Should be called periodically to ensure the service updates appropriately.

Specified by:
update in class SynergyNetService