synergynetframework.appsystem.services.net.localpresence
Class LocalPresenceDetectionService

java.lang.Object
  extended by synergynetframework.appsystem.services.SynergyNetService
      extended by synergynetframework.appsystem.services.net.localpresence.LocalPresenceDetectionService
All Implemented Interfaces:
ServiceDiscoveryListener

public class LocalPresenceDetectionService
extends SynergyNetService
implements ServiceDiscoveryListener

The Class LocalPresenceDetectionService.


Constructor Summary
LocalPresenceDetectionService()
          Instantiates a new local presence detection service.
 
Method Summary
 java.util.List<java.lang.String> getCurrentlyOnlineList()
          Gets the currently online list.
 boolean hasStarted()
          Checks for started.
 void serviceAvailable(ServiceDescriptor sd)
          Service available.
 void serviceRemoved(ServiceDescriptor sd)
          Service removed.
 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

LocalPresenceDetectionService

public LocalPresenceDetectionService()
Instantiates a new local presence detection service.

Method Detail

getCurrentlyOnlineList

public java.util.List<java.lang.String> getCurrentlyOnlineList()
Gets the currently online list.

Returns:
the currently online list

hasStarted

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

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

serviceAvailable

public void serviceAvailable(ServiceDescriptor sd)
Description copied from interface: ServiceDiscoveryListener
Service available.

Specified by:
serviceAvailable in interface ServiceDiscoveryListener
Parameters:
sd - the descriptor

serviceRemoved

public void serviceRemoved(ServiceDescriptor sd)
Description copied from interface: ServiceDiscoveryListener
Service removed.

Specified by:
serviceRemoved in interface ServiceDiscoveryListener
Parameters:
sd - the descriptor

shutdown

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

Specified by:
shutdown in class SynergyNetService

start

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


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