public class HibernateStatisticsResource extends PlaceholderResource.PlaceholderResourceEntry
PlaceholderResource.PlaceholderResourceEntry
Resource.Factory, Resource.NoSuchResourceException, Resource.ResourceEntry, Resource.Tools
INSTANCE
Constructor and Description |
---|
HibernateStatisticsResource(String puName,
PersistenceUnitServiceRegistry persistenceUnitRegistry,
String providerLabel) |
Modifier and Type | Method and Description |
---|---|
HibernateStatisticsResource |
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, getPathElement
writeModel
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeModel
public HibernateStatisticsResource(String puName, PersistenceUnitServiceRegistry persistenceUnitRegistry, String providerLabel)
public org.jboss.dmr.ModelNode getModel()
Resource
getModel
in interface Resource
getModel
in class PlaceholderResource
public boolean isModelDefined()
Resource
isModelDefined
in interface Resource
isModelDefined
in class PlaceholderResource
true
if the local model is definedpublic boolean hasChild(PathElement element)
Resource
PathElement
has
a wildcard as value, it will determine whether this resource has any resources of a given type.hasChild
in interface Resource
hasChild
in class PlaceholderResource
element
- the path elementtrue
if there is child with the given addresspublic Resource getChild(PathElement element)
Resource
null
.getChild
in interface Resource
getChild
in class PlaceholderResource
element
- the path elementnull
if there is no such child resourcepublic Resource requireChild(PathElement element)
Resource
requireChild
in interface Resource
requireChild
in class PlaceholderResource
element
- the path elementResource.NoSuchResourceException
public boolean hasChildren(String childType)
Resource
hasChildren
in interface Resource
hasChildren
in class PlaceholderResource
childType
- the child typetrue
if there is any child of the given typepublic Resource navigate(PathAddress address)
Resource
navigate
in interface Resource
navigate
in class PlaceholderResource
address
- the addressResource.NoSuchResourceException
public Set<String> getChildTypes()
Resource
getChildTypes
in interface Resource
getChildTypes
in class PlaceholderResource
public Set<String> getChildrenNames(String childType)
Resource
getChildrenNames
in interface Resource
getChildrenNames
in class PlaceholderResource
childType
- the child typepublic Set<Resource.ResourceEntry> getChildren(String childType)
Resource
getChildren
in interface Resource
getChildren
in class PlaceholderResource
childType
- the child typepublic void registerChild(PathElement address, Resource resource)
Resource
registerChild
in interface Resource
registerChild
in class PlaceholderResource
address
- the addressresource
- the resourcepublic Resource removeChild(PathElement address)
Resource
removeChild
in interface Resource
removeChild
in class PlaceholderResource
address
- the addresspublic boolean isRuntime()
isRuntime
in interface Resource
isRuntime
in class PlaceholderResource
public boolean isProxy()
isProxy
in interface Resource
isProxy
in class PlaceholderResource
public HibernateStatisticsResource clone()
clone
in interface Resource
clone
in class PlaceholderResource.PlaceholderResourceEntry
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.