public class DomainModelControllerService extends AbstractControllerService implements DomainController, HostModelUtil.HostModelRegistrar, HostRegistrations
ModelController for a Host Controller process.AbstractControllerService.ControllerInstabilityListener, AbstractControllerService.ModelControllerServiceInitializationParams, AbstractControllerService.PartialModelIndicator| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
CLIENT_FACTORY_SERVICE_NAME |
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
authorizer, BOOT_STACK_SIZE_PROPERTY, CLIENT_FACTORY_CAPABILITY, DEFAULT_BOOT_STACK_SIZE, EXECUTOR_CAPABILITY, NOTIFICATION_REGISTRY_CAPABILITY, PATH_MANAGER_CAPABILITY, processType, securityIdentitySupplier| Modifier and Type | Method and Description |
|---|---|
void |
addHostEvent(String hostName,
HostConnectionInfo.Event event)
Add a host event.
|
protected void |
boot(BootContext context) |
protected OperationStepHandler |
createExtraValidationStepHandler() |
ImmutableCapabilityRegistry |
getCapabilityRegistry() |
RunningMode |
getCurrentRunningMode()
Gets the domain controller's current running mode.
|
ExpressionResolver |
getExpressionResolver() |
ExtensionRegistry |
getExtensionRegistry() |
HostConnectionInfo |
getHostInfo(String hostName)
Get the host registration info.
|
HostFileRepository |
getLocalFileRepository()
Gets the file repository backing this domain controller
|
LocalHostControllerInfo |
getLocalHostInfo()
Gets the local host controller info.
|
protected AbstractControllerService.ModelControllerServiceInitializationParams |
getModelControllerServiceInitializationParams() |
protected AbstractControllerService.PartialModelIndicator |
getPartialModelIndicator() |
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(ManagementModel managementModel,
Resource modelControllerResource) |
boolean |
isHostRegistered(String id)
Check if a Host Controller is already registered with this domain controller.
|
void |
pingRemoteHost(String id)
Asynchronously ping the slave host with the given
hostName to validate its connection. |
void |
pruneDisconnected()
Prune all info for disconnected hosts.
|
void |
pruneExpired()
Prune all expired host info.
|
void |
registerHostModel(String hostName,
ManagementResourceRegistration root) |
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 |
reportServerInstability(String serverName)
Report to the domain controller that a server has been reported as unstable.
|
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) |
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 cleanShutdown)
Unregisters a previously registered Host Controller.
|
void |
unregisterRunningServer(String serverName)
Unregisters a running server from the domain model
|
acquireReadLock, boot, boot, boot, boot, bootThreadDone, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, finishBoot, getAuditLogger, getBootErrorCollector, getContainerInstabilityInjector, getExecutorServiceInjector, getMutableRootResourceRegistrationProvider, getNotificationSupport, getStabilityMonitor, getValue, internalExecute, internalExecute, internalExecute, internalExecute, isExposingClientServicesAllowed, registerModelControllerServiceInitializationBootStep, releaseReadLock, setConfigurationPersisterpublic static final org.jboss.msc.service.ServiceName SERVICE_NAME
public static final org.jboss.msc.service.ServiceName CLIENT_FACTORY_SERVICE_NAME
public RunningMode getCurrentRunningMode()
DomainControllergetCurrentRunningMode in interface DomainControllerpublic LocalHostControllerInfo getLocalHostInfo()
DomainControllergetLocalHostInfo in interface DomainControllerpublic void registerRemoteHost(String hostName, ManagementChannelHandler handler, Transformers transformers, Long remoteConnectionId, boolean registerProxyController) 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 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 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, boolean cleanShutdown)
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 idcleanShutdown - flag indication whether the host was cleanly unregisteredpublic void addHostEvent(String hostName, HostConnectionInfo.Event event)
HostRegistrationsaddHostEvent in interface HostRegistrationshostName - the host idevent - the eventpublic void pruneExpired()
HostRegistrationspruneExpired in interface HostRegistrationspublic void pruneDisconnected()
HostRegistrationspruneDisconnected in interface HostRegistrationspublic HostConnectionInfo getHostInfo(String hostName)
HostRegistrationsgetHostInfo in interface HostRegistrationshostName - the host namepublic 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 void reportServerInstability(String serverName)
DomainControllerreportServerInstability 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.Servicestart in class AbstractControllerServiceorg.jboss.msc.service.StartExceptionprotected void initModel(ManagementModel managementModel, Resource modelControllerResource)
initModel in class AbstractControllerServiceprotected OperationStepHandler createExtraValidationStepHandler()
createExtraValidationStepHandler in class AbstractControllerServiceprotected void boot(BootContext context) throws ConfigurationPersistenceException
boot in class AbstractControllerServiceConfigurationPersistenceExceptionprotected final AbstractControllerService.PartialModelIndicator getPartialModelIndicator()
getPartialModelIndicator in class AbstractControllerServiceprotected AbstractControllerService.ModelControllerServiceInitializationParams getModelControllerServiceInitializationParams()
getModelControllerServiceInitializationParams in class AbstractControllerServicepublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicestop in class AbstractControllerServiceprotected void stopAsynchronous(org.jboss.msc.service.StopContext context)
stopAsynchronous in class AbstractControllerServicepublic 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 ImmutableCapabilityRegistry getCapabilityRegistry()
getCapabilityRegistry in interface DomainControllerpublic ExpressionResolver getExpressionResolver()
getExpressionResolver in interface DomainControllerCopyright © 2019 JBoss by Red Hat. All rights reserved.