public interface DomainController
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME
ServiceName under which a DomainController instance should be registered
with the service container of a Host Controller that is acting as the domain controller. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableCapabilityRegistry |
getCapabilityRegistry() |
RunningMode |
getCurrentRunningMode()
Gets the domain controller's current running mode.
|
ExpressionResolver |
getExpressionResolver() |
ExtensionRegistry |
getExtensionRegistry() |
HostFileRepository |
getLocalFileRepository()
Gets the file repository backing this domain controller
|
LocalHostControllerInfo |
getLocalHostInfo()
Gets the local host controller info.
|
org.jboss.dmr.ModelNode |
getProfileOperations(String profileName)
Get the operations needed to create the given profile.
|
HostFileRepository |
getRemoteFileRepository()
Gets the file repository backing the master domain controller
|
void |
initializeMasterDomainRegistry(ManagementResourceRegistration root,
ExtensibleConfigurationPersister configurationPersister,
ContentRepository contentRepository,
HostFileRepository fileRepository,
ExtensionRegistry extensionRegistry,
PathManagerService pathManager) |
void |
initializeSlaveDomainRegistry(ManagementResourceRegistration root,
ExtensibleConfigurationPersister configurationPersister,
ContentRepository contentRepository,
HostFileRepository fileRepository,
LocalHostControllerInfo hostControllerInfo,
ExtensionRegistry extensionRegistry,
IgnoredDomainResourceRegistry ignoredDomainResourceRegistry,
PathManagerService pathManager) |
boolean |
isHostRegistered(String id)
Check if a Host Controller is already registered with this domain controller.
|
void |
pingRemoteHost(String hostName)
Asynchronously ping the slave host with the given
hostName to validate its connection. |
void |
registerRemoteHost(String hostName,
ManagementChannelHandler handler,
Transformers transformers,
Long remoteConnectionId,
boolean registerProxyController)
Registers a slave Host Controller with this domain controller.
|
void |
registerRunningServer(ProxyController serverControllerClient)
Registers a running server in the domain model
|
void |
stopLocalHost()
Stops this host controller
|
void |
stopLocalHost(int exitCode)
Stop this host controller with a specific exit code.
|
void |
unregisterRemoteHost(String id,
Long remoteConnectionId,
boolean cleanUnregistration)
Unregisters a previously registered Host Controller.
|
void |
unregisterRunningServer(String serverName)
Unregisters a running server from the domain model
|
static final org.jboss.msc.service.ServiceName SERVICE_NAME
ServiceName under which a DomainController instance should be registered
with the service container of a Host Controller that is acting as the domain controller.RunningMode getCurrentRunningMode()
LocalHostControllerInfo getLocalHostInfo()
void registerRemoteHost(String hostName, ManagementChannelHandler handler, Transformers transformers, Long remoteConnectionId, boolean registerProxyController) throws SlaveRegistrationException
hostName - the name of the slave hosthandler - handler for communications with the hosttransformers - transformation handler for converting resources and operations to forms appropriate for the slaveremoteConnectionId - long identifying this specific connection to the host, or null if the host did not provide such an idregisterProxyController - true if a proxy controller should be registered for the host; false
if the host is in --admin-only mode and should not be visible to outside usersSlaveRegistrationException - if there is a problem registering the hostboolean isHostRegistered(String id)
id - the name of the host controllertrue if there is such a host controller registered, false otherwisevoid unregisterRemoteHost(String id, Long remoteConnectionId, boolean cleanUnregistration)
id - the name of the previously
registered Host ControllerremoteConnectionId - long identifying the specific connection to the host, or null. If null
the host's registration will be removed regardless of any remote connection id
that was provided at registration. If not null, the registration will only
be removed if the currently registered id matches the given idcleanUnregistration - flag indication whether the host was cleanly unregisteredvoid pingRemoteHost(String hostName)
hostName to validate its connection.hostName - the name of the slave hostvoid registerRunningServer(ProxyController serverControllerClient)
serverControllerClient - client the controller can use to communicate with the server.void unregisterRunningServer(String serverName)
serverName - the name of the serverorg.jboss.dmr.ModelNode getProfileOperations(String profileName)
profileName - the name of the profileHostFileRepository getLocalFileRepository()
HostFileRepository getRemoteFileRepository()
IllegalStateException - if the local host info's
LocalHostControllerInfo.isMasterDomainController() method would return truevoid stopLocalHost()
void stopLocalHost(int exitCode)
exitCode - the exit code passed to the ProcessControllerExtensionRegistry getExtensionRegistry()
ImmutableCapabilityRegistry getCapabilityRegistry()
ExpressionResolver getExpressionResolver()
void initializeMasterDomainRegistry(ManagementResourceRegistration root, ExtensibleConfigurationPersister configurationPersister, ContentRepository contentRepository, HostFileRepository fileRepository, ExtensionRegistry extensionRegistry, PathManagerService pathManager)
void initializeSlaveDomainRegistry(ManagementResourceRegistration root, ExtensibleConfigurationPersister configurationPersister, ContentRepository contentRepository, HostFileRepository fileRepository, LocalHostControllerInfo hostControllerInfo, ExtensionRegistry extensionRegistry, IgnoredDomainResourceRegistry ignoredDomainResourceRegistry, PathManagerService pathManager)
Copyright © 2015 JBoss by Red Hat. All rights reserved.