public final class MetricsWriter extends Object implements MetricsListener
| Constructor and Description |
|---|
MetricsWriter(String dir)
Initialize metrics writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onDisable(com.aerospike.client.cluster.Cluster cluster)
Write final cluster metrics snapshot to file and then close the file.
|
void |
onEnable(com.aerospike.client.cluster.Cluster cluster,
MetricsPolicy policy)
Open timestamped metrics file in append mode and write header indicating what metrics will
be stored.
|
void |
onNodeClose(Node node)
Write final node metrics snapshot on node that will be closed.
|
void |
onSnapshot(com.aerospike.client.cluster.Cluster cluster)
Write cluster metrics snapshot to file.
|
public MetricsWriter(String dir)
public void onEnable(com.aerospike.client.cluster.Cluster cluster,
MetricsPolicy policy)
onEnable in interface MetricsListenerpublic void onSnapshot(com.aerospike.client.cluster.Cluster cluster)
onSnapshot in interface MetricsListenerpublic void onNodeClose(Node node)
onNodeClose in interface MetricsListenerpublic void onDisable(com.aerospike.client.cluster.Cluster cluster)
onDisable in interface MetricsListenerCopyright © 2012–2024 Aerospike, Inc. All rights reserved.