Interface CompactionPlanner.InitParameters
-
- Enclosing interface:
- CompactionPlanner
public static interface CompactionPlanner.InitParameters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutorManagergetExecutorManager()StringgetFullyQualifiedOption(String key)Map<String,String>getOptions()ServiceEnvironmentgetServiceEnvironment()
-
-
-
Method Detail
-
getServiceEnvironment
ServiceEnvironment getServiceEnvironment()
-
getOptions
Map<String,String> getOptions()
- Returns:
- The configured options. For example if the system properties
tserver.compaction.service.s1.planner.opts.p1=abcandtserver.compaction.service.s1.planner.opts.p9=123were set, then this map would containp1=abcandp9=123. In this examples1is the identifier for the compaction service. Each compaction service has a single planner.
-
getFullyQualifiedOption
String getFullyQualifiedOption(String key)
- Returns:
- For a given key from the map returned by
getOptions()determines the fully qualified tablet property for that key. For example if a planner was being initialized for compaction serviceCS9and this method were passedprop1then it would returntserver.compaction.service.CS9.planner.opts.prop1.
-
getExecutorManager
ExecutorManager getExecutorManager()
- Returns:
- an execution mananger that can be used to created thread pools within a compaction service.
-
-