Package com.lucidworks.apollo.pipeline
Class AbstractStage<M,C extends com.lucidworks.apollo.pipeline.StageConfig>
java.lang.Object
com.lucidworks.apollo.pipeline.AbstractStage<M,C>
- All Implemented Interfaces:
Configurable<C>,Processor<M>,Stage<M,C>
- Direct Known Subclasses:
AbstractGenerator,AbstractProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected abstract Object[]getConditionScriptFuncArguments(M message, com.lucidworks.apollo.pipeline.Context context) protected abstract Stringcom.lucidworks.apollo.pipeline.ContextFactorygetId()com.codahale.metrics.MetricRegistrygetProperty(String key, String defaultValue) voidhandleSignal(String signal, String value, com.lucidworks.apollo.pipeline.Context context) Handle a signalvoidinit()booleanvoidpreInit(StageAssistFactoryParams params) voidprocess(M message, com.lucidworks.apollo.pipeline.Context context, StageOutput<M> output) Implements the default behavior for a stage when it receives a message (which is to simply pass it to the next stage)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lucidworks.apollo.pipeline.Stage
getMessageClass, getStageType
-
Field Details
-
NOW_KEY
- See Also:
-
paramsInited
protected boolean paramsInited
-
-
Constructor Details
-
AbstractStage
protected AbstractStage()
-
-
Method Details
-
preInit
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<M>
-
init
public void init()- Specified by:
initin interfaceConfigurable<M>
-
getId
-
getContextFactory
public com.lucidworks.apollo.pipeline.ContextFactory getContextFactory()- Specified by:
getContextFactoryin interfaceStage<M,C extends com.lucidworks.apollo.pipeline.StageConfig>
-
getMetricRegistry
public com.codahale.metrics.MetricRegistry getMetricRegistry()- Specified by:
getMetricRegistryin interfaceStage<M,C extends com.lucidworks.apollo.pipeline.StageConfig>
-
process
public void process(M message, com.lucidworks.apollo.pipeline.Context context, StageOutput<M> output) throws Exception Implements the default behavior for a stage when it receives a message (which is to simply pass it to the next stage) -
handleSignal
public void handleSignal(String signal, String value, com.lucidworks.apollo.pipeline.Context context) Description copied from interface:ProcessorHandle a signal- Specified by:
handleSignalin interfaceProcessor<M>
-
escapeKey
-
getConditionScriptFuncWrapper
-
getConditionScriptFuncArguments
-
getConfigurationComponent
-
managedModeEnabled
public boolean managedModeEnabled()- Specified by:
managedModeEnabledin interfaceStage<M,C extends com.lucidworks.apollo.pipeline.StageConfig>
-
getProperty
- Specified by:
getPropertyin interfaceConfigurable<M>
-