public class HostControllerServerConnection extends ManagementClientChannelStrategy
| Modifier and Type | Class and Description |
|---|---|
class |
HostControllerServerConnection.ServerReconnectRequest
The server reconnect request.
|
| Constructor and Description |
|---|
HostControllerServerConnection(String serverProcessName,
ProtocolChannelClient.Configuration configuration,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(CallbackHandler callbackHandler,
ActiveOperation.CompletedCallback<Void> callback)
Connect to the remote host-controller.
|
org.jboss.remoting3.Channel |
getChannel()
Get the channel.
|
ManagementChannelHandler |
getChannelHandler()
Get the management channel handler.
|
void |
reconnect(URI connectionURI,
CallbackHandler callbackHandler,
ActiveOperation.CompletedCallback<Boolean> callback)
Reconnect to the server.
|
create, createpublic HostControllerServerConnection(String serverProcessName, ProtocolChannelClient.Configuration configuration, ExecutorService executorService)
public void connect(CallbackHandler callbackHandler, ActiveOperation.CompletedCallback<Void> callback) throws IOException
callback - the completed callbackIOExceptionpublic void reconnect(URI connectionURI, CallbackHandler callbackHandler, ActiveOperation.CompletedCallback<Boolean> callback) throws IOException
connectionURI - the connection uricallbackHandler - the callback handlercallback - the completed callbackIOExceptionpublic org.jboss.remoting3.Channel getChannel()
throws IOException
getChannel in class ManagementClientChannelStrategyIOExceptionpublic void close()
throws IOException
IOExceptionpublic ManagementChannelHandler getChannelHandler()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.