Class InactiveMarkersPlanAction
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.TriggerActionBase
-
- org.apache.solr.cloud.autoscaling.InactiveMarkersPlanAction
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TriggerAction
public class InactiveMarkersPlanAction extends TriggerActionBase
This plan simply removes nodeAdded and nodeLost markers from Zookeeper if their TTL has expired. These markers are used byNodeAddedTriggerandNodeLostTriggerto ensure fault tolerance in case of Overseer leader crash.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_TTL_SECONDSstatic StringTTL_PROP-
Fields inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
cloudManager, loader, properties, requiredProperties, validProperties
-
-
Constructor Summary
Constructors Constructor Description InactiveMarkersPlanAction()
-
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.voidprocess(TriggerEvent event, ActionContext context)-
Methods inherited from class org.apache.solr.cloud.autoscaling.TriggerActionBase
close, getName, init
-
-
-
-
Field Detail
-
TTL_PROP
public static final String TTL_PROP
- See Also:
- Constant Field Values
-
DEFAULT_TTL_SECONDS
public static final int DEFAULT_TTL_SECONDS
- 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: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 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
-
-