java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, NodeResourceMonitorpublic class NodeResourceMonitorImpl extends org.apache.hadoop.service.AbstractService implements NodeResourceMonitor
| Constructor | Description |
|---|---|
NodeResourceMonitorImpl(Context context) |
Initialize the node resource monitor.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.api.records.ResourceUtilization |
getUtilization() |
Get the resource utilization of the node.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
Initialize the service with the proper parameters.
|
protected void |
serviceStart() |
Start the thread that does the node resource utilization monitoring.
|
protected void |
serviceStop() |
Stop the thread that does the node resource utilization monitoring.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic NodeResourceMonitorImpl(Context context)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionpublic org.apache.hadoop.yarn.api.records.ResourceUtilization getUtilization()
getUtilization in interface NodeResourceMonitorCopyright © 2008–2025 Apache Software Foundation. All rights reserved.