Interface NameNodeStatusMXBean
- All Known Implementing Classes:
BackupNode,NameNode
@Private
@Stable
public interface NameNodeStatusMXBean
This is the JMX management interface for NameNode status information.
End users shouldn't be implementing these interfaces, and instead
access this information through the JMX APIs. *
-
Method Summary
Modifier and TypeMethodDescriptionlongGets number of bytes in blocks with future generation stamps.Gets the host and port colon separated.longGets the most recent HA transition time in milliseconds from the epoch.Gets the NameNode role.Gets the topN slow disks in the cluster, if the feature is enabled.Retrieves information about slow DataNodes, if the feature is enabled.getState()Gets the NameNode state.booleanGets if security is enabled.
-
Method Details
-
getNNRole
String getNNRole()Gets the NameNode role.- Returns:
- the NameNode role.
-
getState
String getState()Gets the NameNode state.- Returns:
- the NameNode state.
-
getHostAndPort
String getHostAndPort()Gets the host and port colon separated.- Returns:
- host and port colon separated.
-
isSecurityEnabled
boolean isSecurityEnabled()Gets if security is enabled.- Returns:
- true, if security is enabled.
-
getLastHATransitionTime
long getLastHATransitionTime()Gets the most recent HA transition time in milliseconds from the epoch.- Returns:
- the most recent HA transition time in milliseconds from the epoch.
-
getBytesWithFutureGenerationStamps
long getBytesWithFutureGenerationStamps()Gets number of bytes in blocks with future generation stamps.- Returns:
- number of bytes that can be deleted if exited from safe mode.
-
getSlowPeersReport
String getSlowPeersReport()Retrieves information about slow DataNodes, if the feature is enabled. The report is in a JSON format. -
getSlowDisksReport
String getSlowDisksReport()Gets the topN slow disks in the cluster, if the feature is enabled.- Returns:
- JSON string of list of diskIDs and latencies
-