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, setConfigurationPersisterpublic 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()
DomainControllergetLocalHostInfo in interface DomainControllerpublic void registerRemoteHost(ProxyController hostControllerClient) throws SlaveRegistrationException
DomainControllerregisterRemoteHost in interface DomainControllerhostControllerClient - 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)
DomainControllerisHostRegistered in interface DomainControllerid - the name of the host controllertrue if there is such a host controller registered, false otherwisepublic void unregisterRemoteHost(String id)
DomainControllerunregisterRemoteHost in interface DomainControllerid - the name of the previously
registered Host Controllerpublic void registerRunningServer(ProxyController serverControllerClient)
DomainControllerregisterRunningServer in interface DomainControllerserverControllerClient - client the controller can use to communicate with the server.public void unregisterRunningServer(String serverName)
DomainControllerunregisterRunningServer in interface DomainControllerserverName - the name of the serverpublic org.jboss.dmr.ModelNode getProfileOperations(String profileName)
DomainControllergetProfileOperations in interface DomainControllerprofileName - the name of the profilepublic HostFileRepository getLocalFileRepository()
DomainControllergetLocalFileRepository in interface DomainControllerpublic HostFileRepository getRemoteFileRepository()
DomainControllergetRemoteFileRepository in interface DomainControllerpublic 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 AbstractControllerServiceorg.jboss.msc.service.StartExceptionprotected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration)
initModel in class AbstractControllerServiceprotected void boot(BootContext context) throws ConfigurationPersistenceException
AbstractControllerServiceboot in class AbstractControllerServicecontext - 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 AbstractControllerServicepublic void stopLocalHost()
DomainControllerstopLocalHost in interface DomainControllerpublic void stopLocalHost(int exitCode)
DomainControllerstopLocalHost in interface DomainControllerexitCode - the exit code passed to the ProcessControllerCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.