Package org.jipijapa.management.spi
Interface Statistics
-
public interface StatisticsSPI for statistic plugins to implement.- Author:
- Scott Marlow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatisticsgetChild(String childName)get the specified children statisticsSet<String>getChildrenNames()get the names of the children statistic levels (if any)Collection<String>getDynamicChildrenNames(EntityManagerFactoryAccess entityManagerFactoryAccess, PathAddress pathAddress)Set<String>getNames()Get the statistics namesStringgetResourceBundleKeyPrefix()gets the key prefix for referencing descriptions of statistics/operationsStringgetResourceBundleName()for loading descriptions of statistics/operationsClassgetType(String name)Get the typeObjectgetValue(String name, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress)Get the value of the statisticsbooleanisAttribute(String name)return true if the specified name represents an attribute.booleanisOperation(String name)return true if the specified name represents an operation.booleanisWriteable(String name)return true if the specified name represents a writeable attributevoidsetValue(String name, Object newValue, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress)Set the value of the statistic (isWriteable must return true)
-
-
-
Method Detail
-
getDynamicChildrenNames
Collection<String> getDynamicChildrenNames(EntityManagerFactoryAccess entityManagerFactoryAccess, PathAddress pathAddress)
-
getType
Class getType(String name)
Get the type- Parameters:
name- of the statistic- Returns:
- The value
-
isOperation
boolean isOperation(String name)
return true if the specified name represents an operation.- Parameters:
name- of the statistic- Returns:
-
isAttribute
boolean isAttribute(String name)
return true if the specified name represents an attribute.- Parameters:
name- of the statistic- Returns:
-
isWriteable
boolean isWriteable(String name)
return true if the specified name represents a writeable attribute- Parameters:
name- of the statistics- Returns:
-
getResourceBundleName
String getResourceBundleName()
for loading descriptions of statistics/operations- Returns:
- name of resource bundle name
-
getResourceBundleKeyPrefix
String getResourceBundleKeyPrefix()
gets the key prefix for referencing descriptions of statistics/operations- Returns:
-
getValue
Object getValue(String name, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress)
Get the value of the statistics- Parameters:
name- The name of the statistics- Returns:
- The value
-
setValue
void setValue(String name, Object newValue, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress)
Set the value of the statistic (isWriteable must return true)- Parameters:
name-newValue-
-
getChildrenNames
Set<String> getChildrenNames()
get the names of the children statistic levels (if any)- Returns:
- set of names
-
getChild
Statistics getChild(String childName)
get the specified children statistics- Parameters:
childName- name of the statistics to return- Returns:
-
-