|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.services.net.peer.ServerStatusMonitor
public class ServerStatusMonitor
The Class ServerStatusMonitor.
Constructor Summary | |
---|---|
ServerStatusMonitor(java.lang.String serviceType,
java.lang.String serviceName,
long timeOut)
Instantiates a new server status monitor. |
Method Summary | |
---|---|
void |
connect()
Connect. |
ServiceDescriptor |
getServerServiceDescriptor()
Gets the server service descriptor. |
boolean |
serverFound()
Server found. |
void |
serviceAvailable(ServiceDescriptor sd)
Service available. |
void |
serviceRemoved(ServiceDescriptor sd)
Service removed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerStatusMonitor(java.lang.String serviceType, java.lang.String serviceName, long timeOut)
serviceType
- the service typeserviceName
- the service nametimeOut
- the time outMethod Detail |
---|
public void connect() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic ServiceDescriptor getServerServiceDescriptor()
public boolean serverFound()
public void serviceAvailable(ServiceDescriptor sd)
ServiceDiscoveryListener
serviceAvailable
in interface ServiceDiscoveryListener
sd
- the descriptorpublic void serviceRemoved(ServiceDescriptor sd)
ServiceDiscoveryListener
serviceRemoved
in interface ServiceDiscoveryListener
sd
- the descriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |