public class DynamicManagementStatisticsResource extends PlaceholderResource.PlaceholderResourceEntry
PlaceholderResource.PlaceholderResourceEntryResource.Factory, Resource.NoSuchResourceException, Resource.ResourceEntry, Resource.ToolsINSTANCE| Constructor and Description |
|---|
DynamicManagementStatisticsResource(org.jipijapa.management.spi.Statistics statistics,
String puName,
String identificationLabel,
EntityManagerFactoryLookup entityManagerFactoryLookup) |
| Modifier and Type | Method and Description |
|---|---|
DynamicManagementStatisticsResource |
clone() |
Resource |
getChild(PathElement element)
Get a single child of this resource with the given address.
|
Set<Resource.ResourceEntry> |
getChildren(String childType)
Get the children for a given type.
|
Set<String> |
getChildrenNames(String childType)
Get the children names for a given type.
|
Set<String> |
getChildTypes()
Get a list of registered child types for this resource.
|
org.jboss.dmr.ModelNode |
getModel()
Get the local model.
|
boolean |
hasChild(PathElement element)
Determine whether this resource has a child with the given address.
|
boolean |
hasChildren(String childType)
Determine whether this resource has any child of a given type.
|
boolean |
isModelDefined()
Determine whether the model of this resource is defined.
|
boolean |
isProxy() |
boolean |
isRuntime() |
Resource |
navigate(PathAddress address)
Navigate the resource tree.
|
void |
registerChild(PathElement address,
Resource resource)
Register a child resource.
|
Resource |
removeChild(PathElement address)
Remove a child resource.
|
Resource |
requireChild(PathElement element)
Get a single child of this resource with the given address.
|
getName, getPathElementwriteModelequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteModelpublic DynamicManagementStatisticsResource(org.jipijapa.management.spi.Statistics statistics,
String puName,
String identificationLabel,
EntityManagerFactoryLookup entityManagerFactoryLookup)
public org.jboss.dmr.ModelNode getModel()
ResourcegetModel in interface ResourcegetModel in class PlaceholderResourcepublic boolean isModelDefined()
ResourceisModelDefined in interface ResourceisModelDefined in class PlaceholderResourcetrue if the local model is definedpublic boolean hasChild(PathElement element)
ResourcePathElement has
a wildcard as value, it will determine whether this resource has any resources of a given type.hasChild in interface ResourcehasChild in class PlaceholderResourceelement - the path elementtrue if there is child with the given addresspublic Resource getChild(PathElement element)
Resourcenull.getChild in interface ResourcegetChild in class PlaceholderResourceelement - the path elementnull if there is no such child resourcepublic Resource requireChild(PathElement element)
ResourcerequireChild in interface ResourcerequireChild in class PlaceholderResourceelement - the path elementResource.NoSuchResourceExceptionpublic boolean hasChildren(String childType)
ResourcehasChildren in interface ResourcehasChildren in class PlaceholderResourcechildType - the child typetrue if there is any child of the given typepublic Resource navigate(PathAddress address)
Resourcenavigate in interface Resourcenavigate in class PlaceholderResourceaddress - the addressResource.NoSuchResourceExceptionpublic Set<String> getChildTypes()
ResourcegetChildTypes in interface ResourcegetChildTypes in class PlaceholderResourcepublic Set<String> getChildrenNames(String childType)
ResourcegetChildrenNames in interface ResourcegetChildrenNames in class PlaceholderResourcechildType - the child typepublic Set<Resource.ResourceEntry> getChildren(String childType)
ResourcegetChildren in interface ResourcegetChildren in class PlaceholderResourcechildType - the child typepublic void registerChild(PathElement address, Resource resource)
ResourceregisterChild in interface ResourceregisterChild in class PlaceholderResourceaddress - the addressresource - the resourcepublic Resource removeChild(PathElement address)
ResourceremoveChild in interface ResourceremoveChild in class PlaceholderResourceaddress - the addresspublic boolean isRuntime()
isRuntime in interface ResourceisRuntime in class PlaceholderResourcepublic boolean isProxy()
isProxy in interface ResourceisProxy in class PlaceholderResourcepublic DynamicManagementStatisticsResource clone()
clone in interface Resourceclone in class PlaceholderResource.PlaceholderResourceEntryCopyright © 2014 JBoss by Red Hat. All rights reserved.