public abstract class Monitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALARM
The monitor is triggered when the PV alarm state change.
|
static int |
LOG
The monitor is triggered when the PV log value change.
|
protected boolean |
m_bolMonitoring |
protected int |
m_intMaskEvent |
protected Channel |
m_xalChan |
static int |
VALUE
The monitor is triggered when the PV value change.
|
Modifier | Constructor and Description |
---|---|
protected |
Monitor(Channel chan,
int intMaskEvent)
Creates new Monitor
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
begin()
Start the channel monitoring
|
abstract void |
clear()
Stop the monitoring of PV
|
protected void |
finalize()
Make sure monitoring is shut down before destruction
|
Channel |
getChannel()
Return the associated Channel object
|
protected void |
post(IEventSinkValStatus listener,
StatusAdaptor adaptor)
Post the value-status record to the listener.
|
protected void |
post(IEventSinkValTime listener,
TimeAdaptor adaptor)
Post the value-status-timestamp record to the listener.
|
protected void |
post(IEventSinkValue listener,
ValueAdaptor adaptor)
Post the value record to the listener.
|
public static final int VALUE
public static final int LOG
public static final int ALARM
protected boolean m_bolMonitoring
protected int m_intMaskEvent
protected Channel m_xalChan
protected Monitor(Channel chan, int intMaskEvent) throws ConnectionException
chan
- Channel object to monitorintMaskEvent
- code specifying when monitor event is firedConnectionException
- Channel is not connectedpublic abstract void clear()
public Channel getChannel()
protected abstract void begin() throws MonitorException
MonitorException
- unable to setup the channel access monitorprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- upon failureprotected final void post(IEventSinkValue listener, ValueAdaptor adaptor)
listener
- The object receiving the monitor record.adaptor
- The adaptor to the internal data record.protected final void post(IEventSinkValStatus listener, StatusAdaptor adaptor)
listener
- The object receiving the monitor record.adaptor
- The adaptor to the internal data record.protected final void post(IEventSinkValTime listener, TimeAdaptor adaptor)
listener
- The object receiving the monitor record.adaptor
- The adaptor to the internal data record.