| org.cougaar.core.service.PersistenceMetricsService
All known Subclasses: org.cougaar.core.persist.PersistenceMetricsServiceImpl, org.cougaar.core.persist.PersistenceMetricImpl,
PersistenceMetricsService | public interface PersistenceMetricsService (Code) | | This service provides metrics for recent persistence activity,
such as the most recent snapshot size in bytes.
|
Inner Class :interface Metric | |
Method Summary | |
Metric[] | getAll(int which) Get all retained metrics. | Metric | getAverage(int which) | int | getCount(int which) Get the count of all persistence snapshots taken (the denominator
of the average). |
ALL | final static int ALL(Code) | | Designates that averaging should include all
snapshots
|
DELTA | final static int DELTA(Code) | | Designates that averaging should include only delta
snapshots
|
FULL | final static int FULL(Code) | | Designates that averaging should include only full
snapshots
|
MAX_METRICS | final static int MAX_METRICS(Code) | | |
getAll | Metric[] getAll(int which)(Code) | | Get all retained metrics. The maximum number retained is
currently a constant MAX_METRICS
Parameters: which - one of the constants FULL, DELTA, ALL designatingwhich kind of snapshots should be included. |
getAverage | Metric getAverage(int which)(Code) | | Get the average of all metrics ever generated including the ones
that have been dropped due to exceeding MAX_METRICS
Parameters: which - one of the constants FULL, DELTA, ALL designatingwhich kind of snapshots should be averaged. |
getCount | int getCount(int which)(Code) | | Get the count of all persistence snapshots taken (the denominator
of the average).
the count of all persistence snapshots taken. Parameters: which - one of the constants FULL, DELTA, ALL designatingwhich kind of snapshots should be counted. |
|
|