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


Field Summary
protected  gov.aps.jca.Channel _jcaChannel
           
protected  gov.aps.jca.Monitor _jcaMonitor
           
protected  int _type
           
 
Fields inherited from class gov.sns.ca.Monitor
ALARM, LOG, m_bolMonitoring, m_intMaskEvent, m_xalChan, VALUE
 
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 gov.sns.ca.Monitor
finalize, getChannel, post, post, post
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_type

protected int _type

_jcaChannel

protected gov.aps.jca.Channel _jcaChannel

_jcaMonitor

protected gov.aps.jca.Monitor _jcaMonitor
Constructor Detail

JcaMonitor

protected JcaMonitor(Channel chan,
                     int type,
                     int intMaskEvent)
              throws ConnectionException
Creates new Monitor

Parameters:
chan - Channel object to monitor
type - The type of data being monitored
Method Detail

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