public class DelegatingImmutableManagementResourceRegistration extends Object implements ImmutableManagementResourceRegistration
ImmutableManagementResourceRegistration implementation that simply delegates to another
ImmutableManagementResourceRegistration (typically a mutable implementation of sub-interface
ManagementResourceRegistration).ACCESS_PERMISSION| Constructor and Description |
|---|
DelegatingImmutableManagementResourceRegistration(ImmutableManagementResourceRegistration delegate)
Creates a new ImmutableManagementResourceRegistration.
|
| 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
|
Set<Capability> |
getCapabilities()
Returns all capabilities defined for 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
|
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.
|
PathAddress |
getPathAddress()
Gets the address under which we are 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
#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.
|
public DelegatingImmutableManagementResourceRegistration(ImmutableManagementResourceRegistration delegate)
delegate - the delegate. Cannot be nullpublic PathAddress getPathAddress()
ImmutableManagementResourceRegistrationgetPathAddress in interface ImmutableManagementResourceRegistrationnullpublic boolean isRuntimeOnly()
ImmutableManagementResourceRegistrationisRuntimeOnly in interface ImmutableManagementResourceRegistrationtrue if the model node has no representation in the
persistent configuration model; false otherwisepublic boolean isRemote()
ImmutableManagementResourceRegistrationisRemote in interface ImmutableManagementResourceRegistrationtrue if this registration represents a remote resource; false otherwisepublic boolean isAlias()
ImmutableManagementResourceRegistrationisAlias in interface ImmutableManagementResourceRegistrationtrue if this registration represents an alias; false otherwisepublic OperationEntry getOperationEntry(PathAddress address, String operationName)
ImmutableManagementResourceRegistrationnull if none exists.getOperationEntry in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodeoperationName - the operation namenullpublic OperationStepHandler getOperationHandler(PathAddress address, String operationName)
ImmutableManagementResourceRegistrationnull if none exists.getOperationHandler in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodeoperationName - the operation namepublic DescriptionProvider getOperationDescription(PathAddress address, String operationName)
ImmutableManagementResourceRegistrationnull if none exists.getOperationDescription in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodeoperationName - the operation namepublic Set<OperationEntry.Flag> getOperationFlags(PathAddress address, String operationName)
ImmutableManagementResourceRegistrationnull if none exist.getOperationFlags in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodeoperationName - the operation namenullpublic Set<String> getAttributeNames(PathAddress address)
ImmutableManagementResourceRegistrationgetAttributeNames in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodepublic AttributeAccess getAttributeAccess(PathAddress address, String attributeName)
ImmutableManagementResourceRegistrationgetAttributeAccess in interface ImmutableManagementResourceRegistrationaddress - the address of the resourceattributeName - the name of the attributenull if the attribute or address is unknownpublic Set<String> getChildNames(PathAddress address)
ImmutableManagementResourceRegistrationgetChildNames in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodepublic Set<PathElement> getChildAddresses(PathAddress address)
ImmutableManagementResourceRegistrationgetChildAddresses in interface ImmutableManagementResourceRegistrationaddress - the address we want to find children forpublic DescriptionProvider getModelDescription(PathAddress address)
ImmutableManagementResourceRegistrationnull if none exists.getModelDescription in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodepublic Map<String,OperationEntry> getOperationDescriptions(PathAddress address, boolean inherited)
ImmutableManagementResourceRegistrationgetOperationDescriptions in interface ImmutableManagementResourceRegistrationaddress - the addressinherited - true to include inherited operationspublic Map<String,NotificationEntry> getNotificationDescriptions(PathAddress address, boolean inherited)
ImmutableManagementResourceRegistrationgetNotificationDescriptions in interface ImmutableManagementResourceRegistrationaddress - the addressinherited - true to include inherited notificationspublic ProxyController getProxyController(PathAddress address)
ImmutableManagementResourceRegistration[a=b,c=d,e=f] and there is a proxy registered under
[a=b,c=d] that proxy will be returned.getProxyController in interface ImmutableManagementResourceRegistrationaddress - the address to look for a proxy undernull if there is nonepublic Set<ProxyController> getProxyControllers(PathAddress address)
ImmutableManagementResourceRegistrationa=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.getProxyControllers in interface ImmutableManagementResourceRegistrationaddress - the address to start looking for proxies underpublic ImmutableManagementResourceRegistration getSubModel(PathAddress address)
ImmutableManagementResourceRegistrationgetSubModel in interface ImmutableManagementResourceRegistrationaddress - the address, relative to this nodenull if there is nonepublic List<AccessConstraintDefinition> getAccessConstraints()
getAccessConstraints in interface ImmutableManagementResourceRegistrationpublic AliasEntry getAliasEntry()
ImmutableManagementResourceRegistrationgetAliasEntry in interface ImmutableManagementResourceRegistrationnull otherwisepublic boolean isOrderedChildResource()
ImmutableManagementResourceRegistration#registerSubModel(ResourceDefinition), and false otherwiseisOrderedChildResource in interface ImmutableManagementResourceRegistrationpublic Set<String> getOrderedChildTypes()
ImmutableManagementResourceRegistrationgetOrderedChildTypes in interface ImmutableManagementResourceRegistrationpublic Set<Capability> getCapabilities()
ImmutableManagementResourceRegistrationgetCapabilities in interface ImmutableManagementResourceRegistrationCopyright © 2015 JBoss by Red Hat. All rights reserved.