public class SystemLogListener extends TriggerListenerBase
CollectionAdminParams.SYSTEM_COLL collection.
Configuration properties:
CollectionAdminParams.SYSTEM_COLL.| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_FIELD |
static String |
AFTER_ACTIONS_FIELD |
static String |
BEFORE_ACTIONS_FIELD |
static String |
COLLECTIONS_FIELD |
static String |
DOC_TYPE |
static String |
EVENT_SOURCE_FIELD |
static String |
EVENT_TYPE_FIELD |
static String |
MESSAGE_FIELD |
static String |
SOURCE |
static String |
SOURCE_FIELD |
static String |
STAGE_FIELD |
config, coreContainer| Constructor and Description |
|---|
SystemLogListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(CoreContainer coreContainer,
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. |
close, getConfigpublic 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 init(CoreContainer coreContainer, AutoScalingConfig.TriggerListenerConfig config)
init in interface TriggerListenerinit in class TriggerListenerBasepublic void onEvent(TriggerEvent event, TriggerEventProcessorStage stage, String actionName, ActionContext context, Throwable error, String message) throws Exception
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 messageExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.