synergynetframework.appsystem.services.net.peer
Class LocalPeer

java.lang.Object
  extended by synergynetframework.appsystem.services.net.peer.LocalPeer

public abstract class LocalPeer
extends java.lang.Object

The Class LocalPeer.


Constructor Summary
LocalPeer(java.lang.String serviceName, java.lang.String serviceType)
          Instantiates a new local peer.
 
Method Summary
abstract  void advertiseServer()
          Advertise server.
 void connect()
          Connect.
abstract  void foundServer(ServiceDescriptor serviceDescriptor)
          Found server.
 ServiceAnnounceSystem getServiceAnnounceSystem()
          Gets the service announce system.
 ServiceDiscoverySystem getServiceDiscoverySystem()
          Gets the service discovery system.
 void setServiceAnnounceSystem(ServiceAnnounceSystem serviceAnnounceSystem)
          Sets the service announce system.
 void setServiceDiscoverySystem(ServiceDiscoverySystem serviceDiscoverySystem)
          Sets the service discovery system.
 void setTimeOut(long timeOut)
          Sets the time out.
abstract  void startServer()
          Start server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalPeer

public LocalPeer(java.lang.String serviceName,
                 java.lang.String serviceType)
Instantiates a new local peer.

Parameters:
serviceName - the service name
serviceType - the service type
Method Detail

advertiseServer

public abstract void advertiseServer()
Advertise server.


connect

public void connect()
             throws java.io.IOException
Connect.

Throws:
java.io.IOException - Signals that an I/O exception has occurred.

foundServer

public abstract void foundServer(ServiceDescriptor serviceDescriptor)
Found server.

Parameters:
serviceDescriptor - the service descriptor

getServiceAnnounceSystem

public ServiceAnnounceSystem getServiceAnnounceSystem()
Gets the service announce system.

Returns:
the service announce system

getServiceDiscoverySystem

public ServiceDiscoverySystem getServiceDiscoverySystem()
Gets the service discovery system.

Returns:
the service discovery system

setServiceAnnounceSystem

public void setServiceAnnounceSystem(ServiceAnnounceSystem serviceAnnounceSystem)
Sets the service announce system.

Parameters:
serviceAnnounceSystem - the new service announce system

setServiceDiscoverySystem

public void setServiceDiscoverySystem(ServiceDiscoverySystem serviceDiscoverySystem)
Sets the service discovery system.

Parameters:
serviceDiscoverySystem - the new service discovery system

setTimeOut

public void setTimeOut(long timeOut)
Sets the time out.

Parameters:
timeOut - the new time out

startServer

public abstract void startServer()
Start server.