Package com.yahoo.statistics
Interface Statistics
-
- All Known Implementing Classes:
Statistics.NullImplementation
,StatisticsImpl
public interface Statistics
Interface used for registering statistics values and counters for logging.- Author:
- steinar, Tony Vaagenes
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Statistics.NullImplementation
-
Field Summary
Fields Modifier and Type Field Description static Statistics
nullImplementation
A null implementation which ignores all calls and returns the default config
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatisticsConfig
getConfig()
Get current config used.int
purge()
Purges all cancelled Handles from internal Map and Timer.void
register(Handle h)
Add a new handle to be scheduled for periodic logging.void
remove(java.lang.String name)
Remove a named handler from the set of working handlers.
-
-
-
Field Detail
-
nullImplementation
static final Statistics nullImplementation
A null implementation which ignores all calls and returns the default config
-
-
Method Detail
-
register
void register(Handle h)
Add a new handle to be scheduled for periodic logging. If a handle already exists with the same name, it will be cancelled and removed from the internal state of this object.
-
remove
void remove(java.lang.String name)
Remove a named handler from the set of working handlers.
-
getConfig
StatisticsConfig getConfig()
Get current config used. This may be a null reference, depending on how the instance was constructed.
-
purge
int purge()
Purges all cancelled Handles from internal Map and Timer.- Returns:
- return value from java.util.Timer.purge()
-
-