|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.services.net.peer.LocalPeer
public abstract class LocalPeer
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 |
---|
public LocalPeer(java.lang.String serviceName, java.lang.String serviceType)
serviceName
- the service nameserviceType
- the service typeMethod Detail |
---|
public abstract void advertiseServer()
public void connect() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public abstract void foundServer(ServiceDescriptor serviceDescriptor)
serviceDescriptor
- the service descriptorpublic ServiceAnnounceSystem getServiceAnnounceSystem()
public ServiceDiscoverySystem getServiceDiscoverySystem()
public void setServiceAnnounceSystem(ServiceAnnounceSystem serviceAnnounceSystem)
serviceAnnounceSystem
- the new service announce systempublic void setServiceDiscoverySystem(ServiceDiscoverySystem serviceDiscoverySystem)
serviceDiscoverySystem
- the new service discovery systempublic void setTimeOut(long timeOut)
timeOut
- the new time outpublic abstract void startServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |