|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceLocatorBackend
| Method Summary | |
|---|---|
RootNode |
connect()
Establish a connection to the Service Locator. |
void |
disconnect()
Disconnects from a Service Locator server. |
boolean |
isConnected()
|
void |
setPostConnectAction(ServiceLocator.PostConnectAction postConnectAction)
Specify the action to be be executed after the Service Locator has connected to the server. |
| Method Detail |
|---|
RootNode connect()
throws InterruptedException,
ServiceLocatorException
ServiceLocator.PostConnectAction is run. If the session
to the server expires because the server could not be reached within the
specified time, a reconnect is
automatically executed as soon as the server can be reached again.
Because after a session time out all registered endpoints are removed it
is important to specify a ServiceLocator.PostConnectAction that re-registers all
endpoints.
InterruptedException - the current Thread was interrupted when waiting
for a successful connection to the ServiceLocator
ServiceLocatorException - the connect operation failed
void disconnect()
throws InterruptedException,
ServiceLocatorException
connect again.
InterruptedException - the current Thread was interrupted when waiting
for the disconnect to happen
ServiceLocatorExceptionboolean isConnected()
void setPostConnectAction(ServiceLocator.PostConnectAction postConnectAction)
postConnectAction - the action to be executed, must not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||