
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 |
| alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::TestResource | ( | Logger | logger | ) | [inline] |
References checkStateRuntimeExClass, setName(), setState(), setTestDelaySeconds(), and STATE_OK.
| Class<? extends RuntimeException> alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::getCheckStateRuntimeEx | ( | ) | [inline, package] |
References checkStateRuntimeExClass.
| 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] |
References checkStateRuntimeExClass.
Referenced by alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::testResourceCheckException().
| 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] |
Class<? extends RuntimeException> alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::checkStateRuntimeExClass [private] |
Referenced by getCheckStateRuntimeEx(), getState(), setCheckStateRuntimeEx(), and TestResource().
volatile CountDownLatch alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::counter [private] |
Referenced by getState().
final Logger alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::logger [private] |
Referenced by getState().
Referenced by getName().
volatile String alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::state [private] |
Referenced by getState().
final String alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::STATE_OK = "OK" [static] |
Referenced by TestResource().
int alma::ACS::MasterComponentImpl::SubsysResourceMonitorTest::TestResource::testDelaySeconds [private] |
Referenced by getState(), and getTestDelaySeconds().
1.6.2