Class AutoAddReplicasPlanAction
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.TriggerActionBase
-
- org.apache.solr.cloud.autoscaling.ComputePlanAction
-
- org.apache.solr.cloud.autoscaling.AutoAddReplicasPlanAction
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TriggerAction
public class AutoAddReplicasPlanAction extends ComputePlanAction
This class configures the parent ComputePlanAction to compute plan only for collections which have autoAddReplicas=true.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
cloudManager, loader, properties, requiredProperties, validProperties
-
-
Constructor Summary
Constructors Constructor Description AutoAddReplicasPlanAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties)Called when action is created but before it's initialized and used.-
Methods inherited from class org.apache.solr.cloud.autoscaling.ComputePlanAction
getMaxNumOps, getRequestedNumOps, getSuggester, process
-
Methods inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
close, getName, init
-
-
-
-
Method Detail
-
configure
public void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties) throws TriggerValidationException
Description copied from interface:TriggerActionCalled 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:
configurein interfaceTriggerAction- Overrides:
configurein classComputePlanAction- Parameters:
loader- loader to use for instantiating sub-componentscloudManager- current instance of SolrCloudManagerproperties- configuration properties- Throws:
TriggerValidationException- contains details of invalid configuration parameters.
-
-