public class BasicDistributionSummary extends AbstractMonitor<java.lang.Long> implements CompositeMonitor<java.lang.Long>
config
Constructor and Description |
---|
BasicDistributionSummary(MonitorConfig config)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCount()
Get the total number of updates.
|
java.lang.Long |
getMax()
Get the max value since the last polling interval.
|
java.lang.Long |
getMin()
Get the min value since the last polling interval.
|
java.util.List<Monitor<?>> |
getMonitors()
Returns a list of sub-monitors for this composite.
|
java.lang.Long |
getTotalAmount()
Get the total amount for all updates.
|
java.lang.Long |
getValue(int pollerIndex)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
void |
record(long amount)
Updates the statistics kept by the summary with the specified amount.
|
java.lang.String |
toString() |
getConfig, getValue
public BasicDistributionSummary(MonitorConfig config)
public java.util.List<Monitor<?>> getMonitors()
getMonitors
in interface CompositeMonitor<java.lang.Long>
public void record(long amount)
public java.lang.Long getValue(int pollerIndex)
public java.lang.Long getTotalAmount()
public java.lang.Long getCount()
public java.lang.Long getMin()
public java.lang.Long getMax()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object