public interface ProvidesCounters
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getCounterGroups()
Method getCounterGroups returns all the available counter group names.
|
java.util.Collection<java.lang.String> |
getCountersFor(java.lang.Class<? extends java.lang.Enum> group)
Method getCountersFor returns all the counter names for the counter Enum.
|
java.util.Collection<java.lang.String> |
getCountersFor(java.lang.String group)
Method getCountersFor returns all the counter names for the give group name.
|
long |
getCounterValue(java.lang.Enum counter)
Method getCounter returns the current value for the given counter Enum.
|
long |
getCounterValue(java.lang.String group,
java.lang.String counter)
Method getCounter returns the current value for the given group and counter.
|
long |
getLastSuccessfulCounterFetchTime()
Method getLastSuccessfulCounterFetchTime returns the time, in millis, the last moment counters
were successfully retrieved.
|
long getLastSuccessfulCounterFetchTime()
CascadingStats.getFinishedTime()
it is likely the
counter service became unavailable.java.util.Collection<java.lang.String> getCounterGroups()
java.util.Collection<java.lang.String> getCountersFor(java.lang.String group)
group
- java.util.Collection<java.lang.String> getCountersFor(java.lang.Class<? extends java.lang.Enum> group)
group
- long getCounterValue(java.lang.Enum counter)
counter
- of type Enumlong getCounterValue(java.lang.String group, java.lang.String counter)
group
- of type Stringcounter
- of type StringCopyright © 2007-2015 Xplenty, Inc. All Rights Reserved.