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.
initArgs| Constructor and Description |
|---|
ComputePlanAction() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxNumOps(TriggerEvent event,
AutoScalingConfig autoScalingConfig,
ClusterState clusterState) |
protected int |
getRequestedNumOps(TriggerEvent event) |
protected Suggester |
getSuggester(Policy.Session session,
TriggerEvent event,
SolrCloudManager cloudManager) |
void |
init(Map<String,String> args) |
void |
process(TriggerEvent event,
ActionContext context) |
close, getNamepublic void init(Map<String,String> args)
init in interface MapInitializedPlugininit in class TriggerActionBasepublic void process(TriggerEvent event, ActionContext context) throws Exception
Exceptionprotected int getMaxNumOps(TriggerEvent event, AutoScalingConfig autoScalingConfig, ClusterState clusterState)
protected int getRequestedNumOps(TriggerEvent event)
protected Suggester getSuggester(Policy.Session session, TriggerEvent event, SolrCloudManager cloudManager)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.