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 ofTriggerListenerthat 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 voidonEvent(TriggerEvent event, TriggerEventProcessorStage stage, String actionName, ActionContext context, Throwable error, String message)This method is called when either a particularstageoractionNameis 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:TriggerListenerThis method is called when either a particularstageoractionNameis reached during event processing.- Parameters:
event- current event being processedstage-TriggerEventProcessorStagethat this listener was registered for, or nullactionName-TriggerActionname that this listener was registered for, or nullcontext- optionalActionContextwhen the processing stage is related to an action, or nullerror- optionalThrowableerror, or nullmessage- optional message
-
-