public class DomainModelControllerService extends AbstractControllerService implements DomainController, HostModelUtil.HostModelRegistrar
ModelController for a Host Controller process.| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
authorizer, BOOT_STACK_SIZE_PROPERTY, DEFAULT_BOOT_STACK_SIZE, processType| Modifier and Type | Method and Description |
|---|---|
protected void |
boot(BootContext context)
Boot the controller.
|
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 pathManagery) |
protected void |
initModel(Resource rootResource,
ManagementResourceRegistration rootRegistration) |
boolean |
isHostRegistered(String id)
Check if a Host Controller is already registered with this domain controller.
|
protected void |
performControllerInitialization(org.jboss.msc.service.ServiceTarget target,
Resource rootResource,
ManagementResourceRegistration rootRegistration) |
void |
pingRemoteHost(String id)
Asynchronously ping the slave host with the given
hostName to validate its connection. |
void |
registerHostModel(String hostName,
ManagementResourceRegistration root) |
void |
registerRemoteHost(String hostName,
ManagementChannelHandler handler,
Transformers transformers,
Long remoteConnectionId,
DomainControllerRuntimeIgnoreTransformationEntry runtimeIgnoreTransformation)
Registers a slave 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) |
protected void |
stopAsynchronous(org.jboss.msc.service.StopContext context)
Hook for subclasses to perform work during the asynchronous task started by
AbstractControllerService.stop(org.jboss.msc.service.StopContext). |
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)
Unregisters a previously registered Host Controller.
|
void |
unregisterRunningServer(String serverName)
Unregisters a running server from the domain model
|
boot, bootThreadDone, executeReadOnlyOperation, finishBoot, getAuditLogger, getExecutorServiceInjector, getValue, internalExecute, internalExecute, runPerformControllerInitialization, setConfigurationPersisterpublic RunningMode getCurrentRunningMode()
DomainControllergetCurrentRunningMode in interface DomainControllerpublic LocalHostControllerInfo getLocalHostInfo()
DomainControllergetLocalHostInfo in interface DomainControllerpublic void registerRemoteHost(String hostName, ManagementChannelHandler handler, Transformers transformers, Long remoteConnectionId, DomainControllerRuntimeIgnoreTransformationEntry runtimeIgnoreTransformation) throws SlaveRegistrationException
DomainControllerregisterRemoteHost in interface DomainControllerhostName - 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 idruntimeIgnoreTransformation - The runtime ignore transformation utility for the hostSlaveRegistrationException - 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, Long remoteConnectionId)
DomainControllerunregisterRemoteHost in interface DomainControllerid - 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 idpublic void pingRemoteHost(String id)
DomainControllerhostName to validate its connection.pingRemoteHost in interface DomainControllerid - the name of the slave hostpublic 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 loadedprotected void performControllerInitialization(org.jboss.msc.service.ServiceTarget target,
Resource rootResource,
ManagementResourceRegistration rootRegistration)
performControllerInitialization in class AbstractControllerServicepublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<ModelController>stop in class AbstractControllerServiceprotected void stopAsynchronous(org.jboss.msc.service.StopContext context)
AbstractControllerServiceAbstractControllerService.stop(org.jboss.msc.service.StopContext). This base method does nothing.
Subclasses must not invoke LifecycleContext.complete()
stopAsynchronous in class AbstractControllerServicecontext - the stop contextpublic void stopLocalHost()
DomainControllerstopLocalHost in interface DomainControllerpublic void stopLocalHost(int exitCode)
DomainControllerstopLocalHost in interface DomainControllerexitCode - the exit code passed to the ProcessControllerpublic void registerHostModel(String hostName, ManagementResourceRegistration root)
registerHostModel in interface HostModelUtil.HostModelRegistrarpublic void initializeMasterDomainRegistry(ManagementResourceRegistration root, ExtensibleConfigurationPersister configurationPersister, ContentRepository contentRepository, HostFileRepository fileRepository, ExtensionRegistry extensionRegistry, PathManagerService pathManager)
initializeMasterDomainRegistry in interface DomainControllerpublic void initializeSlaveDomainRegistry(ManagementResourceRegistration root, ExtensibleConfigurationPersister configurationPersister, ContentRepository contentRepository, HostFileRepository fileRepository, LocalHostControllerInfo hostControllerInfo, ExtensionRegistry extensionRegistry, IgnoredDomainResourceRegistry ignoredDomainResourceRegistry, PathManagerService pathManagery)
initializeSlaveDomainRegistry in interface DomainControllerpublic ExtensionRegistry getExtensionRegistry()
getExtensionRegistry in interface DomainControllerpublic ExpressionResolver getExpressionResolver()
getExpressionResolver in interface DomainControllerCopyright © 2014 JBoss by Red Hat. All rights reserved.