Package org.jmxtrans.agent
Class QueryResult
java.lang.Object
org.jmxtrans.agent.QueryResult
public class QueryResult
extends java.lang.Object
- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description QueryResult(java.lang.String name, java.lang.Object value, long epochInMillis)QueryResult(java.lang.String name, java.lang.String type, java.lang.Object value, long epochInMillis) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)longgetEpoch(java.util.concurrent.TimeUnit timeUnit)longgetEpochInMillis()java.lang.StringgetName()java.lang.StringgetType()java.lang.ObjectgetValue()inthashCode()booleanisValueGreaterThan(QueryResult o)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
QueryResult
public QueryResult(@Nonnull java.lang.String name, @Nullable java.lang.Object value, long epochInMillis)- Parameters:
name- plain name of the metric (variables (e.g.%my-jmx-attr%) must have been resolved).value- value of the collected metricepochInMillis- collect time in millis (seeSystem.currentTimeMillis())
-
QueryResult
public QueryResult(@Nonnull java.lang.String name, @Nullable java.lang.String type, @Nullable java.lang.Object value, long epochInMillis)- Parameters:
name- plain name of the metric (variables (e.g.%my-jmx-attr%) must have been resolved).type- type of the metric (e.g. "counter", "gauge", ...)value- value of the collected metricepochInMillis- collect time in millis (seeSystem.currentTimeMillis())
-
-
Method Details
-
isValueGreaterThan
-
getName
@Nonnull public java.lang.String getName() -
getType
@Nullable public java.lang.String getType() -
getEpochInMillis
public long getEpochInMillis() -
getEpoch
public long getEpoch(java.util.concurrent.TimeUnit timeUnit) -
getValue
@Nullable public java.lang.Object getValue() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-