public class ComputePlanAction extends TriggerActionBase
The cluster operations computed here are put into the ActionContext
's properties
with the key name "operations". The value is a List of SolrRequest objects.
cloudManager, loader, properties, requiredProperties, validProperties
Constructor and Description |
---|
ComputePlanAction() |
Modifier and Type | Method and Description |
---|---|
void |
configure(SolrResourceLoader loader,
SolrCloudManager cloudManager,
Map<String,Object> properties)
Called when action is created but before it's initialized and used.
|
protected int |
getMaxNumOps(TriggerEvent event,
AutoScalingConfig autoScalingConfig,
ClusterState clusterState) |
protected int |
getRequestedNumOps(TriggerEvent event) |
protected Suggester |
getSuggester(Policy.Session session,
TriggerEvent event,
ActionContext context,
SolrCloudManager cloudManager) |
void |
process(TriggerEvent event,
ActionContext context) |
close, getName, init
public void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties) throws TriggerValidationException
TriggerAction
configure
in interface TriggerAction
configure
in class TriggerActionBase
loader
- loader to use for instantiating sub-componentscloudManager
- current instance of SolrCloudManagerproperties
- configuration propertiesTriggerValidationException
- contains details of invalid configuration parameters.public void process(TriggerEvent event, ActionContext context) throws Exception
Exception
protected int getMaxNumOps(TriggerEvent event, AutoScalingConfig autoScalingConfig, ClusterState clusterState)
protected int getRequestedNumOps(TriggerEvent event)
protected Suggester getSuggester(Policy.Session session, TriggerEvent event, ActionContext context, SolrCloudManager cloudManager) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.