public abstract class HibernateAbstractStatistics extends Object implements Statistics
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
childrenNames |
protected Map<String,Operation> |
operations |
protected Map<Locale,ResourceBundle> |
rbs |
protected Map<String,Class> |
types |
protected Set<String> |
writeableNames |
Constructor and Description |
---|
HibernateAbstractStatistics() |
Modifier and Type | Method and Description |
---|---|
Statistics |
getChild(String childName)
get the specified children statistics
|
Set<String> |
getChildrenNames()
get the names of the children statistic levels (if any)
|
protected javax.persistence.EntityManagerFactory |
getEntityManagerFactory(Object[] args) |
protected EntityManagerFactoryAccess |
getEntityManagerFactoryAccess(Object[] args) |
Set<String> |
getNames()
Get the statistics names
|
protected PathAddress |
getPathAddress(Object[] args) |
String |
getResourceBundleKeyPrefix()
gets the key prefix for referencing descriptions of statistics/operations
|
String |
getResourceBundleName()
for loading descriptions of statistics/operations
|
protected String |
getStatisticName(Object[] args) |
Class |
getType(String name)
Get the type
|
Object |
getValue(String name,
EntityManagerFactoryAccess entityManagerFactoryAccess,
StatisticName statisticName,
PathAddress pathAddress)
Get the value of the statistics
|
boolean |
isAttribute(String name)
return true if the specified name represents an attribute.
|
boolean |
isOperation(String name)
return true if the specified name represents an operation.
|
boolean |
isWriteable(String name)
return true if the specified name represents a writeable attribute
|
void |
setValue(String name,
Object newValue,
EntityManagerFactoryAccess entityManagerFactoryAccess,
StatisticName statisticName,
PathAddress pathAddress)
Set the value of the statistic (isWriteable must return true)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDynamicChildrenNames
protected Map<Locale,ResourceBundle> rbs
public String getResourceBundleName()
Statistics
getResourceBundleName
in interface Statistics
public String getResourceBundleKeyPrefix()
Statistics
getResourceBundleKeyPrefix
in interface Statistics
protected javax.persistence.EntityManagerFactory getEntityManagerFactory(Object[] args)
public Set<String> getNames()
Statistics
getNames
in interface Statistics
public Class getType(String name)
Statistics
getType
in interface Statistics
name
- of the statisticpublic boolean isOperation(String name)
Statistics
isOperation
in interface Statistics
name
- of the statisticpublic boolean isAttribute(String name)
Statistics
isAttribute
in interface Statistics
name
- of the statisticpublic boolean isWriteable(String name)
Statistics
isWriteable
in interface Statistics
name
- of the statisticspublic Object getValue(String name, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress)
Statistics
getValue
in interface Statistics
name
- The name of the statisticspublic void setValue(String name, Object newValue, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress)
Statistics
setValue
in interface Statistics
protected EntityManagerFactoryAccess getEntityManagerFactoryAccess(Object[] args)
protected PathAddress getPathAddress(Object[] args)
public Set<String> getChildrenNames()
Statistics
getChildrenNames
in interface Statistics
public Statistics getChild(String childName)
Statistics
getChild
in interface Statistics
childName
- name of the statistics to returnCopyright © 2018 JBoss by Red Hat. All rights reserved.