@InterfaceAudience.Private public final class PrefetchExecutorNotifier extends Object implements PropagatingConfigurationObserver
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
static String |
PREFETCH_DELAY
Wait time in miliseconds before executing prefetch
|
Constructor and Description |
---|
PrefetchExecutorNotifier(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
deregisterChildren(ConfigurationManager manager)
Needs to be called to deregister the children from the manager.
|
int |
getPrefetchDelay() |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
This method would be called by the
ConfigurationManager object when the
Configuration object is reloaded from disk. |
void |
registerChildren(ConfigurationManager manager)
Needs to be called to register the children to the manager.
|
private static final org.slf4j.Logger LOG
public static final String PREFETCH_DELAY
private final org.apache.hadoop.conf.Configuration conf
public PrefetchExecutorNotifier(org.apache.hadoop.conf.Configuration conf)
public void onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
ConfigurationManager
object when the
Configuration
object is reloaded from disk.onConfigurationChange
in interface ConfigurationObserver
public void registerChildren(ConfigurationManager manager)
registerChildren
in interface PropagatingConfigurationObserver
manager
- : to register topublic void deregisterChildren(ConfigurationManager manager)
deregisterChildren
in interface PropagatingConfigurationObserver
manager
- : to deregister frompublic int getPrefetchDelay()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.