Class CompactionPlannerInitParams
- java.lang.Object
-
- org.apache.accumulo.core.util.compaction.CompactionPlannerInitParams
-
- All Implemented Interfaces:
CompactionPlanner.InitParameters
public class CompactionPlannerInitParams extends Object implements CompactionPlanner.InitParameters
-
-
Constructor Summary
Constructors Constructor Description CompactionPlannerInitParams(CompactionServiceId serviceId, Map<String,String> plannerOpts, ServiceEnvironment senv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorManager
getExecutorManager()
String
getFullyQualifiedOption(String key)
Map<String,String>
getOptions()
Map<CompactionExecutorId,Integer>
getRequestedExecutors()
Set<CompactionExecutorId>
getRequestedExternalExecutors()
ServiceEnvironment
getServiceEnvironment()
-
-
-
Constructor Detail
-
CompactionPlannerInitParams
public CompactionPlannerInitParams(CompactionServiceId serviceId, Map<String,String> plannerOpts, ServiceEnvironment senv)
-
-
Method Detail
-
getServiceEnvironment
public ServiceEnvironment getServiceEnvironment()
- Specified by:
getServiceEnvironment
in interfaceCompactionPlanner.InitParameters
-
getOptions
public Map<String,String> getOptions()
- Specified by:
getOptions
in interfaceCompactionPlanner.InitParameters
- Returns:
- The configured options. For example if the system properties
tserver.compaction.major.service.s1.planner.opts.p1=abc
andtserver.compaction.major.service.s1.planner.opts.p9=123
were set, then this map would containp1=abc
andp9=123
. In this examples1
is the identifier for the compaction service. Each compaction service has a single planner.
-
getFullyQualifiedOption
public String getFullyQualifiedOption(String key)
- Specified by:
getFullyQualifiedOption
in interfaceCompactionPlanner.InitParameters
- Returns:
- For a given key from the map returned by
CompactionPlanner.InitParameters.getOptions()
determines the fully qualified tablet property for that key. For example if a planner was being initialized for compaction serviceCS9
and this method were passedprop1
then it would returntserver.compaction.major.service.CS9.planner.opts.prop1
.
-
getExecutorManager
public ExecutorManager getExecutorManager()
- Specified by:
getExecutorManager
in interfaceCompactionPlanner.InitParameters
- Returns:
- an execution manager that can be used to created thread pools within a compaction service.
-
getRequestedExecutors
public Map<CompactionExecutorId,Integer> getRequestedExecutors()
-
getRequestedExternalExecutors
public Set<CompactionExecutorId> getRequestedExternalExecutors()
-
-