public interface ImmutableManagementResourceRegistration
ManagementResourceRegistration.| Modifier and Type | Field and Description |
|---|---|
static Permission |
ACCESS_PERMISSION
A
ControllerPermission needed to create a ImmutableManagementResourceRegistration or invoke one
of its methods. |
| Modifier and Type | Method and Description |
|---|---|
List<AccessConstraintDefinition> |
getAccessConstraints() |
AliasEntry |
getAliasEntry()
Gets the alias entry for this registration if it is an alias
|
AttributeAccess |
getAttributeAccess(PathAddress address,
String attributeName)
Gets the information on how to read from or write to the given attribute.
|
Set<String> |
getAttributeNames(PathAddress address)
Get the names of the attributes for a node
|
Map<String,AttributeAccess> |
getAttributes(PathAddress address)
Get the information about all attributes for a node.
|
Set<RuntimeCapability> |
getCapabilities()
Returns all capabilities provided by this resource.
|
Set<PathElement> |
getChildAddresses(PathAddress address)
Gets the set of direct child address elements under the node at the passed in PathAddress
|
Set<String> |
getChildNames(PathAddress address)
Get the names of the types of children for a node
|
Set<RuntimeCapability> |
getIncorporatingCapabilities()
Returns all capabilities provided by parents of this resource, to which this resource contributes.
|
default int |
getMaxOccurs()
Gets the maximum number of times a resource of the type described by this registration
can occur under its parent resource (or, for a root resource, the minimum number of times it can
occur at all.)
|
default int |
getMinOccurs()
Gets the minimum number of times a resource of the type described by this registration
can occur under its parent resource (or, for a root resource, the number of times it can
occur at all.)
|
DescriptionProvider |
getModelDescription(PathAddress address)
Get the model description at the given address, or
null if none exists. |
Map<String,NotificationEntry> |
getNotificationDescriptions(PathAddress address,
boolean inherited)
Get a map of descriptions of all notifications emitted by the resources at an address.
|
DescriptionProvider |
getOperationDescription(PathAddress address,
String operationName)
Get the operation description at the given address, or
null if none exists. |
Map<String,OperationEntry> |
getOperationDescriptions(PathAddress address,
boolean inherited)
Get a map of descriptions of all operations available at an address.
|
OperationEntry |
getOperationEntry(PathAddress address,
String operationName)
Get the entry representing an operation registered with the given name at the given address, or
null if none exists. |
Set<OperationEntry.Flag> |
getOperationFlags(PathAddress address,
String operationName)
Get the special characteristic flags for the operation at the given address, or
null if none exist. |
OperationStepHandler |
getOperationHandler(PathAddress address,
String operationName)
Get the operation handler at the given address, or
null if none exists. |
Set<String> |
getOrderedChildTypes()
Return the names of the child types registered to be ordered.
|
ImmutableManagementResourceRegistration |
getParent()
Gets the registration for this resource type's parent, if there is one.
|
PathAddress |
getPathAddress()
Gets the address under which we are registered.
|
ProcessType |
getProcessType()
Gets the type of process in which this management resource type is registered.
|
ProxyController |
getProxyController(PathAddress address)
If there is a proxy controller registered under any part of the registered address it will be returned.
|
Set<ProxyController> |
getProxyControllers(PathAddress address)
Finds all proxy controllers registered at the passed in address, or at lower levels.
|
ImmutableManagementResourceRegistration |
getSubModel(PathAddress address)
Get a sub model registration.
|
boolean |
isAlias()
Gets whether this resource registration is an alias to another resource.
|
boolean |
isOrderedChildResource()
Return @code true} if a child resource registration was registered using
ManagementResourceRegistration.registerSubModel(ResourceDefinition), and false otherwise |
boolean |
isRemote()
Gets whether operations against the resource represented by this registration will be proxied to
a remote process.
|
boolean |
isRuntimeOnly()
Gets whether this model node only exists in the runtime and has no representation in the
persistent configuration model.
|
static final Permission ACCESS_PERMISSION
ControllerPermission needed to create a ImmutableManagementResourceRegistration or invoke one
of its methods. The name of the permission is "canAccessImmutableManagementResourceRegistration."PathAddress getPathAddress()
nullProcessType getProcessType()
nullImmutableManagementResourceRegistration getParent()
null if getPathAddress() returns an address with a
size of 0default int getMaxOccurs()
default int getMinOccurs()
boolean isRuntimeOnly()
true if the model node has no representation in the
persistent configuration model; false otherwiseSecurityException - if the caller does not have ACCESS_PERMISSIONboolean isRemote()
true if this registration represents a remote resource; false otherwiseSecurityException - if the caller does not have ACCESS_PERMISSIONboolean isAlias()
true if this registration represents an alias; false otherwiseSecurityException - if the caller does not have ACCESS_PERMISSIONAliasEntry getAliasEntry()
null otherwiseIllegalStateException - if isAlias() returns falseSecurityException - if the caller does not have ACCESS_PERMISSIONOperationStepHandler getOperationHandler(PathAddress address, String operationName)
null if none exists.address - the address, relative to this nodeoperationName - the operation nameSecurityException - if the caller does not have ACCESS_PERMISSIONDescriptionProvider getOperationDescription(PathAddress address, String operationName)
null if none exists.address - the address, relative to this nodeoperationName - the operation nameSecurityException - if the caller does not have ACCESS_PERMISSIONSet<OperationEntry.Flag> getOperationFlags(PathAddress address, String operationName)
null if none exist.address - the address, relative to this nodeoperationName - the operation namenullSecurityException - if the caller does not have ACCESS_PERMISSIONOperationEntry getOperationEntry(PathAddress address, String operationName)
null if none exists.address - the address, relative to this nodeoperationName - the operation namenullSecurityException - if the caller does not have ACCESS_PERMISSIONSet<String> getAttributeNames(PathAddress address)
address - the address, relative to this nodeSecurityException - if the caller does not have ACCESS_PERMISSIONMap<String,AttributeAccess> getAttributes(PathAddress address)
address - the address, relative to this nodeSecurityException - if the caller does not have ACCESS_PERMISSIONAttributeAccess getAttributeAccess(PathAddress address, String attributeName)
address - the address of the resourceattributeName - the name of the attributenull if the attribute or address is unknownSecurityException - if the caller does not have ACCESS_PERMISSIONMap<String,NotificationEntry> getNotificationDescriptions(PathAddress address, boolean inherited)
address - the addressinherited - true to include inherited notificationsSecurityException - if the caller does not have ACCESS_PERMISSIONSet<String> getChildNames(PathAddress address)
address - the address, relative to this nodeSecurityException - if the caller does not have ACCESS_PERMISSIONSet<PathElement> getChildAddresses(PathAddress address)
address - the address we want to find children forSecurityException - if the caller does not have ACCESS_PERMISSIONDescriptionProvider getModelDescription(PathAddress address)
null if none exists.address - the address, relative to this nodeSecurityException - if the caller does not have ACCESS_PERMISSIONMap<String,OperationEntry> getOperationDescriptions(PathAddress address, boolean inherited)
address - the addressinherited - true to include inherited operationsSecurityException - if the caller does not have ACCESS_PERMISSIONProxyController getProxyController(PathAddress address)
[a=b,c=d,e=f] and there is a proxy registered under
[a=b,c=d] that proxy will be returned.address - the address to look for a proxy undernull if there is noneSecurityException - if the caller does not have ACCESS_PERMISSIONSet<ProxyController> getProxyControllers(PathAddress address)
a=b and there are proxies registered at
[a=b,c=d], [a=b,e=f] and [g-h], the proxies for
[a=b,c=d] and [a=b,e=f] will be returned.address - the address to start looking for proxies underSecurityException - if the caller does not have ACCESS_PERMISSIONImmutableManagementResourceRegistration getSubModel(PathAddress address)
address - the address, relative to this nodenull if there is noneSecurityException - if the caller does not have ACCESS_PERMISSIONList<AccessConstraintDefinition> getAccessConstraints()
boolean isOrderedChildResource()
ManagementResourceRegistration.registerSubModel(ResourceDefinition), and false otherwiseSet<String> getOrderedChildTypes()
Set<RuntimeCapability> getCapabilities()
getIncorporatingCapabilities()Set<RuntimeCapability> getIncorporatingCapabilities()
getCapabilities().
Often, this method will return null, which has a special meaning. A null value means
this resource contributes to any capabilities provided by resources higher in its branch of the resource tree,
with the search for such capabilities continuing through ancestor resources until:
host. Child resources do not contribute
to host root capabilities unless they specifically declare they do so
A non-null value indicates no search of parent resources for capabilities should be performed, and
only those capabilities included in the return set should be considered as incorporating this resource
(or none at all if the return set is empty.)
An instance of this interface that returns a non-empty set from getCapabilities()
must not return null from this method. If a resource itself provides a capability but
also contributes to a different capability provided by a parent, that relationship must be specifically noted
in the return value from this method.
Note that providing a capability that is in turn a requirement of a parent resource's capability is not
the kind of "contributing" to the parent resource's capability that is being considered here. The relationship
between a capability and its requirements is separately tracked by the RuntimeCapability itself. A
typical "contributing" resource would be one that represents a chunk of configuration directly used by the parent
resource's capability.
null if default resolution of capabilities to which this resource
contributes should be used; an empty set can be used to indicate this resource does not contribute
to capabilities provided by its parent. Will not return null if getCapabilities()
returns a non-empty set.getCapabilities()Copyright © 2017 JBoss by Red Hat. All rights reserved.