public class DataNodeInstrumentation extends Object implements MetricsSource
构造器和说明 |
---|
DataNodeInstrumentation(Configuration conf,
String storageId) |
限定符和类型 | 方法和说明 |
---|---|
void |
addBlockChecksumOp(long latency) |
void |
addBlockReport(long latency) |
void |
addCopyBlockOp(long latency) |
void |
addHeartBeat(long latency) |
void |
addReadBlockOp(long latency) |
void |
addReplaceBlockOp(long latency) |
void |
addWriteBlockOp(long latency) |
static DataNodeInstrumentation |
create(Configuration conf,
String storageID) |
static DataNodeInstrumentation |
create(Configuration conf,
String storageID,
MetricsSystem ms) |
void |
getMetrics(MetricsBuilder builder,
boolean all)
Get metrics from the source
|
void |
incrBlocksGetLocalPathInfo() |
void |
incrBlocksRead() |
void |
incrBlocksRemoved(int delta) |
void |
incrBlocksReplicated(int delta) |
void |
incrBlocksVerified() |
void |
incrBlocksWritten() |
void |
incrBlockVerificationFailures() |
void |
incrBytesRead(int delta) |
void |
incrBytesWritten(int delta) |
void |
incrReadsFromLocalClient() |
void |
incrReadsFromRemoteClient() |
void |
incrWritesFromLocalClient() |
void |
incrWritesFromRemoteClient() |
void |
resetAllMinMax() |
void |
shutdown() |
public DataNodeInstrumentation(Configuration conf, String storageId)
public void shutdown()
public void resetAllMinMax()
public void addHeartBeat(long latency)
public void addBlockReport(long latency)
public void incrBlocksReplicated(int delta)
public void incrBlocksWritten()
public void incrBlocksRemoved(int delta)
public void incrBytesWritten(int delta)
public void incrBlockVerificationFailures()
public void incrBlocksVerified()
public void incrBlocksGetLocalPathInfo()
public void addReadBlockOp(long latency)
public void incrReadsFromLocalClient()
public void incrReadsFromRemoteClient()
public void addWriteBlockOp(long latency)
public void incrWritesFromLocalClient()
public void incrWritesFromRemoteClient()
public void addReplaceBlockOp(long latency)
public void addCopyBlockOp(long latency)
public void addBlockChecksumOp(long latency)
public void incrBytesRead(int delta)
public void incrBlocksRead()
public void getMetrics(MetricsBuilder builder, boolean all)
MetricsSource
getMetrics
在接口中 MetricsSource
builder
- to contain the resulting metrics snapshotall
- if true, return all metrics even if unchanged.public static DataNodeInstrumentation create(Configuration conf, String storageID)
public static DataNodeInstrumentation create(Configuration conf, String storageID, MetricsSystem ms)
Copyright © 2009 The Apache Software Foundation