public class SystemLogListener extends TriggerListenerBase
CollectionAdminParams.SYSTEM_COLL
collection.
Configuration properties:
CollectionAdminParams.SYSTEM_COLL
.Modifier and Type | Field and Description |
---|---|
static String |
ACTION_FIELD
Deprecated.
|
static String |
AFTER_ACTIONS_FIELD
Deprecated.
|
static String |
BEFORE_ACTIONS_FIELD
Deprecated.
|
static String |
COLLECTIONS_FIELD
Deprecated.
|
static String |
DOC_TYPE
Deprecated.
|
static String |
EVENT_SOURCE_FIELD
Deprecated.
|
static String |
EVENT_TYPE_FIELD
Deprecated.
|
static String |
MESSAGE_FIELD
Deprecated.
|
static String |
SOURCE
Deprecated.
|
static String |
SOURCE_FIELD
Deprecated.
|
static String |
STAGE_FIELD
Deprecated.
|
cloudManager, config, enabled, loader, requiredProperties, validProperties, validPropertyPrefixes
Constructor and Description |
---|
SystemLogListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(SolrResourceLoader loader,
SolrCloudManager cloudManager,
AutoScalingConfig.TriggerListenerConfig config)
Deprecated.
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)
Deprecated.
This method is called when either a particular
stage or
actionName is reached during event processing. |
close, getConfig, init, isEnabled
public static final String SOURCE_FIELD
public static final String EVENT_SOURCE_FIELD
public static final String EVENT_TYPE_FIELD
public static final String STAGE_FIELD
public static final String ACTION_FIELD
public static final String MESSAGE_FIELD
public static final String BEFORE_ACTIONS_FIELD
public static final String AFTER_ACTIONS_FIELD
public static final String COLLECTIONS_FIELD
public static final String SOURCE
public static final String DOC_TYPE
public void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, AutoScalingConfig.TriggerListenerConfig config) throws TriggerValidationException
TriggerListener
configure
in interface TriggerListener
configure
in class TriggerListenerBase
loader
- 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) throws Exception
TriggerListener
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-2021 Apache Software Foundation. All Rights Reserved.