public class HttpTriggerListener extends TriggerListenerBase
ActionContext propertiesThrowable.toString())application/json will be used.cloudManager, config, enabled, loader, requiredProperties, validProperties, validPropertyPrefixes| Constructor and Description |
|---|
HttpTriggerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(SolrResourceLoader loader,
SolrCloudManager cloudManager,
AutoScalingConfig.TriggerListenerConfig config)
Called when listener is created but before it's initialized and used.
|
void |
onEvent(TriggerEvent event,
TriggerEventProcessorStage stage,
String actionName,
ActionContext context,
Throwable error,
String message)
This method is called when either a particular
stage or
actionName is reached during event processing. |
close, getConfig, init, isEnabledpublic void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, AutoScalingConfig.TriggerListenerConfig config) throws TriggerValidationException
TriggerListenerconfigure in interface TriggerListenerconfigure in class TriggerListenerBaseloader - loader to use for instantiating sub-componentscloudManager - current instance of SolrCloudManagerconfig - conigurationTriggerValidationException - contains details of invalid configuration parameters.public void onEvent(TriggerEvent event, TriggerEventProcessorStage stage, String actionName, ActionContext context, Throwable error, String message)
TriggerListenerstage or
actionName is reached during event processing.event - current event being processedstage - TriggerEventProcessorStage that this listener was registered for, or nullactionName - TriggerAction name that this listener was registered for, or nullcontext - optional ActionContext when the processing stage is related to an action, or nullerror - optional Throwable error, or nullmessage - optional messageCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.