Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Package Functions

alma.ACS.impl.CommonPropertyImpl Class Reference

Inheritance diagram for alma.ACS.impl.CommonPropertyImpl:
alma.ACS.impl.TypelessPropertyImpl alma.ACS.jbaci.CallbackDispatcher alma.ACS.impl.PropertyImpl alma.ACS.impl.CommonComparablePropertyImpl alma.ACS.impl.ROCommonPropertyImpl alma.ACS.impl.RWCommonPropertyImpl alma.ACS.impl.ROCommonComparablePropertyImpl alma.ACS.impl.RWCommonComparablePropertyImpl alma.ACS.impl.CommonROEnumPropertyImpl alma.ACS.impl.ROBoolImpl alma.ACS.impl.ROpatternImpl alma.ACS.impl.ROstringImpl alma.ACS.impl.ROstringSeqImpl alma.ACS.impl.RWBoolImpl alma.ACS.impl.RWstringImpl

List of all members.

Classes

class  GetAsyncAction
class  SetAsyncAction

Public Member Functions

 CommonPropertyImpl (Class propertyType, String name, CharacteristicComponentImpl parentComponent) throws PropertyInitializationFailed
 CommonPropertyImpl (Class propertyType, String name, CharacteristicComponentImpl parentComponent, DataAccess dataAccess) throws PropertyInitializationFailed
void readCharacteristics () throws PropertyInitializationFailed
DataAccess getDataAccess ()
void destroy ()
long default_timer_trigger ()
long min_timer_trigger ()
abstract Object readPropertyTypeCharacteristic (String name) throws NoSuchCharacteristic
Monitor registerNonCorbaMonitor (MonitorOperations monitorImpl)
void unregisterMonitor (MonitorOperations monitorImpl)
Object mnemonicValue (long keyTime, CompletionHolder completionHolder)

Protected Member Functions

void addValueToHistory (Object value, long timestamp)
Object getHistory (int lastValues, TimeSeqHolder timeSeqHolder)
Object getSync (CompletionHolder completionHolder) throws AcsJException
void getAsync (Callback callback, CBDescIn desc)
Completion setSync (Object value) throws AcsJException
void setAsync (Object value, CBvoid callback, CBDescIn desc)
void setNonblocking (Object value)

Protected Attributes

long defaultTimerTrigger
long minTimerTrigger
Object defaultValue
DataAccess dataAccess
Class propertyType
int historySize
int historyPosition
boolean historyTurnaround
Object historyValue
long[] historyTime
Map monitors
long mnemonicReadPending = 0
Object mnemonicValueRetrival = new Object()
ReadWriteLock mnemonicDataLock
long mnemonicTime
Object mnemonicValue
Completion mnemonicCompletion

Package Functions

public< T extends Servant
&OffShootOperations > Monitor 
registerMonitor (MonitorOperations monitorImpl, T monitorServant)

Detailed Description

Implementation of common property, i.e. type of java.lang.Object.

Author:
Matej Sekoranja
Version:
$id$

Constructor & Destructor Documentation

alma.ACS.impl.CommonPropertyImpl.CommonPropertyImpl ( Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent 
) throws PropertyInitializationFailed

Constructor with memory data access.

Parameters:
propertyType property Class type, non-null.
name property name, non-null.
parentComponent parent component, non-null.
Exceptions:
PropertyInitializationFailed exception is thrown on failure

References alma.ACS.impl.PropertyImpl.parentComponent, and alma.ACS.impl.CommonPropertyImpl.propertyType.


Member Function Documentation

void alma.ACS.impl.CommonPropertyImpl.addValueToHistory ( Object  value,
long  timestamp 
) [protected]
long alma.ACS.impl.CommonPropertyImpl.default_timer_trigger (  ) 
See also:
alma.ACS.P<type>Operations.default_timer_trigger()

References alma.ACS.impl.CommonPropertyImpl.defaultTimerTrigger.

Referenced by alma.ACS.impl.CommonMonitorImpl.initialize().

void alma.ACS.impl.CommonPropertyImpl.destroy (  ) 
See also:
alma.ACS.PropertyImpl.destroy()

References alma.ACS.impl.CommonPropertyImpl.monitors.

DataAccess alma.ACS.impl.CommonPropertyImpl.getDataAccess (  ) 
Object alma.ACS.impl.CommonPropertyImpl.getHistory ( int  lastValues,
TimeSeqHolder  timeSeqHolder 
) [protected]
Object alma.ACS.impl.CommonPropertyImpl.getSync ( CompletionHolder  completionHolder  )  throws AcsJException [protected]
long alma.ACS.impl.CommonPropertyImpl.min_timer_trigger (  ) 
See also:
alma.ACS.P<type>Operations.min_timer_trigger()

References alma.ACS.impl.CommonPropertyImpl.minTimerTrigger.

Referenced by alma.ACS.impl.CommonMonitorImpl.setTimeTrigger().

Object alma.ACS.impl.CommonPropertyImpl.mnemonicValue ( long  keyTime,
CompletionHolder  completionHolder 
)

Mnemonic value retrival. If keyTime == mnemonicTime cached mnemonic value is returned.

Parameters:
keyTime time (java) of mnemonic request.
completionHolder completion holder that will be given completion. NOTE: completion is passsed by reference, so do not change its value, copy its value before and do it on a local copy
Returns:
current property value.
See also:
getSync

References alma.ACS.impl.CommonPropertyImpl.defaultValue, alma.ACS.impl.CommonPropertyImpl.getSync(), alma.ACS.impl.CommonPropertyImpl.mnemonicCompletion, alma.ACS.impl.CommonPropertyImpl.mnemonicDataLock, alma.ACS.impl.CommonPropertyImpl.mnemonicReadPending, alma.ACS.impl.CommonPropertyImpl.mnemonicTime, alma.ACS.impl.CommonPropertyImpl.mnemonicValue, and alma.ACS.impl.CommonPropertyImpl.mnemonicValueRetrival.

abstract Object alma.ACS.impl.CommonPropertyImpl.readPropertyTypeCharacteristic ( String  name  )  throws NoSuchCharacteristic [pure virtual]
public<T extends Servant & OffShootOperations> Monitor alma.ACS.impl.CommonPropertyImpl.registerMonitor ( MonitorOperations  monitorImpl,
T  monitorServant 
) [package]

Register monitor on this property (and optionally CORBA activate). Registration is needed for monitor destruction on property destruction.

Parameters:
monitorImpl monitor implementation (e.g. class implementing MonitorOperations interface).
monitorServant monitor CORBA servant (e.g. Monitor<type>POATie class). If null monitor will be treated as non-CORBA monitor and no CORBA activation will be done. (Not sure how to correctly pass a null, now that the method uses generics. See registerNonCorbaMonitor(MonitorOperations) for an alternative call.)
Returns:
CORBA activated monitor reference, null if monitorServant == null.

References alma.acs.container.ContainerServices.activateOffShoot(), alma.ACS.impl.CharacteristicComponentImpl.getComponentContainerServices(), alma.ACS.impl.CommonPropertyImpl.monitors, and alma.ACS.impl.PropertyImpl.parentComponent.

Referenced by alma.ACS.impl.RWuLongLongImpl.create_postponed_monitor(), alma.ACS.impl.RWstringImpl.create_postponed_monitor(), alma.ACS.impl.RWpatternImpl.create_postponed_monitor(), alma.ACS.impl.RWOnOffSwitchImpl.create_postponed_monitor(), alma.ACS.impl.RWlongSeqImpl.create_postponed_monitor(), alma.ACS.impl.RWlongLongImpl.create_postponed_monitor(), alma.ACS.impl.RWlongImpl.create_postponed_monitor(), alma.ACS.impl.RWfloatSeqImpl.create_postponed_monitor(), alma.ACS.impl.RWfloatImpl.create_postponed_monitor(), alma.ACS.impl.RWdoubleSeqImpl.create_postponed_monitor(), alma.ACS.impl.RWdoubleImpl.create_postponed_monitor(), alma.ACS.impl.RWBoolImpl.create_postponed_monitor(), alma.ACS.impl.ROuLongLongImpl.create_postponed_monitor(), alma.ACS.impl.ROstringSeqImpl.create_postponed_monitor(), alma.ACS.impl.ROstringImpl.create_postponed_monitor(), alma.ACS.impl.ROpatternImpl.create_postponed_monitor(), alma.ACS.impl.ROOnOffSwitchImpl.create_postponed_monitor(), alma.ACS.impl.ROlongSeqImpl.create_postponed_monitor(), alma.ACS.impl.ROlongLongImpl.create_postponed_monitor(), alma.ACS.impl.ROlongImpl.create_postponed_monitor(), alma.ACS.impl.ROfloatSeqImpl.create_postponed_monitor(), alma.ACS.impl.ROfloatImpl.create_postponed_monitor(), alma.ACS.impl.ROdoubleSeqImpl.create_postponed_monitor(), alma.ACS.impl.ROdoubleImpl.create_postponed_monitor(), alma.ACS.impl.ROBoolImpl.create_postponed_monitor(), and alma.ACS.impl.CommonROEnumPropertyImpl.create_postponed_monitor().

Monitor alma.ACS.impl.CommonPropertyImpl.registerNonCorbaMonitor ( MonitorOperations  monitorImpl  ) 

Register monitor on this property, without corba activation. Registration is needed for monitor destruction on property destruction.

Note that this method was broken out from registerMonitor(MonitorOperations, Servant) to avoid passing null as the second argument of that method, which was in conflict with the generics definition, which in turn was added there to match the one of ContainerServices.activateOffshoot.

Parameters:
monitorImpl monitor implementation (e.g. class implementing MonitorOperations interface).
Returns:
CORBA activated monitor reference, null if monitorServant == null.

References alma.ACS.impl.CommonPropertyImpl.monitors.

Referenced by alma.ACS.impl.CommonPropertyImpl.CommonPropertyImpl().

void alma.ACS.impl.CommonPropertyImpl.unregisterMonitor ( MonitorOperations  monitorImpl  ) 

Unregister monitor on this property (and optionally CORBA deactivate). Should be called by MonitorOperations.destroy() method.

References alma.acs.container.ContainerServicesBase.deactivateOffShoot(), alma.ACS.impl.CharacteristicComponentImpl.getComponentContainerServices(), alma.ACS.impl.CommonPropertyImpl.monitors, and alma.ACS.impl.PropertyImpl.parentComponent.


Member Data Documentation

Read-only data access.

Referenced by alma.ACS.impl.CommonComparablePropertyImpl.CommonComparablePropertyImpl(), alma.ACS.impl.CommonPropertyImpl.CommonPropertyImpl(), alma.ACS.impl.CommonROEnumPropertyImpl.CommonROEnumPropertyImpl(), alma.ACS.impl.CommonRWEnumPropertyImpl.CommonRWEnumPropertyImpl(), alma.ACS.impl.CommonRWEnumPropertyImpl.createEnumProperty(), alma.ACS.impl.CommonROEnumPropertyImpl.createEnumProperty(), alma.ACS.impl.CommonPropertyImpl.getDataAccess(), alma.ACS.impl.CommonPropertyImpl.getSync(), alma.ACS.impl.ROBoolImpl.ROBoolImpl(), alma.ACS.impl.ROCommonComparablePropertyImpl.ROCommonComparablePropertyImpl(), alma.ACS.impl.ROCommonPropertyImpl.ROCommonPropertyImpl(), alma.ACS.impl.ROdoubleImpl.ROdoubleImpl(), alma.ACS.impl.ROdoubleSeqImpl.ROdoubleSeqImpl(), alma.ACS.impl.ROfloatImpl.ROfloatImpl(), alma.ACS.impl.ROfloatSeqImpl.ROfloatSeqImpl(), alma.ACS.impl.ROlongImpl.ROlongImpl(), alma.ACS.impl.ROlongLongImpl.ROlongLongImpl(), alma.ACS.impl.ROlongSeqImpl.ROlongSeqImpl(), alma.ACS.impl.ROOnOffSwitchImpl.ROOnOffSwitchImpl(), alma.ACS.impl.ROpatternImpl.ROpatternImpl(), alma.ACS.impl.ROstringImpl.ROstringImpl(), alma.ACS.impl.ROstringSeqImpl.ROstringSeqImpl(), alma.ACS.impl.ROuLongLongImpl.ROuLongLongImpl(), alma.ACS.impl.RWBoolImpl.RWBoolImpl(), alma.ACS.impl.RWCommonComparablePropertyImpl.RWCommonComparablePropertyImpl(), alma.ACS.impl.RWCommonPropertyImpl.RWCommonPropertyImpl(), alma.ACS.impl.RWdoubleImpl.RWdoubleImpl(), alma.ACS.impl.RWdoubleSeqImpl.RWdoubleSeqImpl(), alma.ACS.impl.RWfloatImpl.RWfloatImpl(), alma.ACS.impl.RWfloatSeqImpl.RWfloatSeqImpl(), alma.ACS.impl.RWlongImpl.RWlongImpl(), alma.ACS.impl.RWlongLongImpl.RWlongLongImpl(), alma.ACS.impl.RWlongSeqImpl.RWlongSeqImpl(), alma.ACS.impl.RWOnOffSwitchImpl.RWOnOffSwitchImpl(), alma.ACS.impl.RWpatternImpl.RWpatternImpl(), alma.ACS.impl.RWstringImpl.RWstringImpl(), alma.ACS.impl.RWuLongLongImpl.RWuLongLongImpl(), and alma.ACS.impl.CommonPropertyImpl.setSync().

Completion of latest mnemonic value retrival.

Referenced by alma.ACS.impl.CommonPropertyImpl.mnemonicValue().

Initial value:
 
                new ReentrantReadWriteLock()

Mnemonic variables lock.

Referenced by alma.ACS.impl.CommonPropertyImpl.mnemonicValue().

Mnemonic read time key of (last) pending read.

Referenced by alma.ACS.impl.CommonPropertyImpl.mnemonicValue().

Time "key" (Java) if when last mnemonic retrival.

Referenced by alma.ACS.impl.CommonPropertyImpl.mnemonicValue().

Value of latest mnemonic value retrival.

Referenced by alma.ACS.impl.CommonPropertyImpl.mnemonicValue().

Object alma.ACS.impl.CommonPropertyImpl.mnemonicValueRetrival = new Object() [protected]

Mnemonic read lock (dummy object).

Referenced by alma.ACS.impl.CommonPropertyImpl.mnemonicValue().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties