Class BackgroundVolumeScannerMetrics
java.lang.Object
org.apache.hadoop.ozone.container.common.volume.BackgroundVolumeScannerMetrics
@Private
@Metrics(about="Background Volume Scanner Metrics",
context="dfs")
public class BackgroundVolumeScannerMetrics
extends Object
This class captures the Background Storage Volume Scanner Metrics.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()longReturn the number of data volumes scanned since the last restart.longReturn the number of volume scanner iterations skipped because the minimum gap since the last iteration had not elapsed.longReturn the number of metadata volumes scanned since the last restart.longReturn the number of iterations the volume scanner has completed since the last restart.longReturn the number of volumes scanned in the last iteration.voidincNumDataVolumeScans(long count) voidvoidincNumMetadataVolumeScans(long count) voidvoidsetNumVolumesScannedInLastIteration(long value) void
-
Field Details
-
SOURCE_NAME
-
-
Constructor Details
-
BackgroundVolumeScannerMetrics
public BackgroundVolumeScannerMetrics()
-
-
Method Details
-
create
-
getNumVolumesScannedInLastIteration
public long getNumVolumesScannedInLastIteration()Return the number of volumes scanned in the last iteration. -
setNumVolumesScannedInLastIteration
public void setNumVolumesScannedInLastIteration(long value) -
getNumScanIterations
public long getNumScanIterations()Return the number of iterations the volume scanner has completed since the last restart. -
incNumScanIterations
public void incNumScanIterations() -
getNumDataVolumeScans
public long getNumDataVolumeScans()Return the number of data volumes scanned since the last restart. -
incNumDataVolumeScans
public void incNumDataVolumeScans(long count) -
getNumMetadataVolumeScans
public long getNumMetadataVolumeScans()Return the number of metadata volumes scanned since the last restart. -
incNumMetadataVolumeScans
public void incNumMetadataVolumeScans(long count) -
getNumIterationsSkipped
public long getNumIterationsSkipped()Return the number of volume scanner iterations skipped because the minimum gap since the last iteration had not elapsed. -
incNumIterationsSkipped
public void incNumIterationsSkipped() -
unregister
public void unregister()
-