public class NameNodeInstrumentation extends Object implements MetricsSource
限定符和类型 | 方法和说明 |
---|---|
void |
addBlockReport(long latency) |
void |
addSync(long elapsed) |
void |
addTransaction(long latency) |
static NameNodeInstrumentation |
create(Configuration conf) |
static NameNodeInstrumentation |
create(Configuration conf,
MetricsSystem ms)
Create a v2 metrics instrumentation
|
void |
getMetrics(MetricsBuilder builder,
boolean all)
Get metrics from the source
|
void |
incrFilesDeleted(int delta) |
void |
incrNumAddBlockOps() |
void |
incrNumCreateFileOps() |
void |
incrNumDeleteFileOps() |
void |
incrNumFileInfoOps() |
void |
incrNumFilesAppended() |
void |
incrNumFilesCreated() |
void |
incrNumFilesInGetListingOps(int delta) |
void |
incrNumFilesRenamed() |
void |
incrNumGetBlockLocations() |
void |
incrNumGetListingOps() |
void |
incrTransactionsBatchedInSync() |
void |
setFsImageLoadTime(long elapsed) |
void |
setSafeModeTime(long elapsed) |
void |
shutdown() |
public static NameNodeInstrumentation create(Configuration conf)
public static NameNodeInstrumentation create(Configuration conf, MetricsSystem ms)
conf
- the configuration objectms
- the metrics system instancepublic void shutdown()
public final void incrNumGetBlockLocations()
public final void incrNumFilesCreated()
public final void incrNumCreateFileOps()
public final void incrNumFilesAppended()
public final void incrNumAddBlockOps()
public final void incrNumFilesRenamed()
public void incrFilesDeleted(int delta)
public final void incrNumDeleteFileOps()
public final void incrNumGetListingOps()
public final void incrNumFilesInGetListingOps(int delta)
public final void incrNumFileInfoOps()
public final void addTransaction(long latency)
public final void incrTransactionsBatchedInSync()
public final void addSync(long elapsed)
public final void setFsImageLoadTime(long elapsed)
public final void addBlockReport(long latency)
public final void setSafeModeTime(long elapsed)
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.Copyright © 2009 The Apache Software Foundation