Package org.apache.hadoop.hbase.util
Class CoprocessorConfigurationUtil
java.lang.Object
org.apache.hadoop.hbase.util.CoprocessorConfigurationUtil
Helper class for coprocessor host when configuration changes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckConfigurationChange(CoprocessorHost<?, ?> coprocessorHost, org.apache.hadoop.conf.Configuration conf, String... configurationKey) Check configuration change by comparing current loaded coprocessors with configuration values.private static booleanhasCoprocessorsConfigured(org.apache.hadoop.conf.Configuration conf, String... configurationKey) Helper method to check if there are any coprocessors configured.
-
Constructor Details
-
CoprocessorConfigurationUtil
private CoprocessorConfigurationUtil()
-
-
Method Details
-
checkConfigurationChange
public static boolean checkConfigurationChange(CoprocessorHost<?, ?> coprocessorHost, org.apache.hadoop.conf.Configuration conf, String... configurationKey) Check configuration change by comparing current loaded coprocessors with configuration values. This method is useful when the configuration object has been updated but we need to determine if coprocessor configuration has actually changed compared to what's currently loaded.Note: This method only detects changes in the set of coprocessor class names. It does not detect changes to priority or path for coprocessors that are already loaded with the same class name. If you need to update the priority or path of an existing coprocessor, you must restart the region/regionserver/master.
- Parameters:
coprocessorHost- the coprocessor host to check current loaded coprocessors (can be null)conf- the configuration to checkconfigurationKey- the configuration keys to check- Returns:
- true if configuration has changed, false otherwise
-
hasCoprocessorsConfigured
private static boolean hasCoprocessorsConfigured(org.apache.hadoop.conf.Configuration conf, String... configurationKey) Helper method to check if there are any coprocessors configured.
-