Class PrefetchExecutorNotifier
java.lang.Object
org.apache.hadoop.hbase.regionserver.PrefetchExecutorNotifier
- All Implemented Interfaces:
ConfigurationObserver,PropagatingConfigurationObserver
@Private
public final class PrefetchExecutorNotifier
extends Object
implements PropagatingConfigurationObserver
Class to submit requests for PrefetchExecutor depending on configuration change
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerstatic final StringWait time in miliseconds before executing prefetch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterChildren(ConfigurationManager manager) Needs to be called to deregister the children from the manager.intvoidonConfigurationChange(org.apache.hadoop.conf.Configuration newConf) This method would be called by theConfigurationManagerobject when theConfigurationobject is reloaded from disk.voidregisterChildren(ConfigurationManager manager) Needs to be called to register the children to the manager.
-
Field Details
-
LOG
-
PREFETCH_DELAY
Wait time in miliseconds before executing prefetch- See Also:
-
conf
-
-
Constructor Details
-
PrefetchExecutorNotifier
-
-
Method Details
-
onConfigurationChange
This method would be called by theConfigurationManagerobject when theConfigurationobject is reloaded from disk.- Specified by:
onConfigurationChangein interfaceConfigurationObserver
-
registerChildren
Needs to be called to register the children to the manager.- Specified by:
registerChildrenin interfacePropagatingConfigurationObserver- Parameters:
manager- : to register to
-
deregisterChildren
Needs to be called to deregister the children from the manager.- Specified by:
deregisterChildrenin interfacePropagatingConfigurationObserver- Parameters:
manager- : to deregister from
-
getPrefetchDelay
-