public class RemoteDomainConnectionService extends Object implements MasterDomainControllerClient, org.jboss.msc.service.Service<MasterDomainControllerClient>
DomainController to the master
DomainControllerModelControllerClient.FactorySERVICE_NAME| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.jboss.dmr.ModelNode |
execute(org.jboss.dmr.ModelNode operation)
Execute an operation synchronously.
|
org.jboss.dmr.ModelNode |
execute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
org.jboss.dmr.ModelNode |
execute(Operation operation)
Execute an operation synchronously.
|
org.jboss.dmr.ModelNode |
execute(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> |
executeAsync(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation.
|
org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> |
executeAsync(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation.
|
HostFileRepository |
getRemoteFileRepository()
Gets a
HostFileRepository capable of retrieving files from the
master domain controller. |
MasterDomainControllerClient |
getValue() |
static Future<MasterDomainControllerClient> |
install(org.jboss.msc.service.ServiceTarget serviceTarget,
ModelController controller,
LocalHostControllerInfo localHostControllerInfo,
ProductConfig productConfig,
String securityRealm,
org.jboss.as.host.controller.RemoteDomainConnectionService.RemoteFileRepository remoteFileRepository) |
void |
register()
Register with the remote domain controller
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
unregister()
Unregister with the remote domain controller.
|
public static Future<MasterDomainControllerClient> install(org.jboss.msc.service.ServiceTarget serviceTarget, ModelController controller, LocalHostControllerInfo localHostControllerInfo, ProductConfig productConfig, String securityRealm, org.jboss.as.host.controller.RemoteDomainConnectionService.RemoteFileRepository remoteFileRepository)
public void register()
throws IOException
register in interface MasterDomainControllerClientIOException - if there was a problem talking to the remote hostpublic void unregister()
unregister in interface MasterDomainControllerClientpublic HostFileRepository getRemoteFileRepository()
HostFileRepository capable of retrieving files from the
master domain controller.getRemoteFileRepository in interface MasterDomainControllerClientpublic org.jboss.dmr.ModelNode execute(org.jboss.dmr.ModelNode operation)
throws IOException
ModelControllerClientexecute in interface ModelControllerClientoperation - the operation to executeIOException - if an I/O error occurs while executing the operationpublic org.jboss.dmr.ModelNode execute(Operation operation) throws IOException
ModelControllerClientOperationAttachments.isAutoCloseStreams().execute in interface ModelControllerClientoperation - the operation to executeIOException - if an I/O error occurs while executing the operationpublic org.jboss.dmr.ModelNode execute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler)
throws IOException
ModelControllerClientexecute in interface ModelControllerClientoperation - the operation to executemessageHandler - the message handler to use for operation progress reporting, or null for noneIOException - if an I/O error occurs while executing the operationpublic org.jboss.dmr.ModelNode execute(Operation operation, OperationMessageHandler messageHandler) throws IOException
ModelControllerClientOperationAttachments.isAutoCloseStreams().execute in interface ModelControllerClientoperation - the operation to executemessageHandler - the message handler to use for operation progress reporting, or null for noneIOException - if an I/O error occurs while executing the operationpublic org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> executeAsync(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler)
ModelControllerClientexecuteAsync in interface ModelControllerClientoperation - the operation to executemessageHandler - the message handler to use for operation progress reporting, or null for nonepublic org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler)
ModelControllerClientOperationAttachments.isAutoCloseStreams().executeAsync in interface ModelControllerClientoperation - the operation to executemessageHandler - the message handler to use for operation progress reporting, or null for nonepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<MasterDomainControllerClient>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<MasterDomainControllerClient>public MasterDomainControllerClient getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<MasterDomainControllerClient>IllegalStateExceptionIllegalArgumentExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.