Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::daemontest::DaemonCallbackImpl Class Reference

List of all members.

Public Member Functions

void done (Completion comp)
void working (Completion comp)

Package Functions

 DaemonCallbackImpl (Logger logger)
void prepareWaitForDone (String srvName)
boolean waitForDone (long timeout, TimeUnit unit) throws InterruptedException
Completion getLastDoneCompletion ()

Private Member Functions

String isoDateFromOmgTime (long omgTime)

Private Attributes

final Logger logger
volatile String srvName
volatile CountDownLatch syncDone
volatile Completion lastDoneCompletion

Constructor & Destructor Documentation

alma::acs::daemontest::DaemonCallbackImpl::DaemonCallbackImpl Logger  logger  )  [inline, package]
 


Member Function Documentation

void alma::acs::daemontest::DaemonCallbackImpl::done Completion  comp  )  [inline]
 

Completion alma::acs::daemontest::DaemonCallbackImpl::getLastDoneCompletion  )  [inline, package]
 

String alma::acs::daemontest::DaemonCallbackImpl::isoDateFromOmgTime long  omgTime  )  [inline, private]
 

void alma::acs::daemontest::DaemonCallbackImpl::prepareWaitForDone String  srvName  )  [inline, package]
 

Must be called before the call that can trigger the callback to done(Completion) and before waitForDone(long, TimeUnit), so as to (re-)activate waiting for the done callback. This ensures that we don't miss the done callback even if it occurs faster than the client thread can call waitForDone.

Parameters:
srvName used for logging the working and done calls

boolean alma::acs::daemontest::DaemonCallbackImpl::waitForDone long  timeout,
TimeUnit  unit
throws InterruptedException [inline, package]
 

prepareWaitForDone() must be called first.

Returns:
false if the waiting time elapsed before the done() method was called.
See also:
CountDownLatch#await(long, TimeUnit)

void alma::acs::daemontest::DaemonCallbackImpl::working Completion  comp  )  [inline]
 


Member Data Documentation

volatile Completion alma::acs::daemontest::DaemonCallbackImpl::lastDoneCompletion [private]
 

final Logger alma::acs::daemontest::DaemonCallbackImpl::logger [private]
 

volatile String alma::acs::daemontest::DaemonCallbackImpl::srvName [private]
 

volatile CountDownLatch alma::acs::daemontest::DaemonCallbackImpl::syncDone [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:34 2009 for ACS Java API by doxygen 1.3.8