public class InactiveShardPlanAction extends TriggerActionBaseThis class checks whether there are shards that have been inactive for a long time (which usually means they are left-overs from shard splitting) and requests their removal after their cleanup TTL period elapsed.
Shard delete requests are put into the
ActionContext's properties with the key name "operations". The value is a List of SolrRequest objects.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties)Called when action is created but before it's initialized and used.
process(TriggerEvent event, ActionContext context)
Methods inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
close, getName, init
public void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties) throws TriggerValidationExceptionDescription 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:
loader- loader to use for instantiating sub-components
cloudManager- current instance of SolrCloudManager
properties- configuration properties
TriggerValidationException- contains details of invalid configuration parameters.