

Classes | |
| class | PoolTimer |
Public Member Functions | |
| CommonComparableMonitorImpl (CommonPropertyImpl property, Callback callback, CBDescIn descIn) | |
| CommonComparableMonitorImpl (CommonPropertyImpl property, Callback callback, CBDescIn descIn, long startTime) | |
| void | valueChanged (DataAccess source, Object oldValue, Object newValue) |
| synchronized void | resume () |
| synchronized void | suspend () |
| synchronized void | setValueTrigger (boolean enable) |
| synchronized void | setValueTrigger (Object delta, boolean enable) |
| Object | getValueTrigger (BooleanHolder enableHolder) |
Static Public Attributes | |
| static final long | DEFAULT_POOL_TIME = 1000 |
Protected Member Functions | |
| synchronized void | enable () |
| synchronized void | disable () |
Protected Attributes | |
| Object | deltaValue |
| boolean | onEveryChange |
| CommonComparablePropertyImpl | comparableProperty |
| Object | oldValue |
| boolean | enabled |
| Object | poolTimerTask |
Implementation of common compareable (notifies on change) monitor.
| alma::ACS::impl::CommonComparableMonitorImpl::CommonComparableMonitorImpl | ( | 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::CommonComparableMonitorImpl::CommonComparableMonitorImpl | ( | 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 comparableProperty, and enabled.
| synchronized void alma::ACS::impl::CommonComparableMonitorImpl::disable | ( | ) | [inline, protected] |
Disable on-change monitoring/pooling.
References enabled, and poolTimerTask.
Referenced by enable(), setValueTrigger(), and suspend().
| synchronized void alma::ACS::impl::CommonComparableMonitorImpl::enable | ( | ) | [inline, protected] |
Enable on-change monitoring/pooling.
References DEFAULT_POOL_TIME, disable(), enabled, alma::ACS::impl::CommonMonitorImpl::isSuspended, alma::ACS::impl::CommonPropertyImpl::minTimerTrigger, oldValue, poolTimerTask, alma::ACS::impl::CommonMonitorImpl::property, and alma::ACS::impl::CommonMonitorImpl::startTime.
Referenced by resume(), and setValueTrigger().
| Object alma::ACS::impl::CommonComparableMonitorImpl::getValueTrigger | ( | BooleanHolder | enableHolder | ) | [inline] |
| enableHolder | holder to be set current 'enable' status of the monitor. |
null. References deltaValue, and enabled.
Referenced by alma::ACS::impl::MonitoruLongLongImpl::get_value_trigger(), alma::ACS::impl::MonitorstringSeqImpl::get_value_trigger(), alma::ACS::impl::MonitorstringImpl::get_value_trigger(), alma::ACS::impl::MonitorpatternImpl::get_value_trigger(), alma::ACS::impl::MonitorlongLongImpl::get_value_trigger(), alma::ACS::impl::MonitorlongImpl::get_value_trigger(), alma::ACS::impl::MonitorfloatImpl::get_value_trigger(), and alma::ACS::impl::MonitordoubleImpl::get_value_trigger().
| synchronized void alma::ACS::impl::CommonComparableMonitorImpl::resume | ( | ) | [inline] |
Reimplemented from alma::ACS::impl::CommonMonitorImpl.
References enable(), enabled, and alma::ACS::impl::CommonMonitorImpl::isSuspended.
| synchronized void alma::ACS::impl::CommonComparableMonitorImpl::setValueTrigger | ( | Object | delta, | |
| boolean | enable | |||
| ) | [inline] |
Enable on-delta-change monitoring, requires to operatie on CommonComparableProperty.
| delta | delta value, non-null. | |
| enable | switch to enable/disable |
References comparableProperty, deltaValue, disable(), enable(), alma::ACS::impl::CommonComparablePropertyImpl::noDelta(), and onEveryChange.
| synchronized void alma::ACS::impl::CommonComparableMonitorImpl::setValueTrigger | ( | boolean | enable | ) | [inline] |
Enable on-change monitoring.
| enable | switch to enable/disable |
Referenced by alma::ACS::impl::MonitoruLongLongImpl::set_value_trigger(), alma::ACS::impl::MonitorstringSeqImpl::set_value_trigger(), alma::ACS::impl::MonitorstringImpl::set_value_trigger(), alma::ACS::impl::MonitorpatternImpl::set_value_trigger(), alma::ACS::impl::MonitorlongLongImpl::set_value_trigger(), alma::ACS::impl::MonitorlongImpl::set_value_trigger(), alma::ACS::impl::MonitorfloatImpl::set_value_trigger(), and alma::ACS::impl::MonitordoubleImpl::set_value_trigger().
| synchronized void alma::ACS::impl::CommonComparableMonitorImpl::suspend | ( | ) | [inline] |
Reimplemented from alma::ACS::impl::CommonMonitorImpl.
References disable(), enabled, and alma::ACS::impl::CommonMonitorImpl::isSuspended.
| void alma::ACS::impl::CommonComparableMonitorImpl::valueChanged | ( | DataAccess | source, | |
| Object | oldValue, | |||
| Object | newValue | |||
| ) | [inline] |
Implements alma::ACS::jbaci::DataAccess::ValueChangeListener.
References comparableProperty, deltaValue, alma::ACS::impl::CommonMonitorImpl::dispatchAction, alma::ACS::jbaci::BACIDispatchAction::dispatchWorkingRequest(), alma::ACS::impl::CommonComparablePropertyImpl::lessThanDelta(), and onEveryChange.
Referenced by alma::ACS::impl::CommonComparableMonitorImpl::PoolTimer::run().
CommonComparablePropertyImpl alma::ACS::impl::CommonComparableMonitorImpl::comparableProperty [protected] |
Cache - casted property to CommonComparablePropertyImpl.
Referenced by CommonComparableMonitorImpl(), setValueTrigger(), and valueChanged().
final long alma::ACS::impl::CommonComparableMonitorImpl::DEFAULT_POOL_TIME = 1000 [static] |
Default pool time (if on-change notification are not supported) in ms.
Referenced by enable().
Object alma::ACS::impl::CommonComparableMonitorImpl::deltaValue [protected] |
Current required delta.
Referenced by getValueTrigger(), setValueTrigger(), and valueChanged().
boolean alma::ACS::impl::CommonComparableMonitorImpl::enabled [protected] |
Enabled status (might be true even if disabled (if suspended)) - user status.
Referenced by CommonComparableMonitorImpl(), disable(), enable(), getValueTrigger(), resume(), and suspend().
Object alma::ACS::impl::CommonComparableMonitorImpl::oldValue [protected] |
Last pooled (notified) value.
Referenced by enable(), and alma::ACS::impl::CommonComparableMonitorImpl::PoolTimer::run().
boolean alma::ACS::impl::CommonComparableMonitorImpl::onEveryChange [protected] |
Flag if notification has to be done on every value change. NOTE: this mode is explicitly used for non-comparable properties, i.e. properties is implementing CommonComparablePropertyImpl.
Referenced by setValueTrigger(), and valueChanged().
Object alma::ACS::impl::CommonComparableMonitorImpl::poolTimerTask [protected] |
1.6.2