public abstract class TriggerListenerBase extends Object implements TriggerListener
TriggerListener.| Modifier and Type | Field and Description |
|---|---|
protected SolrCloudManager |
cloudManager
Deprecated.
|
protected AutoScalingConfig.TriggerListenerConfig |
config
Deprecated.
|
protected boolean |
enabled
Deprecated.
|
protected SolrResourceLoader |
loader
Deprecated.
|
protected Set<String> |
requiredProperties
Deprecated.
Set of required property names.
|
protected Set<String> |
validProperties
Deprecated.
Set of valid property names.
|
protected Set<String> |
validPropertyPrefixes
Deprecated.
Subclasses can add to this set if they want to allow arbitrary properties that
start with one of valid prefixes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TriggerListenerBase()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
configure(SolrResourceLoader loader,
SolrCloudManager cloudManager,
AutoScalingConfig.TriggerListenerConfig config)
Deprecated.
Called when listener is created but before it's initialized and used.
|
AutoScalingConfig.TriggerListenerConfig |
getConfig()
Deprecated.
|
void |
init()
Deprecated.
|
boolean |
isEnabled()
Deprecated.
If this method returns false then the listener's
TriggerListener.onEvent(TriggerEvent, TriggerEventProcessorStage, String, ActionContext, Throwable, String)
method should not be called. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonEventprotected AutoScalingConfig.TriggerListenerConfig config
protected SolrCloudManager cloudManager
protected SolrResourceLoader loader
protected boolean enabled
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 void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, AutoScalingConfig.TriggerListenerConfig config) throws TriggerValidationException
TriggerListenerconfigure in interface TriggerListenerloader - loader to use for instantiating sub-componentscloudManager - current instance of SolrCloudManagerconfig - conigurationTriggerValidationException - contains details of invalid configuration parameters.public AutoScalingConfig.TriggerListenerConfig getConfig()
getConfig in interface TriggerListenerpublic boolean isEnabled()
TriggerListenerTriggerListener.onEvent(TriggerEvent, TriggerEventProcessorStage, String, ActionContext, Throwable, String)
method should not be called.isEnabled in interface TriggerListenerpublic void init()
throws Exception
init in interface TriggerListenerExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.