Skip navigation links
A B C D E F G H I J L M N P R S T U V 

A

add(long) - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
Add a delta value to the metric.
adjustValue(long) - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
 
adjustValue(Number) - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
 
adjustValue(long) - Method in interface com.j256.simplemetrics.metric.ControlledMetric
Adjust the value by a long primitive value.
adjustValue(Number) - Method in interface com.j256.simplemetrics.metric.ControlledMetric
Adjust the metric with this value.
adjustValue(long) - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
 
adjustValue(Number) - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
 
adjustValue(Number, Number) - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio
Adjust the value of our numerator and denominator to set new values for it.

B

BaseControlledMetric<V,MV extends MetricValue<V,MV>> - Class in com.j256.simplemetrics.metric
Base metric class which defines some common fields and methods.
BaseControlledMetric(String, String, String, String, String) - Constructor for class com.j256.simplemetrics.metric.BaseControlledMetric
 

C

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
Managed ControlledMetric for metrics like page-count or database-accesses that you are adding to continually as opposed to a ControlledMetricValue.
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
 

D

DEFAULT_SEPARATING_STRING - Static variable in class com.j256.simplemetrics.persister.TextFileMetricsPersister
Default string that separates a metric from its value.
destroy() - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
Call when you want to shutdown the publisher thread.

E

equals(Object) - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
 

F

FileMetric - Class in com.j256.simplemetrics.utils
Metric read from a file on the file-system.
FileMetric() - Constructor for class com.j256.simplemetrics.utils.FileMetric
 
FileMetric(String, String, String, String, File, FileMetric.FileMetricKind, int, String, String) - Constructor for class com.j256.simplemetrics.utils.FileMetric
 
FileMetric.FileMetricKind - Enum in com.j256.simplemetrics.utils
Kind of metrics that we are processing here.
FileMetric.FileMetricOperation - Enum in com.j256.simplemetrics.utils
Adjustment operations that can be used to adjust the extracted value by using FileMetric.setAdjustmentOperation(FileMetricOperation).
FileMetricsPublisher - Class in com.j256.simplemetrics.utils
Exposes metrics that can be found from files on file-system.
FileMetricsPublisher() - Constructor for class com.j256.simplemetrics.utils.FileMetricsPublisher
 
FileMetricsPublisher(MetricsManager, List<FileMetric>) - Constructor for class com.j256.simplemetrics.utils.FileMetricsPublisher
Constructs our publisher and calls FileMetricsPublisher.initialize().

G

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
 

H

hashCode() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
 

I

increment() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
Add one to the metric.
initialize() - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
Should be called if the no-arg construct is being used and after the file metrics have been set.
initialize() - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
Should be called if the no-arg construct is being used and after the file metrics have been set.
initialize() - Method in class com.j256.simplemetrics.utils.FileMetric
Should be called after all of the setter methods are called, maybe my Spring init mechanism?
initialize() - Method in class com.j256.simplemetrics.utils.FileMetricsPublisher
Should be called if the no-arg construct is being used and after the various setters have been called.
initialize() - Method in class com.j256.simplemetrics.utils.SystemMetricsPublisher
Should be called after all of the setter methods have been completed.
isAppendSysTimeMillis() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
Are we appending the system time millis value to the name of the output file.
isBlank(CharSequence) - Static method in class com.j256.simplemetrics.utils.MiscUtils
Return true if the string is null, empty, or all whitespace, otherwise false.
isInitialized() - Method in class com.j256.simplemetrics.utils.FileMetric
If the metric has been initialized with the FileMetric.initialize() method.
isShowDescription() - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
Are we showing the description in the file on the previous line with a "# " prefix.

J

join() - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
Call when you want to join with the the publisher thread.

L

LoggingMetricsPersister - Class in com.j256.simplemetrics.persister
Publishes metrics to the java.util.Logger class using the Logger.info(String) method.
LoggingMetricsPersister() - Constructor for class com.j256.simplemetrics.persister.LoggingMetricsPersister
 

M

makeAdjusted(Long) - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
 
makeAdjusted(ControlledMetricRatio.NumeratorDenominator) - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
 
makeAdjusted(Double) - Method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
 
makeAdjusted(V) - Method in interface com.j256.simplemetrics.metric.MetricValue
Make a new entry adjusted by the value parameter.
makePersisted() - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum.AccumValue
 
makePersisted() - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio.RatioValue
 
makePersisted() - Method in class com.j256.simplemetrics.metric.ControlledMetricValue.ValueCount
 
makePersisted() - Method in interface com.j256.simplemetrics.metric.MetricValue
Make an entry that is suitable for persisting.
makeValueFromLong(long) - Method in interface com.j256.simplemetrics.metric.ControlledMetric
Make a value type from long input.
makeValueFromLong(long) - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
 
makeValueFromLong(long) - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio
 
makeValueFromLong(long) - Method in class com.j256.simplemetrics.metric.ControlledMetricValue
 
makeValueFromNumber(Number) - Method in interface com.j256.simplemetrics.metric.ControlledMetric
Make a value type from Number input.
makeValueFromNumber(Number) - Method in class com.j256.simplemetrics.metric.ControlledMetricAccum
 
makeValueFromNumber(Number) - Method in class com.j256.simplemetrics.metric.ControlledMetricRatio
 
makeValueFromNumber(Number) - Method in class com.j256.simplemetrics.metric.ControlledMetricValue
 
MetricDetailsPersister - Interface in com.j256.simplemetrics.persister
Class which publishes our metrics to disk, a cloud service, or to some other repository.
MetricsManager - Class in com.j256.simplemetrics.manager
Class which manages the various metrics that are in the system so they can be queried by operations.
MetricsManager() - Constructor for class com.j256.simplemetrics.manager.MetricsManager
 
MetricsPersisterJob - Class in com.j256.simplemetrics.persister
Metrics persister thread that can be used to call MetricsManager.persistValuesOnly() at a specific frequency.
MetricsPersisterJob() - Constructor for class com.j256.simplemetrics.persister.MetricsPersisterJob
 
MetricsPersisterJob(MetricsManager, long, long, boolean) - Constructor for class com.j256.simplemetrics.persister.MetricsPersisterJob
Create the MetricsPersisterThread and calls MetricsPersisterJob.initialize().
MetricsUpdater - Interface in com.j256.simplemetrics.manager
Implemented by those classes which need to update their states right before they are persisted.
metricToString(ControlledMetric<?, ?>) - Static method in class com.j256.simplemetrics.utils.MiscUtils
Return the name of the metric build by looking at the fields.
MetricValue<V,MV extends MetricValue<V,MV>> - Interface in com.j256.simplemetrics.metric
Metric values that wraps a raw metric value.
MetricValueDetails - Class in com.j256.simplemetrics.metric
Value detail information for the metric.
MetricValueDetails(MetricValue<?, ?>) - Constructor for class com.j256.simplemetrics.metric.MetricValueDetails
 
MetricValuesPersister - Interface in com.j256.simplemetrics.persister
Class which publishes our metrics to disk, a cloud service, or to some other repository.
MiscUtils - Class in com.j256.simplemetrics.utils
Set of common utility methods copied from the Net.
MiscUtils() - Constructor for class com.j256.simplemetrics.utils.MiscUtils
 

N

NumeratorDenominator(double, double) - Constructor for class com.j256.simplemetrics.metric.ControlledMetricRatio.NumeratorDenominator
 

P

persist() - Method in class com.j256.simplemetrics.manager.MetricsManager
Persists the configured metrics by calling to the registered updaters, extracting the value-details from the metrics, and then calling the registered value and details persisters.
persist(Map<ControlledMetric<?, ?>, MetricValueDetails>, long) - Method in class com.j256.simplemetrics.persister.CloudWatchMetricsPersister
 
persist(Map<ControlledMetric<?, ?>, Number>, long) - Method in class com.j256.simplemetrics.persister.LoggingMetricsPersister
 
persist(Map<ControlledMetric<?, ?>, MetricValueDetails>, long) - Method in interface com.j256.simplemetrics.persister.MetricDetailsPersister
Persists the metrics parameters to disk or some repository.
persist(Map<ControlledMetric<?, ?>, Number>, long) - Method in interface com.j256.simplemetrics.persister.MetricValuesPersister
Persists the metrics parameters to disk or some repository.
persist(Map<ControlledMetric<?, ?>, Number>, long) - Method in class com.j256.simplemetrics.persister.SystemOutMetricsPersister
 
persist(Map<ControlledMetric<?, ?>, Number>, long) - Method in class com.j256.simplemetrics.persister.TextFileMetricsPersister
Dump a log file with all of the metrics into a log file.
persistJmx() - Method in class com.j256.simplemetrics.manager.MetricsManager
 
persistValuesOnly() - Method in class com.j256.simplemetrics.manager.MetricsManager
Persists the configured metrics to the value persisters only by extracting the values from the metrics and then calling the registered persisters.

R

registerMetric(ControlledMetric<?, ?>) - Method in class com.j256.simplemetrics.manager.MetricsManager
Register a metric with the manager.
registerUpdater(MetricsUpdater) - Method in class com.j256.simplemetrics.manager.MetricsManager
Register a MetricsUpdater to be called right before persist writes the metrics.
run() - Method in class com.j256.simplemetrics.persister.MetricsPersisterJob
Run by the thread to persist the metrics.

S

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
If you need to adjust the extracted value, this sets the operation that will be applied with the FileMetric.setAdjustmentValue(double).
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
Constructs our publisher and calls SystemMetricsPublisher.initialize().
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
 

T

TextFileMetricsPersister - Class in com.j256.simplemetrics.persister
Publishes metrics to the log file on disk.
TextFileMetricsPersister() - Constructor for class com.j256.simplemetrics.persister.TextFileMetricsPersister
 
toString() - Method in class com.j256.simplemetrics.metric.BaseControlledMetric
 
toString() - Method in class com.j256.simplemetrics.metric.MetricValueDetails
 
toString() - Method in class com.j256.simplemetrics.utils.FileMetric
 

U

unregisterMetric(ControlledMetric<?, ?>) - Method in class com.j256.simplemetrics.manager.MetricsManager
Unregister a metric with the manager.
updateMetrics() - Method in class com.j256.simplemetrics.manager.MetricsManager
Update the various classes' metrics.
updateMetrics() - Method in interface com.j256.simplemetrics.manager.MetricsUpdater
Called by MetricsManager right before it is to persist the metrics.
updateMetrics() - Method in class com.j256.simplemetrics.utils.FileMetricsPublisher
 
updateMetrics() - Method in class com.j256.simplemetrics.utils.SystemMetricsPublisher
updateValue() - Method in class com.j256.simplemetrics.utils.FileMetric
Update the value in the metric.

V

valueOf(String) - Static method in enum com.j256.simplemetrics.metric.ControlledMetric.AggregationType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.j256.simplemetrics.utils.FileMetric.FileMetricKind
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.j256.simplemetrics.utils.FileMetric.FileMetricOperation
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.j256.simplemetrics.metric.ControlledMetric.AggregationType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.j256.simplemetrics.utils.FileMetric.FileMetricKind
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.j256.simplemetrics.utils.FileMetric.FileMetricOperation
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I J L M N P R S T U V 
Skip navigation links

This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.