alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource Class Reference

Collaboration diagram for alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestResource (Logger logger)

Static Public Attributes

static final String STATE_OK = "OK"

Package Functions

String getName ()
void setName (String name)
String getState ()
void setState (String state)
void setStateCheckCounter (CountDownLatch counter)
int getTestDelaySeconds ()
void setTestDelaySeconds (int testDelaySeconds)
Class<?extends RuntimeException > getCheckStateRuntimeEx ()
void setCheckStateRuntimeEx (Class<?extends RuntimeException > exClass)

Private Attributes

volatile String state
int testDelaySeconds
final Logger logger
volatile CountDownLatch counter
String name
Class<?extends RuntimeException > checkStateRuntimeExClass

Constructor & Destructor Documentation

alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::TestResource ( Logger  logger  )  [inline]

Member Function Documentation

Class<? extends RuntimeException> alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::getCheckStateRuntimeEx (  )  [inline, package]
String alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::getName (  )  [inline, package]
String alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::getState (  )  [inline, package]

This method must be reentrant so that the next scheduled check can work even the last thread is still sleeping. Otherwise the timeouts in the tests get confused.

References checkStateRuntimeExClass, counter, logger, state, and testDelaySeconds.

Referenced by alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResourceChecker::checkState().

int alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::getTestDelaySeconds (  )  [inline, package]

References testDelaySeconds.

void alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::setCheckStateRuntimeEx ( Class<?extends RuntimeException >  exClass  )  [inline, package]
void alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::setName ( String  name  )  [inline, package]
void alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::setState ( String  state  )  [inline, package]
void alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::setStateCheckCounter ( CountDownLatch  counter  )  [inline, package]
void alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::setTestDelaySeconds ( int  testDelaySeconds  )  [inline, package]

Member Data Documentation

Referenced by getState().

Referenced by getState().

Referenced by getName().

Referenced by getState().

Referenced by TestResource().

Referenced by getState(), and getTestDelaySeconds().


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

Generated by  doxygen 1.6.2