public interface RuntimeCapabilityRegistry extends ImmutableCapabilityRegistry
capabilities available in the runtime.| Modifier and Type | Interface and Description |
|---|---|
static class |
RuntimeCapabilityRegistry.RuntimeStatus |
| Modifier and Type | Method and Description |
|---|---|
void |
capabilityReloadRequired(PathAddress address,
ImmutableManagementResourceRegistration resourceRegistration)
Notification that any capabilities associated with the given address require reload in order to bring their
runtime services into sync with their persistent configuration.
|
void |
capabilityRestartRequired(PathAddress address,
ImmutableManagementResourceRegistration resourceRegistration)
Notification that any capabilities associated with the given address require restart in order to bring their
runtime services into sync with their persistent configuration.
|
Map<CapabilityId,RuntimeCapabilityRegistry.RuntimeStatus> |
getRuntimeStatus(PathAddress address,
ImmutableManagementResourceRegistration resourceRegistration)
Gets the status of any capabilities associated with the given resource address.
|
void |
registerAdditionalCapabilityRequirement(RuntimeRequirementRegistration requirement)
Registers an additional requirement a capability has beyond what it was aware of when
capability
was passed to registerCapability(RuntimeCapabilityRegistration). |
void |
registerCapability(RuntimeCapabilityRegistration capability)
Registers a capability with the system.
|
RuntimeCapabilityRegistration |
removeCapability(String capabilityName,
CapabilityScope scope,
PathAddress registrationPoint)
Remove a previously registered capability if all registration points for it have been removed.
|
void |
removeCapabilityRequirement(RuntimeRequirementRegistration requirement)
Remove a previously registered requirement for a capability.
|
getCapabilities, getCapabilityRuntimeAPI, getCapabilityServiceName, getPossibleCapabilities, getPossibleProviderPoints, hasCapabilityvoid registerCapability(RuntimeCapabilityRegistration capability)
requirements
associated with the capability will be recorded as requirements.capability - the capability. Cannot be nullvoid registerAdditionalCapabilityRequirement(RuntimeRequirementRegistration requirement)
capability
was passed to registerCapability(RuntimeCapabilityRegistration). Used for cases
where a capability optionally depends on another capability, and whether or not that requirement is needed is
not known when the capability is first registered.requirement - the requirementIllegalArgumentException - if no matching capability is currently
registered for either required or dependentvoid removeCapabilityRequirement(RuntimeRequirementRegistration requirement)
requirement - the requirement. Cannot be nullregisterAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)RuntimeCapabilityRegistration removeCapability(String capabilityName, CapabilityScope scope, PathAddress registrationPoint)
capabilityName - the name of the capability. Cannot be nullscope - the scope in which the capability is registered. Cannot be nullregistrationPoint - the specific registration point that is being removednull if no matching capability was registered or other
registration points for the capability still existIllegalStateException - if no capability with the given name is available in the given contextIllegalArgumentException - if the capability does not provide a runtime APIClassCastException - if the runtime API exposed by the capability cannot be cast to type {code T}Map<CapabilityId,RuntimeCapabilityRegistry.RuntimeStatus> getRuntimeStatus(PathAddress address, ImmutableManagementResourceRegistration resourceRegistration)
address - the address. Cannot be nullresourceRegistration - the registration for the resource at address. Cannot be nullnull but may return
an empty map if no capabilities are associated with the address.void capabilityReloadRequired(PathAddress address, ImmutableManagementResourceRegistration resourceRegistration)
address - the address. Cannot be nullresourceRegistration - the registration for the resource at address. Cannot be nullvoid capabilityRestartRequired(PathAddress address, ImmutableManagementResourceRegistration resourceRegistration)
address - the address. Cannot be nullresourceRegistration - the registration for the resource at address. Cannot be nullCopyright © 2016 JBoss by Red Hat. All rights reserved.