Class ExecutePlanAction
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.TriggerActionBase
-
- org.apache.solr.cloud.autoscaling.ExecutePlanAction
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TriggerAction
public class ExecutePlanAction extends TriggerActionBase
This class is responsible for executing cluster operations read from theActionContext
's properties with the key name "operations".
-
-
Field Summary
Fields Modifier and Type Field Description static String
TASK_TIMEOUT_FAIL
static String
TASK_TIMEOUT_SECONDS
-
Fields inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
cloudManager, loader, properties, requiredProperties, validProperties
-
-
Constructor Summary
Constructors Constructor Description ExecutePlanAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties)
Called when action is created but before it's initialized and used.void
process(TriggerEvent event, ActionContext context)
-
Methods inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
close, getName, init
-
-
-
-
Field Detail
-
TASK_TIMEOUT_SECONDS
public static final String TASK_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
TASK_TIMEOUT_FAIL
public static final String TASK_TIMEOUT_FAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties) throws TriggerValidationException
Description copied from interface:TriggerAction
Called when action is created but before it's initialized and used. This method should also verify that the configuration parameters are correct. It may be called multiple times.- Specified by:
configure
in interfaceTriggerAction
- Overrides:
configure
in classTriggerActionBase
- Parameters:
loader
- loader to use for instantiating sub-componentscloudManager
- current instance of SolrCloudManagerproperties
- configuration properties- Throws:
TriggerValidationException
- contains details of invalid configuration parameters.
-
process
public void process(TriggerEvent event, ActionContext context) throws Exception
- Throws:
Exception
-
-