Interface NodeResourceMonitor
- All Superinterfaces:
AutoCloseable,Closeable,org.apache.hadoop.service.Service
- All Known Implementing Classes:
NodeResourceMonitorImpl
public interface NodeResourceMonitor
extends org.apache.hadoop.service.Service
Interface for monitoring the resources of a node.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.ResourceUtilizationGet the resource utilization of the node.Methods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Method Details
-
getUtilization
org.apache.hadoop.yarn.api.records.ResourceUtilization getUtilization()Get the resource utilization of the node.- Returns:
- resource utilization of the node.
-