| Modifier and Type | Field and Description |
|---|---|
static ResourceFilter |
ALL_BUT_RUNTIME_AND_PROXIES_FILTER
|
| Modifier and Type | Method and Description |
|---|---|
static Resource |
navigate(Resource resource,
PathAddress address)
Navigate from a parent
resource to the descendant resource at the given relative address. |
static org.jboss.dmr.ModelNode |
readModel(Resource resource)
Recursively 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.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.
|
static org.jboss.dmr.ModelNode |
readModel(Resource resource,
int level)
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.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.
|
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 given
filter, and generates a DMR tree representing all of the non-ignored resources. |
public static final ResourceFilter ALL_BUT_RUNTIME_AND_PROXIES_FILTER
public static org.jboss.dmr.ModelNode readModel(Resource resource)
resource - the root resourcepublic static org.jboss.dmr.ModelNode readModel(Resource resource, int level)
resource - the modellevel - the number of levels to recurse, or -1 for no limitpublic static org.jboss.dmr.ModelNode readModel(Resource resource, ImmutableManagementResourceRegistration mrr)
resource - the root resourcemrr - the resource registration for resource, or nullpublic static org.jboss.dmr.ModelNode readModel(Resource resource, int level, ImmutableManagementResourceRegistration mrr)
resource - the modellevel - the number of levels to recurse, or -1 for no limitmrr - the resource registration for resource, or nullpublic static org.jboss.dmr.ModelNode readModel(Resource resource, int level, ResourceFilter filter)
filter, and generates a DMR tree representing all of the non-ignored resources.resource - the modellevel - the number of levels to recurse, or -1 for no limitfilter - a resource filterpublic static Resource navigate(Resource resource, PathAddress address)
resource to the descendant resource at the given relative address.
Resource.navigate(PathAddress) implementations can use this as a standard implementation.
resource - the resource the resource. Cannot be nulladdress - the address the address relative to resource's address. Cannot be nullnullResource.NoSuchResourceException - if there is no descendant resource at addressCopyright © 2020 JBoss by Red Hat. All rights reserved.