Class LoggingListener
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.TriggerListenerBase
-
- org.apache.solr.cloud.autoscaling.LoggingListener
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TriggerListener
public class LoggingListener extends TriggerListenerBase
Implementation ofTriggerListener
that reports events to a log.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.cloud.autoscaling.TriggerListenerBase
cloudManager, config, enabled, loader, requiredProperties, validProperties, validPropertyPrefixes
-
-
Constructor Summary
Constructors Constructor Description LoggingListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onEvent(TriggerEvent event, TriggerEventProcessorStage stage, String actionName, ActionContext context, Throwable error, String message)
This method is called when either a particularstage
oractionName
is reached during event processing.
-
-
-
Method Detail
-
onEvent
public void onEvent(TriggerEvent event, TriggerEventProcessorStage stage, String actionName, ActionContext context, Throwable error, String message)
Description copied from interface:TriggerListener
This method is called when either a particularstage
oractionName
is reached during event processing.- Parameters:
event
- current event being processedstage
-TriggerEventProcessorStage
that this listener was registered for, or nullactionName
-TriggerAction
name that this listener was registered for, or nullcontext
- optionalActionContext
when the processing stage is related to an action, or nullerror
- optionalThrowable
error, or nullmessage
- optional message
-
-