gov.sns.jca
Class JcaMonitor
java.lang.Object
|
+--gov.sns.ca.Monitor
|
+--gov.sns.jca.JcaMonitor
- All Implemented Interfaces:
- java.util.EventListener, gov.aps.jca.event.MonitorListener
- public abstract class JcaMonitor
- extends Monitor
- implements gov.aps.jca.event.MonitorListener
|
Constructor Summary |
protected |
JcaMonitor(Channel chan,
int type,
int intMaskEvent)
Creates new Monitor |
|
Method Summary |
protected void |
begin()
Start the channel monitoring |
void |
clear()
Stop the monitoring of PV |
abstract void |
monitorChanged(gov.aps.jca.event.MonitorEvent event)
Derived monitor objects must override this event hook. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_type
protected int _type
_jcaChannel
protected gov.aps.jca.Channel _jcaChannel
_jcaMonitor
protected gov.aps.jca.Monitor _jcaMonitor
JcaMonitor
protected JcaMonitor(Channel chan,
int type,
int intMaskEvent)
throws ConnectionException
- Creates new Monitor
- Parameters:
chan - Channel object to monitortype - The type of data being monitored
monitorChanged
public abstract void monitorChanged(gov.aps.jca.event.MonitorEvent event)
- Derived monitor objects must override this event hook. Derived class
will catch the jca.MonitorEvent, convert to appropriate data type, and
forward to the appropriate data sink interface (IEventSinkXxxXxx).
- Specified by:
monitorChanged in interface gov.aps.jca.event.MonitorListener
clear
public void clear()
- Stop the monitoring of PV
- Specified by:
clear in class Monitor
begin
protected void begin()
throws MonitorException
- Start the channel monitoring
- Specified by:
begin in class Monitor
- Throws:
MonitorException - unable to setup the channel access monitor