public interface ServiceLocatorBackend
| Modifier and Type | Method and Description |
|---|---|
void |
addPostConnectAction(ServiceLocator.PostConnectAction postConnectAction)
Specify the action to be be executed after the Service Locator has
connected to the server.
|
RootNode |
connect()
Establish a connection to the Service Locator.
|
void |
disconnect()
Disconnects from a Service Locator server.
|
boolean |
isConnected() |
void |
removePostConnectAction(ServiceLocator.PostConnectAction postConnectAction)
Specify the action to be be executed after the Service Locator has
connected to the server.
|
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 ServiceLocatorServiceLocatorException - the connect operation failedvoid disconnect()
throws InterruptedException,
ServiceLocatorException
connect again.InterruptedException - the current Thread was interrupted when waiting
for the disconnect to happenServiceLocatorExceptionboolean isConnected()
void addPostConnectAction(ServiceLocator.PostConnectAction postConnectAction)
postConnectAction - the action to be executed, must not be null.void removePostConnectAction(ServiceLocator.PostConnectAction postConnectAction)
postConnectAction - the action to be executed, must not be null.Copyright © 2011–2018 Talend Inc.. All rights reserved.