Package com.yahoo.statistics
Class Statistics.NullImplementation
java.lang.Object
com.yahoo.statistics.Statistics.NullImplementation
- All Implemented Interfaces:
Statistics
- Enclosing interface:
- 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
-
Method Summary
Modifier and TypeMethodDescriptionGet current config used.int
purge()
Purges all cancelled Handles from internal Map and Timer.void
Add a new handle to be scheduled for periodic logging.void
Remove a named handler from the set of working handlers.
-
Constructor Details
-
NullImplementation
public NullImplementation()
-
-
Method Details
-
register
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
Description copied from interface:Statistics
Remove a named handler from the set of working handlers.- Specified by:
remove
in interfaceStatistics
-
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()
-