Class PluginConfig
- java.lang.Object
-
- org.apache.accumulo.core.client.admin.PluginConfig
-
- Direct Known Subclasses:
CompactionStrategyConfig
public class PluginConfig extends Object
Encapsulates the configuration of an Accumulo server side plugin, which consist of a class name and options.- Since:
- 2.1.0
-
-
Constructor Summary
Constructors Constructor Description PluginConfig(String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getClassName()
Map<String,String>
getOptions()
int
hashCode()
PluginConfig
setOptions(Map<String,String> opts)
String
toString()
-
-
-
Constructor Detail
-
PluginConfig
public PluginConfig(String className)
- Parameters:
className
- The name of a class that implements org.apache.accumulo.tserver.compaction.CompactionStrategy. This class must be exist on tservers.
-
-
Method Detail
-
getClassName
public String getClassName()
- Returns:
- the class name passed to the constructor.
-
setOptions
public PluginConfig setOptions(Map<String,String> opts)
- Parameters:
opts
- The options that will be passed to the init() method of the plugin when its instantiated on a tserver. This method will copy the map. The default is an empty map.- Returns:
- this
-
getOptions
public Map<String,String> getOptions()
- Returns:
- The previously set options. Returns an unmodifiable map. The default is an empty map.
-
-