Class ExternalSPSBeanMetrics
java.lang.Object
org.apache.hadoop.hdfs.server.sps.metrics.ExternalSPSBeanMetrics
- All Implemented Interfaces:
ExternalSPSMXBean
Expose the ExternalSPS metrics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Unregister the JMX interfaces.intGets the count of attempted items.intGets the count of movement finished blocks.intGets the queue size of StorageMovementNeeded.voidvoidvoid
-
Constructor Details
-
ExternalSPSBeanMetrics
-
-
Method Details
-
close
public void close()Unregister the JMX interfaces. -
getProcessingQueueSize
public int getProcessingQueueSize()Description copied from interface:ExternalSPSMXBeanGets the queue size of StorageMovementNeeded.- Specified by:
getProcessingQueueSizein interfaceExternalSPSMXBean- Returns:
- the queue size of StorageMovementNeeded.
-
updateProcessingQueueSize
@VisibleForTesting public void updateProcessingQueueSize() -
getMovementFinishedBlocksCount
public int getMovementFinishedBlocksCount()Description copied from interface:ExternalSPSMXBeanGets the count of movement finished blocks.- Specified by:
getMovementFinishedBlocksCountin interfaceExternalSPSMXBean- Returns:
- the count of movement finished blocks.
-
updateMovementFinishedBlocksCount
@VisibleForTesting public void updateMovementFinishedBlocksCount() -
getAttemptedItemsCount
public int getAttemptedItemsCount()Description copied from interface:ExternalSPSMXBeanGets the count of attempted items.- Specified by:
getAttemptedItemsCountin interfaceExternalSPSMXBean- Returns:
- the count of attempted items.
-
updateAttemptedItemsCount
@VisibleForTesting public void updateAttemptedItemsCount()
-