Package xal.ca
Class Monitor
java.lang.Object
xal.ca.Monitor
- Direct Known Subclasses:
Epics7Monitor
Monitor
- Version:
- 1.0
- Author:
- Christopher K. Allen, Tom Pelaia
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The monitor is triggered when the PV alarm state change.protected int
event mask for firing monitorstatic final int
The monitor is triggered when the PV log value change.static final int
The monitor is triggered when the PV value change.protected Channel
Channel to monitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
begin()
Start the channel monitoringabstract void
clear()
Stop the monitoring of PVprotected void
finalize()
Make sure monitoring is shut down before destructionReturn the associated Channel objectprotected final void
postStatusRecord
(IEventSinkValStatus listener, StatusAdaptor adaptor) Post the value-status record to the listener.protected final void
postTimeRecord
(IEventSinkValTime listener, TimeAdaptor adaptor) Post the value-status-timestamp record to the listener.protected final void
postValueRecord
(IEventSinkValue listener, ValueAdaptor adaptor) Post the value record to the listener.
-
Field Details
-
VALUE
public static final int VALUEThe monitor is triggered when the PV value change.- See Also:
-
LOG
public static final int LOGThe monitor is triggered when the PV log value change.- See Also:
-
ALARM
public static final int ALARMThe monitor is triggered when the PV alarm state change.- See Also:
-
intMaskEvent
protected int intMaskEventevent mask for firing monitor -
xalChan
Channel to monitor
-
-
Constructor Details
-
Monitor
Creates new Monitor- Parameters:
chan
- Channel object to monitorintMaskEvent
- code specifying when monitor event is fired- Throws:
ConnectionException
- Channel is not connected
-
-
Method Details
-
clear
public abstract void clear()Stop the monitoring of PV -
getChannel
Return the associated Channel object- Returns:
- channel being monitored
-
begin
Start the channel monitoring- Throws:
MonitorException
- unable to setup the channel access monitor
-
finalize
Make sure monitoring is shut down before destruction -
postValueRecord
Post the value record to the listener.- Parameters:
listener
- The object receiving the monitor record.adaptor
- The adaptor to the internal data record.
-
postStatusRecord
Post the value-status record to the listener.- Parameters:
listener
- The object receiving the monitor record.adaptor
- The adaptor to the internal data record.
-
postTimeRecord
Post the value-status-timestamp record to the listener.- Parameters:
listener
- The object receiving the monitor record.adaptor
- The adaptor to the internal data record.
-