|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.seide.core.impl.DispatcherImpl
public class DispatcherImpl
The main Dispatcher implementation.
| Constructor Summary | |
|---|---|
DispatcherImpl()
|
|
| Method Summary | |
|---|---|
boolean |
execute(Event event)
Routes the Event to the specified Stage executing the associated EventHandler. |
boolean |
execute(String stage,
Message message)
Routes the Message to the specified Stage executing the associated EventHandler. |
String |
getContext()
|
int |
getStageCount()
|
long |
getTotalEventExecutionsCount()
|
boolean |
isRunning()
|
boolean |
isThrowExceptionOnInvalidStage()
|
void |
setContext(String context)
This parameter sets a context, to allow different flows running at the same time and it is propagated in logs & JXM metrics. |
void |
setStages(List<Stage> stages)
Stage list of supported flow EventHandler. |
void |
setThrowExceptionOnInvalidStage(boolean throwExceptionOnInvalidStage)
|
void |
start()
Starts the object implementation's lifecycle. |
void |
stop()
Stops the object implementation's lifecycle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DispatcherImpl()
| Method Detail |
|---|
public boolean execute(String stage,
Message message)
throws InvalidStageException
DispatcherMessage to the specified Stage executing the associated EventHandler.
execute in interface Dispatcherstage - Stage.idmessage - payload.
InvalidStageException
public boolean execute(Event event)
throws InvalidStageException
DispatcherEvent to the specified Stage executing the associated EventHandler.
execute in interface DispatcherInvalidStageExceptionpublic void start()
Lifecycle
start in interface Lifecyclepublic String getContext()
getContext in interface Dispatcherpublic void setContext(String context)
Dispatcher
setContext in interface Dispatcherpublic void setStages(List<Stage> stages)
DispatcherStage list of supported flow EventHandler.
setStages in interface Dispatcherstages - Stage list.public void setThrowExceptionOnInvalidStage(boolean throwExceptionOnInvalidStage)
public boolean isThrowExceptionOnInvalidStage()
public void stop()
Lifecycle
stop in interface Lifecyclepublic boolean isRunning()
isRunning in interface Lifecyclepublic int getStageCount()
getStageCount in interface DispatcherStatisticspublic long getTotalEventExecutionsCount()
getTotalEventExecutionsCount in interface DispatcherStatisticsLifecycle.start() call.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||