alma::ACS::jbaci::BACIAction Class Reference

Inheritance diagram for alma::ACS::jbaci::BACIAction:
Inheritance graph
[legend]
Collaboration diagram for alma::ACS::jbaci::BACIAction:
Collaboration graph
[legend]

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 
) [inline]

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 
) [inline]

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 
) [inline]

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 
) [inline]

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 descOut, and generateCBDescOut().


Member Function Documentation

boolean alma::ACS::jbaci::BACIAction::dispatch (  )  [inline, protected]

Dispatch method.

Returns:
true if successfully dispatched.

References callback, callbackDispatcher, completion, descOut, alma::ACS::jbaci::CallbackDispatcher::dispatchCallback(), and returnValue.

Referenced by run().

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 run().

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

Generates callback out descriptor from in descriptor.

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

References alma::ACS::CBDescIn::id_tag.

Referenced by BACIAction().

BACIPriority alma::ACS::jbaci::BACIAction::getPriority (  )  [inline]
final void alma::ACS::jbaci::BACIAction::run (  )  [inline]

NOT TO BE CHANGED.

References completion, dispatch(), execute(), and returnValue.

void alma::ACS::jbaci::BACIAction::submit (  )  [inline]

Sumbit action to be BACIExecutor to be executed.

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


Member Data Documentation

Callback.

Referenced by dispatch().

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

Referenced by dispatch().

Callback out descriptor.

Referenced by BACIAction(), and dispatch().

Executor.

Referenced by submit().

Action priority.

Referenced by getPriority().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2