Public Member Functions | |
StateChangeListener (Logger logger) | |
StateChangeSemaphore | getStateChangeSemaphore () |
MonitorstringSeq | createMonitor (ROstringSeq statesProperty, ContainerServices contSrv) throws Exception |
void | destroyMonitor () throws Exception |
final void | working (String[] value, Completion completion, CBDescOut desc) |
void | done (String[] value, Completion completion, CBDescOut desc) |
boolean | negotiate (long timeout, CBDescOut desc) |
String[] | getCurrentState () throws AcsJIllegalStateEventEx |
boolean | verifyCurrentState (String[] expectedHierarchy) |
Protected Member Functions | |
void | stateChangedNotification (String[] newStateHierarchy) |
void | logNotification (String[] value, Completion completion) |
Protected Attributes | |
final Logger | logger |
Private Attributes | |
ROstringSeq | statesProperty |
MonitorstringSeq | monitor |
ContainerServices | contSrv |
final MyStateChangeSemaphore | stateChangeSemaphore |
Can be subclassed (see stateChangedNotification(String[])).
|
|
|
Creates a monitor for
|
|
|
|
|
|
Reads the current state hierarchy.
|
|
Creates a semaphore that can be used to wait for a given number of state changes. Useful to wait with sending the next event until a previous action state has finished its /do method, and moved on to the next state. |
|
Logs a state change notification.
|
|
|
|
Subclasses may override this and do something useful with the new state...
Reimplemented in alma::ACS::MasterComponentImpl::MasterComponentImplBase::StateChangeNotificationChecker, and alma::ACS::MasterComponentImpl::tool::MasterComponentEventLogger::MyStateChangeListener.
|
|
Helper method for the repeated task of getting the current state hierarchy and comparing it against the expected hierarchy.
|
|
|
|
|
|
|
|
|
|
|
|
|