Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::ACS::impl::CommonComparableMonitorImpl Class Reference

Inheritance diagram for alma::ACS::impl::CommonComparableMonitorImpl:

Inheritance graph
[legend]
Collaboration diagram for alma::ACS::impl::CommonComparableMonitorImpl:

Collaboration graph
[legend]
List of all members.

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

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

Detailed Description

Implementation of common compareable (notifies on change) monitor.
Author:
Matej Sekoranja
Version:
$id$


Constructor & Destructor Documentation

alma::ACS::impl::CommonComparableMonitorImpl::CommonComparableMonitorImpl CommonPropertyImpl  property,
Callback  callback,
CBDescIn  descIn
[inline]
 

Constructor with immediate monitor notification (synchronized monitors supported).

Parameters:
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.

Parameters:
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).


Member Function Documentation

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::disable  )  [inline, protected]
 

Disable on-change monitoring/pooling.

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::enable  )  [inline, protected]
 

Enable on-change monitoring/pooling.

Object alma::ACS::impl::CommonComparableMonitorImpl::getValueTrigger BooleanHolder  enableHolder  )  [inline]
 

Parameters:
enableHolder holder to be set current 'enable' status of the monitor.
Returns:
deltaValue current delta value, can be null.
See also:
alma.ACS.Monitor<type>Operations#get_value_trigger(org.omg.CORBA.<type>Holder, org.omg.CORBA.BooleanHolder)

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::resume  )  [inline]
 

See also:
alma.ACS.SubscriptionOperations::resume()

Reimplemented from alma::ACS::impl::CommonMonitorImpl.

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::setValueTrigger Object  delta,
boolean  enable
[inline]
 

Enable on-delta-change monitoring, requires to operatie on CommonComparableProperty.

Parameters:
delta delta value, non-null.
enable switch to enable/disable
See also:
alma.ACS.Monitor<type>Operations#set_value_trigger(<type>, boolean)

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::setValueTrigger boolean  enable  )  [inline]
 

Enable on-change monitoring.

Parameters:
enable switch to enable/disable
See also:
alma.ACS.Monitor<type>Operations#set_value_trigger(<type>, boolean)

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::suspend  )  [inline]
 

See also:
alma.ACS.SubscriptionOperations::suspend()

Reimplemented from alma::ACS::impl::CommonMonitorImpl.

void alma::ACS::impl::CommonComparableMonitorImpl::valueChanged DataAccess  source,
Object  oldValue,
Object  newValue
[inline]
 

See also:
alma.ACS.jbaci.DataAccess.ValueChangeListener::valueChanged(alma.ACS.jbaci.DataAccess, java.lang.Object, java.lang.Object)


Member Data Documentation

CommonComparablePropertyImpl alma::ACS::impl::CommonComparableMonitorImpl::comparableProperty [protected]
 

Cache - casted property to CommonComparablePropertyImpl.

final long alma::ACS::impl::CommonComparableMonitorImpl::DEFAULT_POOL_TIME = 1000 [static]
 

Default pool time (if on-change notification are not supported) in ms.

Object alma::ACS::impl::CommonComparableMonitorImpl::deltaValue [protected]
 

Current required delta.

boolean alma::ACS::impl::CommonComparableMonitorImpl::enabled [protected]
 

Enabled status (might be true even if disabled (if suspended)) - user status.

Object alma::ACS::impl::CommonComparableMonitorImpl::oldValue [protected]
 

Last pooled (notified) value.

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.

Object alma::ACS::impl::CommonComparableMonitorImpl::poolTimerTask [protected]
 

Monitor timer task.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:06 2009 for ACS Java API by doxygen 1.3.8