synergynetframework.appsystem.services
Class SynergyNetService

java.lang.Object
  extended by synergynetframework.appsystem.services.SynergyNetService
Direct Known Subclasses:
FileStoreClient, FileStoreServer, LocalPresenceAnnouncerService, LocalPresenceDetectionService, NetworkContentClientService, NetworkContentServerService, NetworkServiceDiscoveryService, TableCommsClientService, TableCommsServerService, TableControlClientService, WebServerService

public abstract class SynergyNetService
extends java.lang.Object

The Class SynergyNetService.


Constructor Summary
SynergyNetService()
           
 
Method Summary
abstract  boolean hasStarted()
          Checks for started.
 void registerServiceMessageListener(ServiceMessageListener listener)
          Services can publish messages.
abstract  void shutdown()
          Shutdown.
abstract  void stop()
          Stop.
abstract  void update()
          Used to avoid threading issues.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynergyNetService

public SynergyNetService()
Method Detail

hasStarted

public abstract boolean hasStarted()
Checks for started.

Returns:
true, if successful

registerServiceMessageListener

public void registerServiceMessageListener(ServiceMessageListener listener)
Services can publish messages. Subscribe to these messages by adding ServiceMessageListener instances.

Parameters:
listener - the listener

shutdown

public abstract void shutdown()
Shutdown.


stop

public abstract void stop()
                   throws ServiceNotRunningException
Stop.

Throws:
ServiceNotRunningException - the service not running exception

update

public abstract void update()
Used to avoid threading issues. Should be called periodically to ensure the service updates appropriately.