public abstract class BACIAction extends java.lang.Object implements PrioritizedRunnable
| Modifier and Type | Field and Description |
|---|---|
protected Callback |
callback
Callback.
|
protected CallbackDispatcher |
callbackDispatcher
Callback dispatcher (used to dispatch non-CBvoid callbacks).
|
protected Completion |
completion
Completion.
|
protected CBDescOut |
descOut
Callback out descriptor.
|
protected PrioritizedExecutor |
executor
Executor.
|
protected BACIPriority |
priority
Action priority.
|
protected java.lang.Object |
returnValue
Return value.
|
| Constructor and Description |
|---|
BACIAction(PrioritizedExecutor executor,
Callback callback,
CBDescIn descIn,
CallbackDispatcher callbackDispatcher)
Constructor of NORMAL priority action.
|
BACIAction(PrioritizedExecutor executor,
Callback callback,
CBDescIn descIn,
CallbackDispatcher callbackDispatcher,
BACIPriority priority)
Constructor.
|
BACIAction(PrioritizedExecutor executor,
CBvoid callback,
CBDescIn descIn)
Constructor of NORMAL priority action (CBvoid callback).
|
BACIAction(PrioritizedExecutor executor,
CBvoid callback,
CBDescIn descIn,
BACIPriority priority)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
dispatch()
Dispatch method.
|
abstract java.lang.Object |
execute()
Action to be executed - implement it.
|
protected static CBDescOut |
generateCBDescOut(CBDescIn descIn)
Generates callback out descriptor from in descriptor.
|
BACIPriority |
getPriority()
Return priority of the task.
|
void |
run()
NOT TO BE CHANGED.
|
void |
submit()
Sumbit action to be
BACIExecutor |
protected BACIPriority priority
protected PrioritizedExecutor executor
protected CBDescOut descOut
protected Callback callback
protected CallbackDispatcher callbackDispatcher
protected Completion completion
protected java.lang.Object returnValue
public BACIAction(PrioritizedExecutor executor, CBvoid callback, CBDescIn descIn)
executor - executor to be used to execute action.callback - action callback.descIn - action callback in descriptor.public BACIAction(PrioritizedExecutor executor, Callback callback, CBDescIn descIn, CallbackDispatcher callbackDispatcher)
executor - executor to be used to execute action.callback - action callback.descIn - action callback in descriptor.callbackDispatcher - callback dispatcher (value dependend).public BACIAction(PrioritizedExecutor executor, CBvoid callback, CBDescIn descIn, BACIPriority priority)
executor - executor to be used to execute action.callback - action callback.descIn - action in descriptor.priority - action priority.public BACIAction(PrioritizedExecutor executor, Callback callback, CBDescIn descIn, CallbackDispatcher callbackDispatcher, BACIPriority priority)
executor - executor to be used to execute action.callback - action callback.descIn - action in descriptor.callbackDispatcher - callback dispatcher (value dependend).priority - action priority.public BACIPriority getPriority()
PrioritizedRunnablegetPriority in interface PrioritizedRunnablePrioritizedRunnable.getPriority()protected static CBDescOut generateCBDescOut(CBDescIn descIn)
descIn - callback in descriptor.public final void run()
run in interface java.lang.Runnableprotected boolean dispatch()
true if successfully dispatched.public abstract java.lang.Object execute()
throws AcsJException
completion field is left to null (by this method),
this class will create a no-error completion with current timestamp.
Use alma.ACS.jbaci.CompletionUtil class to generate no-error completion.null.AcsJExceptionpublic void submit()
BACIExecutor to be executed.