Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes

alma.ACS.jbaci.BACIAction Class Reference

Inheritance diagram for alma.ACS.jbaci.BACIAction:
alma.ACS.jbaci.PrioritizedRunnable alma.ACS.impl.CommonPropertyImpl.GetAsyncAction alma.ACS.impl.CommonPropertyImpl.SetAsyncAction alma.ACS.impl.RWCommonComparablePropertyImpl.DecrementAction alma.ACS.impl.RWCommonComparablePropertyImpl.IncrementAction alma.ACS.jbaci.ReflectionBACIAction

List of all members.

Public Member Functions

 BACIAction (PrioritizedExecutor executor, CBvoid callback, CBDescIn descIn)
 BACIAction (PrioritizedExecutor executor, Callback callback, CBDescIn descIn, CallbackDispatcher callbackDispatcher)
 BACIAction (PrioritizedExecutor executor, CBvoid callback, CBDescIn descIn, BACIPriority priority)
 BACIAction (PrioritizedExecutor executor, Callback callback, CBDescIn descIn, CallbackDispatcher callbackDispatcher, BACIPriority priority)
BACIPriority getPriority ()
final void run ()
abstract Object execute () throws AcsJException
void submit ()

Protected Member Functions

boolean dispatch ()

Static Protected Member Functions

static CBDescOut generateCBDescOut (CBDescIn descIn)

Protected Attributes

BACIPriority priority
PrioritizedExecutor executor
CBDescOut descOut
Callback callback
CallbackDispatcher callbackDispatcher
Completion completion
Object returnValue

Detailed Description

BACI action.

Author:
Matej Sekoranja
Version:
$id$

Constructor & Destructor Documentation

alma.ACS.jbaci.BACIAction.BACIAction ( PrioritizedExecutor  executor,
CBvoid  callback,
CBDescIn  descIn 
)

Constructor of NORMAL priority action (CBvoid callback).

Parameters:
executor executor to be used to execute action.
callback action callback.
descIn action callback in descriptor.
alma.ACS.jbaci.BACIAction.BACIAction ( PrioritizedExecutor  executor,
Callback  callback,
CBDescIn  descIn,
CallbackDispatcher  callbackDispatcher 
)

Constructor of NORMAL priority action.

Parameters:
executor executor to be used to execute action.
callback action callback.
descIn action callback in descriptor.
callbackDispatcher callback dispatcher (value dependend).
alma.ACS.jbaci.BACIAction.BACIAction ( PrioritizedExecutor  executor,
CBvoid  callback,
CBDescIn  descIn,
BACIPriority  priority 
)

Constructor.

Parameters:
executor executor to be used to execute action.
callback action callback.
descIn action in descriptor.
priority action priority.
alma.ACS.jbaci.BACIAction.BACIAction ( PrioritizedExecutor  executor,
Callback  callback,
CBDescIn  descIn,
CallbackDispatcher  callbackDispatcher,
BACIPriority  priority 
)

Constructor.

Parameters:
executor executor to be used to execute action.
callback action callback.
descIn action in descriptor.
callbackDispatcher callback dispatcher (value dependend).
priority action priority.

References alma.ACS.jbaci.BACIAction.descOut, and alma.ACS.jbaci.BACIAction.generateCBDescOut().


Member Function Documentation

abstract Object alma.ACS.jbaci.BACIAction.execute (  )  throws AcsJException [pure virtual]

Action to be executed - implement it. If 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.

Returns:
value to be send via callback, can be null.

Implemented in alma.ACS.impl.CommonPropertyImpl.GetAsyncAction, alma.ACS.impl.CommonPropertyImpl.SetAsyncAction, alma.ACS.impl.RWCommonComparablePropertyImpl.IncrementAction, alma.ACS.impl.RWCommonComparablePropertyImpl.DecrementAction, and alma.ACS.jbaci.ReflectionBACIAction.

Referenced by alma.ACS.jbaci.BACIAction.run().

static CBDescOut alma.ACS.jbaci.BACIAction.generateCBDescOut ( CBDescIn  descIn  )  [static, protected]

Generates callback out descriptor from in descriptor.

Parameters:
descIn callback in descriptor.
Returns:
generated callback out descriptor.

Referenced by alma.ACS.jbaci.BACIAction.BACIAction().

void alma.ACS.jbaci.BACIAction.submit (  ) 

Sumbit action to be BACIExecutor to be executed.

References alma.ACS.jbaci.PrioritizedExecutor.execute(), and alma.ACS.jbaci.BACIAction.executor.


Member Data Documentation

Callback alma.ACS.jbaci.BACIAction.callback [protected]

Callback.

Referenced by alma.ACS.jbaci.BACIAction.dispatch().

Callback dispatcher (used to dispatch non-CBvoid callbacks).

Referenced by alma.ACS.jbaci.BACIAction.dispatch().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties