org.jboss.jca.core.spi.statistics
Interface StatisticsPlugin

All Superinterfaces:
Serializable
All Known Subinterfaces:
PoolStatistics

public interface StatisticsPlugin
extends Serializable

Defines the contract for a statistics plugin.

Author:
Jesper Pedersen

Method Summary
 void clear()
          Clear all statistics
 String getDescription(String name)
          Get the description
 String getDescription(String name, Locale locale)
          Get the description
 Set<String> getNames()
          Get the statistics names
 Class getType(String name)
          Get the type
 Object getValue(String name)
          Get the value of the statistics
 boolean isEnabled()
          Is the statistics module enabled
 void setEnabled(boolean v)
          Set the statistics module enabled
 

Method Detail

getNames

Set<String> getNames()
Get the statistics names

Returns:
The value

getType

Class getType(String name)
Get the type

Parameters:
name - The name of the statistics
Returns:
The value

getDescription

String getDescription(String name)
Get the description

Parameters:
name - The name of the statistics
Returns:
The value

getDescription

String getDescription(String name,
                      Locale locale)
Get the description

Parameters:
name - The name of the statistics
locale - The locale
Returns:
The value

getValue

Object getValue(String name)
Get the value of the statistics

Parameters:
name - The name of the statistics
Returns:
The value

isEnabled

boolean isEnabled()
Is the statistics module enabled

Returns:
The value

setEnabled

void setEnabled(boolean v)
Set the statistics module enabled

Parameters:
v - The value

clear

void clear()
Clear all statistics



Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)