

Public Member Functions | |
| CommonMonitorImpl (CommonPropertyImpl property, Callback callback, CBDescIn descIn) | |
| CommonMonitorImpl (CommonPropertyImpl property, Callback callback, CBDescIn descIn, long startTime) | |
| void | dispatchFailed (BACIDispatchAction action, DispatchRequest failedRequest) |
| void | schedule () |
| BACIPriority | getPriority () |
| void | timeout (long timeToRun) |
| void | run () |
| long | start_time () |
| void | set_timer_trigger (long timeInterval) |
| void | get_timer_trigger (LongHolder timeIntervalHolder) |
| synchronized void | suspend () |
| synchronized void | resume () |
| synchronized void | destroy () |
Protected Member Functions | |
| CommonMonitorImpl () | |
| void | initialize () |
| void | setTimeTrigger (long timeInterval) |
| void | alignStartTime () |
| void | retrieveValueAndDispatch (long keyTime, boolean done) |
Protected Attributes | |
| Object | monitorTimerTask |
| CommonPropertyImpl | property |
| BACIDispatchAction | dispatchAction |
| long | timeTrigger |
| long | startTime |
| boolean | isSuspended |
| boolean | isDestroyed |
| boolean | userControlledStartTime |
| AtomicLong | queuedKeyTime = new AtomicLong(0) |
Implementation of common monitor.
| alma::ACS::impl::CommonMonitorImpl::CommonMonitorImpl | ( | ) | [inline, protected] |
Default constructor.
| alma::ACS::impl::CommonMonitorImpl::CommonMonitorImpl | ( | CommonPropertyImpl | property, | |
| Callback | callback, | |||
| CBDescIn | descIn | |||
| ) | [inline] |
Constructor with immediate monitor notification (synchronized monitors supported).
| property | property to be monitored, non-null. | |
| callback | callback, non-null. | |
| descIn | callback in-descriptor. |
| alma::ACS::impl::CommonMonitorImpl::CommonMonitorImpl | ( | CommonPropertyImpl | property, | |
| Callback | callback, | |||
| CBDescIn | descIn, | |||
| long | startTime | |||
| ) | [inline] |
Constructor.
| property | property to be monitored, non-null. | |
| callback | callback, non-null. | |
| descIn | callback in-descriptor. | |
| startTime | startTime (OMG time), values less or equal to current time mean immediately, value 0 means that start time should be controlled automatically (synchronized monitors). |
References alma::ACS::jbaci::BACIDispatchAction::addDispatchFailedListener(), dispatchAction, getPriority(), and initialize().
| void alma::ACS::impl::CommonMonitorImpl::alignStartTime | ( | ) | [inline, protected] |
If userControlledStartTime == false aligns (fixes) start time required for synchronized monitors.
References startTime, timeTrigger, and userControlledStartTime.
Referenced by resume(), and setTimeTrigger().
| synchronized void alma::ACS::impl::CommonMonitorImpl::destroy | ( | ) | [inline] |
Implements alma::ACS::SubscriptionOperations.
References dispatchAction, isDestroyed, isSuspended, alma::ACS::jbaci::BACIDispatchAction::removeDispatchFailedListener(), retrieveValueAndDispatch(), and suspend().
Referenced by dispatchFailed().
| void alma::ACS::impl::CommonMonitorImpl::dispatchFailed | ( | BACIDispatchAction | action, | |
| DispatchRequest | failedRequest | |||
| ) | [inline] |
| void alma::ACS::impl::CommonMonitorImpl::get_timer_trigger | ( | LongHolder | timeIntervalHolder | ) | [inline] |
References timeTrigger.
| BACIPriority alma::ACS::impl::CommonMonitorImpl::getPriority | ( | ) | [inline] |
Implements alma::ACS::jbaci::PrioritizedRunnable.
Reimplemented in alma::ACS::impl::HistoryMonitorImpl.
References alma::ACS::jbaci::BACIPriority::NORMAL.
Referenced by CommonMonitorImpl().
| void alma::ACS::impl::CommonMonitorImpl::initialize | ( | ) | [inline, protected] |
Initialize monitor.
References alma::ACS::impl::CommonPropertyImpl::default_timer_trigger(), isDestroyed, isSuspended, property, setTimeTrigger(), startTime, and userControlledStartTime.
Referenced by CommonMonitorImpl(), and alma::ACS::impl::HistoryMonitorImpl::HistoryMonitorImpl().
| synchronized void alma::ACS::impl::CommonMonitorImpl::resume | ( | ) | [inline] |
Implements alma::ACS::SubscriptionOperations.
Reimplemented in alma::ACS::impl::CommonComparableMonitorImpl.
References alignStartTime(), isSuspended, schedule(), startTime, timeTrigger, and userControlledStartTime.
| void alma::ACS::impl::CommonMonitorImpl::retrieveValueAndDispatch | ( | long | keyTime, | |
| boolean | done | |||
| ) | [inline, protected] |
Retrieve property value via cached mnemonicValue and add response to BACIDispatchAction.
Reimplemented in alma::ACS::impl::HistoryMonitorImpl.
References dispatchAction, alma::ACS::jbaci::BACIDispatchAction::dispatchDoneRequest(), alma::ACS::jbaci::BACIDispatchAction::dispatchWorkingRequest(), alma::ACSErr::Completion::timeStamp, and alma::ACSErr::CompletionHolder::value.
| void alma::ACS::impl::CommonMonitorImpl::run | ( | ) | [inline] |
References queuedKeyTime, and retrieveValueAndDispatch().
| void alma::ACS::impl::CommonMonitorImpl::schedule | ( | ) | [inline] |
Schedule monitor using fixed rate interval timeTrigger starting from startTime paramterer.
References isSuspended, monitorTimerTask, startTime, and timeTrigger.
Referenced by resume(), and setTimeTrigger().
| void alma::ACS::impl::CommonMonitorImpl::set_timer_trigger | ( | long | timeInterval | ) | [inline] |
Implements alma::ACS::MonitorOperations.
References setTimeTrigger().
| void alma::ACS::impl::CommonMonitorImpl::setTimeTrigger | ( | long | timeInterval | ) | [inline, protected] |
Set time trigger. If userControlledStartTime == false also aligns (fixes) start time required for synchronized monitors.
| timeTtrigger | time trigger (monitor interval in ms), if <= 0 monitoring is disabled but not resumed since there still might be on-change trigger enabled. timeTrigger is limited with lower bound property.min_timer_trigger(). |
References alignStartTime(), alma::ACS::impl::CommonPropertyImpl::min_timer_trigger(), property, schedule(), and timeTrigger.
Referenced by initialize(), and set_timer_trigger().
| long alma::ACS::impl::CommonMonitorImpl::start_time | ( | ) | [inline] |
Implements alma::ACS::MonitorOperations.
References startTime.
| synchronized void alma::ACS::impl::CommonMonitorImpl::suspend | ( | ) | [inline] |
Implements alma::ACS::SubscriptionOperations.
Reimplemented in alma::ACS::impl::CommonComparableMonitorImpl.
References isSuspended, and monitorTimerTask.
Referenced by destroy().
| void alma::ACS::impl::CommonMonitorImpl::timeout | ( | long | timeToRun | ) | [inline] |
Timer implementation - it stores time when triggered and delegates value retrival to BACIExecutor.
Implements alma::ACS::jbaci::BACITimer::TimerRunnable.
References queuedKeyTime.
Dispatch action.
Referenced by CommonMonitorImpl(), destroy(), retrieveValueAndDispatch(), and alma::ACS::impl::CommonComparableMonitorImpl::valueChanged().
boolean alma::ACS::impl::CommonMonitorImpl::isDestroyed [protected] |
Destruction status.
Referenced by destroy(), and initialize().
boolean alma::ACS::impl::CommonMonitorImpl::isSuspended [protected] |
Suspend/resume status.
Referenced by destroy(), alma::ACS::impl::CommonComparableMonitorImpl::enable(), initialize(), resume(), alma::ACS::impl::CommonComparableMonitorImpl::resume(), schedule(), suspend(), and alma::ACS::impl::CommonComparableMonitorImpl::suspend().
Object alma::ACS::impl::CommonMonitorImpl::monitorTimerTask [protected] |
Monitor timer task.
Referenced by schedule(), and suspend().
Monitorized property.
Referenced by alma::ACS::impl::CommonComparableMonitorImpl::enable(), initialize(), alma::ACS::impl::CommonComparableMonitorImpl::PoolTimer::run(), and setTimeTrigger().
AtomicLong alma::ACS::impl::CommonMonitorImpl::queuedKeyTime = new AtomicLong(0) [protected] |
long alma::ACS::impl::CommonMonitorImpl::startTime [protected] |
Start time (java time).
Referenced by alignStartTime(), alma::ACS::impl::CommonComparableMonitorImpl::enable(), alma::ACS::impl::HistoryMonitorImpl::HistoryMonitorImpl(), initialize(), resume(), schedule(), and start_time().
long alma::ACS::impl::CommonMonitorImpl::timeTrigger [protected] |
Time trigger (monitoring interval in ms).
Referenced by alignStartTime(), get_timer_trigger(), resume(), schedule(), and setTimeTrigger().
boolean alma::ACS::impl::CommonMonitorImpl::userControlledStartTime [protected] |
Start time control status.
Referenced by alignStartTime(), initialize(), and resume().
1.6.2