public class ConfigurationNodeAttributesProvider extends NodeAttributesProvider
DISABLE_NODE_DESCRIPTORS_PROVIDER_FETCH_TIMER, readLock, timerTask, writeLock
Constructor and Description |
---|
ConfigurationNodeAttributesProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp()
method for subclasses to cleanup.
|
TimerTask |
createTimerTask()
Creates a timer task which be scheduled periodically by the provider,
and the task is responsible to update node descriptors to the provider.
|
Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
parseAttributes(String config) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
getDescriptors, getIntervalTime, getScheduler, serviceStart, serviceStop, setDescriptors, setIntervalTime, verifyConfiguredScript
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class AbstractNodeDescriptorsProvider<org.apache.hadoop.yarn.api.records.NodeAttribute>
Exception
public Set<org.apache.hadoop.yarn.api.records.NodeAttribute> parseAttributes(String config) throws IOException
IOException
protected void cleanUp() throws Exception
AbstractNodeDescriptorsProvider
cleanUp
in class AbstractNodeDescriptorsProvider<org.apache.hadoop.yarn.api.records.NodeAttribute>
Exception
public TimerTask createTimerTask()
AbstractNodeDescriptorsProvider
createTimerTask
in class AbstractNodeDescriptorsProvider<org.apache.hadoop.yarn.api.records.NodeAttribute>
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.