public class DomainModelControllerService extends AbstractControllerService implements DomainController
ModelController
for a Host Controller process.Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
BOOT_STACK_SIZE_PROPERTY, DEFAULT_BOOT_STACK_SIZE
Modifier and Type | Method and Description |
---|---|
static org.jboss.msc.service.ServiceController<ModelController> |
addService(org.jboss.msc.service.ServiceTarget serviceTarget,
HostControllerEnvironment environment,
HostRunningModeControl runningModeControl,
ControlledProcessState processState,
BootstrapListener bootstrapListener) |
protected void |
boot(BootContext context)
Boot the controller.
|
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
|
protected void |
initModel(Resource rootResource,
ManagementResourceRegistration rootRegistration) |
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 |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
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
|
boot, finishBoot, getExecutorServiceInjector, getValue, setConfigurationPersister
public static org.jboss.msc.service.ServiceController<ModelController> addService(org.jboss.msc.service.ServiceTarget serviceTarget, HostControllerEnvironment environment, HostRunningModeControl runningModeControl, ControlledProcessState processState, BootstrapListener bootstrapListener)
public LocalHostControllerInfo getLocalHostInfo()
DomainController
getLocalHostInfo
in interface DomainController
public void registerRemoteHost(ProxyController hostControllerClient) throws SlaveRegistrationException
DomainController
registerRemoteHost
in interface DomainController
hostControllerClient
- client the domain controller can use to communicate with the Host Controller.SlaveRegistrationException
- if there is a problem registering the hostpublic boolean isHostRegistered(String id)
DomainController
isHostRegistered
in interface DomainController
id
- the name of the host controllertrue
if there is such a host controller registered, false
otherwisepublic void unregisterRemoteHost(String id)
DomainController
unregisterRemoteHost
in interface DomainController
id
- the name of the previously
registered Host Controllerpublic void registerRunningServer(ProxyController serverControllerClient)
DomainController
registerRunningServer
in interface DomainController
serverControllerClient
- client the controller can use to communicate with the server.public void unregisterRunningServer(String serverName)
DomainController
unregisterRunningServer
in interface DomainController
serverName
- the name of the serverpublic org.jboss.dmr.ModelNode getProfileOperations(String profileName)
DomainController
getProfileOperations
in interface DomainController
profileName
- the name of the profilepublic HostFileRepository getLocalFileRepository()
DomainController
getLocalFileRepository
in interface DomainController
public HostFileRepository getRemoteFileRepository()
DomainController
getRemoteFileRepository
in interface DomainController
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<ModelController>
start
in class AbstractControllerService
org.jboss.msc.service.StartException
protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
initModel
in class AbstractControllerService
protected void boot(BootContext context) throws ConfigurationPersistenceException
AbstractControllerService
boot
in class AbstractControllerService
context
- the boot contextConfigurationPersistenceException
- if the configuration failed to be loadedpublic void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ModelController>
stop
in class AbstractControllerService
public void stopLocalHost()
DomainController
stopLocalHost
in interface DomainController
public void stopLocalHost(int exitCode)
DomainController
stopLocalHost
in interface DomainController
exitCode
- the exit code passed to the ProcessControllerCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.