public final class ClusterCounters extends Object
ClusteredServiceContainer.Context.clusterId().| Modifier and Type | Method and Description |
|---|---|
static Counter |
allocate(Aeron aeron,
String name,
int typeId,
int clusterId)
Allocate a counter to represent the a component state within a cluster.
|
static int |
find(CountersReader counters,
int typeId,
int clusterId)
Find the counter id for a type of counter in a cluster.
|
public static Counter allocate(Aeron aeron, String name, int typeId, int clusterId)
aeron - to allocate the counter.name - of the counter for the label.typeId - for the counter.clusterId - to which the allocated counter belongs.Counter for the commit position.public static int find(CountersReader counters, int typeId, int clusterId)
counters - to search within.typeId - of the counter.clusterId - to which the allocated counter belongs.Aeron.NULL_VALUE if not found.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.