public abstract class AbstractStage<M,C extends StageConfig> extends java.lang.Object implements Stage<M,C>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NOW_KEY |
| Modifier and Type | Method and Description |
|---|---|
C |
getConfiguration() |
ConfigurationComponent |
getConfigurationComponent() |
ContextFactory |
getContextFactory() |
java.lang.String |
getId() |
MetricRegistry |
getMetricRegistry() |
void |
handleSignal(java.lang.String signal,
java.lang.String value,
Context context)
Handle a signal
|
void |
init() |
boolean |
managedModeEnabled() |
void |
process(M message,
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)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessageClassgetStageConfigClasspublic static final java.lang.String NOW_KEY
public C getConfiguration()
getConfiguration in interface Configurable<C extends StageConfig>public void init()
init in interface Configurable<C extends StageConfig>public java.lang.String getId()
getId in interface Stage<M,C extends StageConfig>public ContextFactory getContextFactory()
getContextFactory in interface Stage<M,C extends StageConfig>public MetricRegistry getMetricRegistry()
getMetricRegistry in interface Stage<M,C extends StageConfig>public void process(M message, Context context, StageOutput<M> output) throws java.lang.Exception
public void handleSignal(java.lang.String signal,
java.lang.String value,
Context context)
ProcessorhandleSignal in interface Processor<M>public ConfigurationComponent getConfigurationComponent()
public boolean managedModeEnabled()
managedModeEnabled in interface Stage<M,C extends StageConfig>