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 |
---|---|
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
|
boolean |
isHostRegistered(String id)
Check if a Host Controller is already registered with this domain controller.
|
void |
registerRemoteHost(ProxyController hostControllerClient)
Registers a 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)
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.LocalHostControllerInfo getLocalHostInfo()
void registerRemoteHost(ProxyController hostControllerClient) throws SlaveRegistrationException
hostControllerClient
- client the domain controller can use to communicate with the Host Controller.IllegalArgumentException
- if there already exists a host controller with the same id as
hostControllerClient
SlaveRegistrationException
- 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)
id
- the name of the previously
registered Host Controllervoid 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 true
void stopLocalHost()
void stopLocalHost(int exitCode)
exitCode
- the exit code passed to the ProcessControllerCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.