public interface StatisticsRegistry
Modifier and Type | Field and Description |
---|---|
static StatisticsRegistry |
DISABLED
A disabled statistics registry
|
Modifier and Type | Method and Description |
---|---|
StatisticsRegistry |
forAssignment(NodeAllocationState.AssignmentState assignment)
Returns a statistics registry, re-scoped for the given assignment
|
boolean |
isConnection()
Is the current registry scoped for connections? Returns
true if the stats that are registered will be for connections.
|
boolean |
isEnabled()
Returns whether statistics are enabled.
|
void |
register(RuntimeStatistic<?> statistic)
Registers the given statistics object.
|
<T extends StatisticSupplier> |
register(StatisticDefinition<T> definition,
T supplier)
Registers the given statistics object.
|
static final StatisticsRegistry DISABLED
boolean isEnabled()
boolean isConnection()
<T extends StatisticSupplier> void register(StatisticDefinition<T> definition, T supplier)
T
- the type of statistic supplierdefinition
- the statistic definitionsupplier
- the statistic supplier; must be a live statistics object.void register(RuntimeStatistic<?> statistic)
statistic
- the statistics object; must be a live statistics object.StatisticsRegistry forAssignment(NodeAllocationState.AssignmentState assignment)
assignment
- the assignmentCopyright © 2021 Actian Corporation. All rights reserved.