public class CAJMonitor
extends gov.aps.jca.Monitor
implements gov.aps.jca.event.MonitorListener
Monitor.| Modifier and Type | Field and Description |
|---|---|
protected CAJChannel |
channel
Monitored channel.
|
protected boolean |
cleared
Cleared flag.
|
protected CAJContext |
context
Context.
|
protected int |
count
Number of elements (size of array) of monitored value type.
|
protected EventAddRequest |
eventAddRequest
Event add request.
|
protected ArrayList |
listeners
Monitor listeners.
|
protected int |
mask
Monitor mask.
|
protected int |
subsid
Subscription ID.
|
protected gov.aps.jca.dbr.DBRType |
type
Monitored value type.
|
| Constructor and Description |
|---|
CAJMonitor(CAJContext context,
gov.aps.jca.dbr.DBRType type,
int count,
CAJChannel channel,
gov.aps.jca.event.MonitorListener listener,
int mask)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMonitorListener(gov.aps.jca.event.MonitorListener l) |
void |
clear() |
gov.aps.jca.Channel |
getChannel() |
gov.aps.jca.Context |
getContext() |
int |
getCount() |
int |
getMask() |
gov.aps.jca.event.MonitorListener |
getMonitorListener() |
gov.aps.jca.event.MonitorListener[] |
getMonitorListeners() |
int |
getSID()
Get this monitor subscription ID.
|
gov.aps.jca.dbr.DBRType |
getType() |
boolean |
isCleared()
Get cleared flag.
|
void |
monitorChanged(gov.aps.jca.event.MonitorEvent ev) |
void |
removeMonitorListener(gov.aps.jca.event.MonitorListener l) |
protected CAJContext context
protected gov.aps.jca.dbr.DBRType type
protected int count
protected CAJChannel channel
protected EventAddRequest eventAddRequest
protected int mask
protected ArrayList listeners
protected int subsid
protected volatile boolean cleared
public CAJMonitor(CAJContext context, gov.aps.jca.dbr.DBRType type, int count, CAJChannel channel, gov.aps.jca.event.MonitorListener listener, int mask) throws gov.aps.jca.CAException
context - type - count - channel - listener - mask - gov.aps.jca.CAExceptionpublic void clear()
throws gov.aps.jca.CAException
clear in class gov.aps.jca.Monitorgov.aps.jca.CAExceptionMonitor.clear()public gov.aps.jca.Context getContext()
getContext in class gov.aps.jca.MonitorMonitor.getContext()public gov.aps.jca.Channel getChannel()
getChannel in class gov.aps.jca.MonitorMonitor.getChannel()public gov.aps.jca.dbr.DBRType getType()
getType in class gov.aps.jca.MonitorMonitor.getType()public int getCount()
getCount in class gov.aps.jca.MonitorMonitor.getCount()public int getMask()
getMask in class gov.aps.jca.MonitorMonitor.getMask()public gov.aps.jca.event.MonitorListener getMonitorListener()
getMonitorListener in class gov.aps.jca.MonitorMonitor.getMonitorListener()public void addMonitorListener(gov.aps.jca.event.MonitorListener l)
addMonitorListener in class gov.aps.jca.MonitorMonitor.addMonitorListener(gov.aps.jca.event.MonitorListener)public void removeMonitorListener(gov.aps.jca.event.MonitorListener l)
removeMonitorListener in class gov.aps.jca.MonitorMonitor.removeMonitorListener(gov.aps.jca.event.MonitorListener)public gov.aps.jca.event.MonitorListener[] getMonitorListeners()
getMonitorListeners in class gov.aps.jca.MonitorMonitor.getMonitorListeners()public void monitorChanged(gov.aps.jca.event.MonitorEvent ev)
monitorChanged in interface gov.aps.jca.event.MonitorListenerMonitorListener.monitorChanged(gov.aps.jca.event.MonitorEvent)public int getSID()
public boolean isCleared()
Copyright © 2004-2013 Cosylab. All Rights Reserved.