Package org.jboss.as.controller.registry
Class Resource.Tools
java.lang.Object
org.jboss.as.controller.registry.Resource.Tools
- Enclosing interface:
- Resource
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Resourcenavigate(Resource resource, PathAddress address) Navigate from a parentresourceto the descendant resource at the given relativeaddress.static org.jboss.dmr.ModelNodeRecursively reads an entire resource tree, ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources.static org.jboss.dmr.ModelNodeReads a resource tree, recursing up to the given number of levels but ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources.static org.jboss.dmr.ModelNodereadModel(Resource resource, int level, ImmutableManagementResourceRegistration mrr) Reads a resource tree, recursing up to the given number of levels but ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources.static org.jboss.dmr.ModelNodereadModel(Resource resource, int level, ResourceFilter filter) Reads a resource tree, recursing up to the given number of levels but ignoring resources not accepted by the givenfilter, and generates a DMR tree representing all of the non-ignored resources.static org.jboss.dmr.ModelNodereadModel(Resource resource, ImmutableManagementResourceRegistration mrr) Recursively reads an entire resource tree, ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources.
-
Field Details
-
ALL_BUT_RUNTIME_AND_PROXIES_FILTER
-
-
Method Details
-
readModel
Recursively reads an entire resource tree, ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources.- Parameters:
resource- the root resource- Returns:
- the DMR tree
-
readModel
Reads a resource tree, recursing up to the given number of levels but ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources.- Parameters:
resource- the modellevel- the number of levels to recurse, or-1for no limit- Returns:
- the DMR tree
-
readModel
public static org.jboss.dmr.ModelNode readModel(Resource resource, ImmutableManagementResourceRegistration mrr) Recursively reads an entire resource tree, ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources. This variant can use a resource registration to help identify runtime-only and proxy resources more efficiently.- Parameters:
resource- the root resourcemrr- the resource registration forresource, ornull- Returns:
- the DMR tree
-
readModel
public static org.jboss.dmr.ModelNode readModel(Resource resource, int level, ImmutableManagementResourceRegistration mrr) Reads a resource tree, recursing up to the given number of levels but ignoring runtime-only and proxy resources, and generates a DMR tree representing all of the non-ignored resources. This variant can use a resource registration to help identify runtime-only and proxy resources more efficiently.- Parameters:
resource- the modellevel- the number of levels to recurse, or-1for no limitmrr- the resource registration forresource, ornull- Returns:
- the DMR tree
-
readModel
public static org.jboss.dmr.ModelNode readModel(Resource resource, int level, ResourceFilter filter) Reads a resource tree, recursing up to the given number of levels but ignoring resources not accepted by the givenfilter, and generates a DMR tree representing all of the non-ignored resources.- Parameters:
resource- the modellevel- the number of levels to recurse, or-1for no limitfilter- a resource filter- Returns:
- the model
-