public interface TriggerListener extends Closeable
Modifier and Type | Method and Description |
---|---|
AutoScalingConfig.TriggerListenerConfig |
getConfig() |
void |
init(SolrCloudManager dataProvider,
AutoScalingConfig.TriggerListenerConfig config) |
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. |
void init(SolrCloudManager dataProvider, AutoScalingConfig.TriggerListenerConfig config) throws Exception
Exception
AutoScalingConfig.TriggerListenerConfig getConfig()
void onEvent(TriggerEvent event, TriggerEventProcessorStage stage, String actionName, ActionContext context, Throwable error, String message) throws Exception
stage
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 messageException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.