Package com.yahoo.statistics
Class Statistics.NullImplementation
- java.lang.Object
-
- com.yahoo.statistics.Statistics.NullImplementation
-
- All Implemented Interfaces:
Statistics
- Enclosing interface:
- Statistics
public static class Statistics.NullImplementation extends Object implements Statistics
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.yahoo.statistics.Statistics
Statistics.NullImplementation
-
-
Field Summary
-
Fields inherited from interface com.yahoo.statistics.Statistics
nullImplementation
-
-
Constructor Summary
Constructors Constructor Description NullImplementation()
-
Method Summary
All Methods Instance Methods Concrete 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(String name)
Remove a named handler from the set of working handlers.
-
-
-
Method Detail
-
register
public void register(Handle h)
Description copied from interface:Statistics
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.- Specified by:
register
in interfaceStatistics
-
remove
public void remove(String name)
Description copied from interface:Statistics
Remove a named handler from the set of working handlers.- Specified by:
remove
in interfaceStatistics
-
getConfig
public StatisticsConfig getConfig()
Description copied from interface:Statistics
Get current config used. This may be a null reference, depending on how the instance was constructed.- Specified by:
getConfig
in interfaceStatistics
-
purge
public int purge()
Description copied from interface:Statistics
Purges all cancelled Handles from internal Map and Timer.- Specified by:
purge
in interfaceStatistics
- Returns:
- return value from java.util.Timer.purge()
-
-