- capitalize(String) - Static method in class com.j256.simplemetrics.utils.MiscUtils
-
Capitalize the first character in the string if necessary.
- cleanMetricFilesOlderThanMillis(long) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Delete the old metrics files that have not been modified in a certain number of milliseconds.
- closeQuietly(Closeable) - Static method in class com.j256.simplemetrics.utils.MiscUtils
-
Close something quietly.
- closeQuietly(Socket) - Static method in class com.j256.simplemetrics.utils.MiscUtils
-
Close socket quietly.
- CloudWatchMetricsPersister - Class in com.j256.simplemetrics.persister
-
Class which persists our metrics to Amazon's AWS CloudWatch cloud service.
- CloudWatchMetricsPersister() - Constructor for class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
- CloudWatchMetricsPersister(AWSCredentials, String, boolean) - Constructor for class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
- CloudWatchMetricsPersister(AWSCredentialsProvider, String, boolean) - Constructor for class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
- com.j256.simplemetrics.manager - package com.j256.simplemetrics.manager
-
Classes which manage all of the metrics and control their updating and persisting.
- com.j256.simplemetrics.metric - package com.j256.simplemetrics.metric
-
Metrics classes which do the value storage and updating.
- com.j256.simplemetrics.persister - package com.j256.simplemetrics.persister
-
Classes which handle the persisting of the metrics.
- com.j256.simplemetrics.utils - package com.j256.simplemetrics.utils
-
Utility classes including ones that publish metrics from the JVM and the file-system.
- compareTo(BaseControlledMetric<V, MV>) - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- ControlledMetric<V,MV extends MetricValue<V,MV>> - Interface in com.j256.simplemetrics.metric
-
Metric which is managed by the system.
- ControlledMetric.AggregationType - Enum in com.j256.simplemetrics.metric
-
When we need to aggregate multiple values of this metric, this determines how we do so.
- ControlledMetricAccum - Class in com.j256.simplemetrics.metric
-
- ControlledMetricAccum(String, String, String, String, String) - Constructor for class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- ControlledMetricAccum.AccumValue - Class in com.j256.simplemetrics.metric
-
Wrapper around a long counter and a reset flag.
- ControlledMetricRatio - Class in com.j256.simplemetrics.metric
-
A metric which tracks the relationship between two values.
- ControlledMetricRatio(String, String, String, String, String) - Constructor for class com.j256.simplemetrics.metric.ControlledMetricRatio
-
- ControlledMetricRatio.NumeratorDenominator - Class in com.j256.simplemetrics.metric
-
Class which holds a numerator and denominator double.
- ControlledMetricRatio.RatioValue - Class in com.j256.simplemetrics.metric
-
Wrapper around a numerator and denominator.
- ControlledMetricTimer - Class in com.j256.simplemetrics.metric
-
Convenience to allow tracking of the elapsed time of events as a metric.
- ControlledMetricTimer(String, String, String, String) - Constructor for class com.j256.simplemetrics.metric.ControlledMetricTimer
-
- ControlledMetricValue - Class in com.j256.simplemetrics.metric
-
Managed
ControlledMetric
for metrics like number of threads running or the JVM memory usage.
- ControlledMetricValue(String, String, String, String, String) - Constructor for class com.j256.simplemetrics.metric.ControlledMetricValue
-
- ControlledMetricValue.ValueCount - Class in com.j256.simplemetrics.metric
-
Wrapper around a current value and count so we can calculate averages internally.
- createInitialValue() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Create the initial value for our metric.
- createInitialValue() - Static method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
-
- createInitialValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- createInitialValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio
-
- createInitialValue() - Static method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
-
- createInitialValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue
-
- createInitialValue() - Static method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
-
- getAggregationType() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Returns the type of aggregation used by this metric.
- getAggregationType() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- getAggregationType() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio
-
- getAggregationType() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue
-
- getAggregationTypeName() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getAggregationTypeName() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Return the aggregation type of the metric.
- getCleanupLogCount() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Number of times we have cleaned up old logs.
- getComponent() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getComponent() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Component name of the metric.
- getDescription() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getDescription() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Description of the component which is not persisted.
- getDumpLogCount() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Number of times the logs have been dumped to disk.
- getFailedUpdateCount() - Method in class com.j256.simplemetrics.utils.FileMetricsPublisher
-
Number of times we were unable to update a metric because of some i/o or parse problem.
- getJmxBeanName() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getJmxDomainName() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getJmxFolderNames() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getLastDumpTimeMillisString() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Get the last time we have dumped the metrics to disk.
- getLogFileNamePrefix() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Get the log file name prefix that we are writing.
- getMax() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
-
- getMax() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
-
- getMax() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
-
- getMax() - Method in interface com.j256.simplemetrics.metric.MetricValue
-
Get the maximum value of the metric since the last persist.
- getMax() - Method in class com.j256.simplemetrics.metric.MetricValueDetails
-
Get the maximum value of the metric since the last persist.
- getMetric() - Method in class com.j256.simplemetrics.utils.FileMetric
-
Get the associated metric whole value is set from the file.
- getMetrics() - Method in class com.j256.simplemetrics.manager.MetricsManager
-
- getMetricsValues() - Method in class com.j256.simplemetrics.utils.FileMetricsPublisher
-
Get the values for all of the metric managed by this class.
- getMetricValue(boolean) - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getMetricValueDetailsMap() - Method in class com.j256.simplemetrics.manager.MetricsManager
-
Return a map of the controlled metrics and their current associated values.
- getMetricValues() - Method in class com.j256.simplemetrics.manager.MetricsManager
-
- getMetricValuesMap() - Method in class com.j256.simplemetrics.manager.MetricsManager
-
Return a map of the controlled metrics and their current associated values.
- getMin() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
-
- getMin() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
-
- getMin() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
-
- getMin() - Method in interface com.j256.simplemetrics.metric.MetricValue
-
Get the minimum value of the metric since the last persist.
- getMin() - Method in class com.j256.simplemetrics.metric.MetricValueDetails
-
Get the minimum value of the metric since the last persist.
- getModule() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getModule() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Module name of the metric or null if none.
- getName() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getName() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Component name of the metric.
- getNumSamples() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
-
- getNumSamples() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
-
- getNumSamples() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
-
- getNumSamples() - Method in interface com.j256.simplemetrics.metric.MetricValue
-
Get the number of samples from the metric value.
- getNumSamples() - Method in class com.j256.simplemetrics.metric.MetricValueDetails
-
Get the number of samples from the metric value.
- getOutputDirectory() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Directory where the output files will be written.
- getPersistCount() - Method in class com.j256.simplemetrics.manager.MetricsManager
-
- getUnit() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
- getUnit() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Unit of the metric such as percentage, megabytes, or per-second.
- getValue() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
Return the number of the metric.
- getValue() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Returned the value of the metric as a number.
- getValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
-
- getValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- getValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
-
- getValue() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
-
- getValue() - Method in interface com.j256.simplemetrics.metric.MetricValue
-
Get the number value from this metric value.
- getValue() - Method in class com.j256.simplemetrics.metric.MetricValueDetails
-
Get the number from this metric value.
- getValueDetails() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
Return the value details of the metric.
- getValueDetails() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Return the value details of the metric.
- getValueDetails() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- getValueDetailsToPersist() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
Get the current value details for persisting purposes.
- getValueDetailsToPersist() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Return the value details of the metric suitable to be persisted.
- getValueDetailsToPersist() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- getValueToPersist() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
Get the current number for persisting purposes.
- getValueToPersist() - Method in interface com.j256.simplemetrics.metric.ControlledMetric
-
Return the value of the metric as a number suitable to be persisted.
- getValueToPersist() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
-
- setAddInstanceData(boolean) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
Set to false to not add instance id to help identify the metric.
- setAdjustmentOperation(FileMetric.FileMetricOperation) - Method in class com.j256.simplemetrics.utils.FileMetric
-
- setAdjustmentValue(long) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Set the adjustment value as a long integer.
- setAdjustmentValue(double) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Set the adjustment value as a floating point value.
- setAppendSysTimeMillis(boolean) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Set to true to append the system time millis value to the name of the output file.
- setApplicationName(String) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
Set our application name which will be used to identify the namespace for the metric.
- setAwsCredentials(AWSCredentials) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
Set the credentials to use when publishing to AWS.
- setAwsCredentialsProvider(AWSCredentialsProvider) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
Set the credentials provider.
- setCloudWatchClient(AmazonCloudWatch) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
Set the client to use to publish the metrics.
- setColumn(int) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The column from a split perspective (0 to N-1) or the matcher.group(column) if using the line-pattern regex.
- setDaemonThread(boolean) - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
-
Whether or not the thread is a daemon thread.
- setDecimalNumber(boolean) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Set to true to make this value be represented internally as a long decimal number.
- setDelayTimeMillis(long) - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
-
Number of millis to sleep when the thread starts before we start persisting.
- setDescription(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The description to be associated with the metric.
- setFileMetrics(FileMetric[]) - Method in class com.j256.simplemetrics.utils.FileMetricsPublisher
-
Sets the file metrics that we are publishing.
- setJmxServer(JmxServer) - Method in class com.j256.simplemetrics.manager.MetricsManager
-
Set the optional jmx-server that can be used to publish metrics to JMX.
- setKind(FileMetric.FileMetricKind) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The kind of the metric.
- setLineNumber(int) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Number of the line in the file to process.
- setLinePattern(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Set the regex pattern that should match the line.
- setLineSplit(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Regex string to use to divide the line up into fields so we can use the column to extract one of the fields.
- setLogFileNamePrefix(String) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Set the log file name prefix.
- setMetricComponent(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The component to be associated with the metric.
- setMetricDetailsPersisters(MetricDetailsPersister[]) - Method in class com.j256.simplemetrics.manager.MetricsManager
-
Set the persisters for the metric details.
- setMetricFile(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The file that we process to find the value.
- setMetricFiles(String[]) - Method in class com.j256.simplemetrics.utils.FileMetric
-
An array of files that that will be looked at.
- setMetricModule(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The module to be associated with the metric.
- setMetricName(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The name to be associated with the metric.
- setMetricsManager(MetricsManager) - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
-
- setMetricsManager(MetricsManager) - Method in class com.j256.simplemetrics.utils.FileMetricsPublisher
-
Metrics manager that we add our metrics to.
- setMetricsManager(MetricsManager) - Method in class com.j256.simplemetrics.utils.SystemMetricsPublisher
-
Required metrics manager that manages the metrics we create here.
- setMetricValuesPersisters(MetricValuesPersister[]) - Method in class com.j256.simplemetrics.manager.MetricsManager
-
Set the persisters for the metric values.
- setNameSpacePrefix(String) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
-
Sets the name-space prefix to use for metrics published from here.
- setOutputDirectory(File) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Set the directory where the output files will be written.
- setPeriodTimeMillis(long) - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
-
Number of millis to sleep between each persisting call.
- setPrefix(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Prefix string to look for in the file.
- setRequired(boolean) - Method in class com.j256.simplemetrics.utils.FileMetric
-
Set whether or not this metric is required, default is false.
- setSeparatingString(String) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Set the separating string between the metric name and value.
- setShowDescription(boolean) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
-
Set to true to show the description in the file on the previous line with a "# " prefix.
- setUnit(String) - Method in class com.j256.simplemetrics.utils.FileMetric
-
The unit to be associated with the metric.
- start() - Method in class com.j256.simplemetrics.metric.ControlledMetricTimer
-
Start the timer on a particular event.
- stop(long) - Method in class com.j256.simplemetrics.metric.ControlledMetricTimer
-
End the timer on a particular event.
- storeValue(V) - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
-
Stores the value into the metric.
- SystemMetricsPublisher - Class in com.j256.simplemetrics.utils
-
Publishes some important system metrics internal to the JVM.
- SystemMetricsPublisher() - Constructor for class com.j256.simplemetrics.utils.SystemMetricsPublisher
-
- SystemMetricsPublisher(MetricsManager) - Constructor for class com.j256.simplemetrics.utils.SystemMetricsPublisher
-
- SystemOutMetricsPersister - Class in com.j256.simplemetrics.persister
-
Very simple persister which dumps out metrics out to
System.out
.
- SystemOutMetricsPersister() - Constructor for class com.j256.simplemetrics.persister.SystemOutMetricsPersister
-