Package | Description |
---|---|
com.j256.simplemetrics.manager |
Classes which manage all of the metrics and control their updating and persisting.
|
com.j256.simplemetrics.metric |
Metrics classes which do the value storage and updating.
|
com.j256.simplemetrics.persister |
Classes which handle the persisting of the metrics.
|
com.j256.simplemetrics.utils |
Utility classes including ones that publish metrics from the JVM and the file-system.
|
Modifier and Type | Method and Description |
---|---|
Collection<ControlledMetric<?,?>> |
MetricsManager.getMetrics() |
Map<ControlledMetric<?,?>,MetricValueDetails> |
MetricsManager.getMetricValueDetailsMap()
Return a map of the controlled metrics and their current associated values.
|
Map<ControlledMetric<?,?>,Number> |
MetricsManager.getMetricValuesMap()
Return a map of the controlled metrics and their current associated values.
|
Modifier and Type | Method and Description |
---|---|
void |
MetricsManager.registerMetric(ControlledMetric<?,?> metric)
Register a metric with the manager.
|
void |
MetricsManager.unregisterMetric(ControlledMetric<?,?> metric)
Unregister a metric with the manager.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseControlledMetric<V,MV extends MetricValue<V,MV>>
Base metric class which defines some common fields and methods.
|
class |
ControlledMetricAccum
Managed
ControlledMetric for metrics like page-count or database-accesses that you are adding to continually
as opposed to a ControlledMetricValue . |
class |
ControlledMetricRatio
A metric which tracks the relationship between two values.
|
class |
ControlledMetricTimer
Convenience to allow tracking of the elapsed time of events as a metric.
|
class |
ControlledMetricValue
Managed
ControlledMetric for metrics like number of threads running or the JVM memory usage. |
Modifier and Type | Method and Description |
---|---|
void |
MetricDetailsPersister.persist(Map<ControlledMetric<?,?>,MetricValueDetails> metricValueDetails,
long timeCollectedMillis)
Persists the metrics parameters to disk or some repository.
|
void |
CloudWatchMetricsPersister.persist(Map<ControlledMetric<?,?>,MetricValueDetails> metricValues,
long timeMillis) |
void |
TextFileMetricsPersister.persist(Map<ControlledMetric<?,?>,Number> metricValues,
long timeMillis)
Dump a log file with all of the metrics into a log file.
|
void |
SystemOutMetricsPersister.persist(Map<ControlledMetric<?,?>,Number> metricValues,
long timeCollectedMillis) |
void |
MetricValuesPersister.persist(Map<ControlledMetric<?,?>,Number> metricValues,
long timeCollectedMillis)
Persists the metrics parameters to disk or some repository.
|
void |
LoggingMetricsPersister.persist(Map<ControlledMetric<?,?>,Number> metricValues,
long timeMillis) |
Modifier and Type | Method and Description |
---|---|
ControlledMetric<?,?> |
FileMetric.getMetric()
Get the associated metric whole value is set from the file.
|
Modifier and Type | Method and Description |
---|---|
static String |
MiscUtils.metricToString(ControlledMetric<?,?> metric)
Return the name of the metric build by looking at the fields.
|
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.