public abstract class TriggerActionBase extends Object implements TriggerAction
TriggerAction implementations.| Modifier and Type | Field and Description |
|---|---|
protected SolrCloudManager |
cloudManager |
protected SolrResourceLoader |
loader |
protected Map<String,Object> |
properties |
protected Set<String> |
requiredProperties
Set of required property names.
|
protected Set<String> |
validProperties
Set of valid property names.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TriggerActionBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(SolrResourceLoader loader,
SolrCloudManager cloudManager,
Map<String,Object> properties)
Called when action is created but before it's initialized and used.
|
String |
getName() |
void |
init()
Called before an action is first used.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessprotected SolrResourceLoader loader
protected SolrCloudManager cloudManager
protected final Set<String> validProperties
TriggerUtils.validProperties(Set, String...)protected final Set<String> requiredProperties
TriggerUtils.requiredProperties(Set, Set, String...)
(required properties are also valid properties).public String getName()
getName in interface TriggerActionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties) throws TriggerValidationException
TriggerActionconfigure in interface TriggerActionloader - loader to use for instantiating sub-componentscloudManager - current instance of SolrCloudManagerproperties - configuration propertiesTriggerValidationException - contains details of invalid configuration parameters.public void init()
throws Exception
TriggerActionTriggerAction.configure(SolrResourceLoader, SolrCloudManager, Map) method.init in interface TriggerActionExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.