Public Member Functions | |
| TestResource (Logger logger) | |
Static Public Attributes | |
| 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 |
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8