public class NodeResourceMonitorImpl extends org.apache.hadoop.service.AbstractService implements NodeResourceMonitor
Constructor and Description |
---|
NodeResourceMonitorImpl(Context context)
Initialize the node resource monitor.
|
Modifier and Type | Method and 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, waitForServiceToStop
public NodeResourceMonitorImpl(Context context)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
public org.apache.hadoop.yarn.api.records.ResourceUtilization getUtilization()
getUtilization
in interface NodeResourceMonitor
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.