public class CAJMonitor extends Monitor implements 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 DBRType |
type
Monitored value type.
|
| Constructor and Description |
|---|
CAJMonitor(CAJContext context,
DBRType type,
int count,
CAJChannel channel,
MonitorListener listener,
int mask)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMonitorListener(MonitorListener l) |
void |
clear() |
Channel |
getChannel() |
Context |
getContext() |
int |
getCount() |
int |
getMask() |
MonitorListener |
getMonitorListener() |
MonitorListener[] |
getMonitorListeners() |
int |
getSID()
Get this monitor subscription ID.
|
DBRType |
getType() |
boolean |
isCleared()
Get cleared flag.
|
void |
monitorChanged(MonitorEvent ev) |
void |
removeMonitorListener(MonitorListener l) |
isMonitoringAlarm, isMonitoringLog, isMonitoringProperty, isMonitoringValueprotected CAJContext context
protected 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, DBRType type, int count, CAJChannel channel, MonitorListener listener, int mask) throws CAException
context - CAJContexttype - DBRTypecount - countchannel - CAJChannellistener - MonitorListenermask - maskCAException - JCA Exceptionpublic void clear()
throws CAException
clear in class MonitorCAExceptionMonitor.clear()public Context getContext()
getContext in class MonitorMonitor.getContext()public Channel getChannel()
getChannel in class MonitorMonitor.getChannel()public DBRType getType()
getType in class MonitorMonitor.getType()public int getCount()
getCount in class MonitorMonitor.getCount()public int getMask()
getMask in class MonitorMonitor.getMask()public MonitorListener getMonitorListener()
getMonitorListener in class MonitorMonitor.getMonitorListener()public void addMonitorListener(MonitorListener l)
addMonitorListener in class MonitorMonitor.addMonitorListener(gov.aps.jca.event.MonitorListener)public void removeMonitorListener(MonitorListener l)
removeMonitorListener in class MonitorMonitor.removeMonitorListener(gov.aps.jca.event.MonitorListener)public MonitorListener[] getMonitorListeners()
getMonitorListeners in class MonitorMonitor.getMonitorListeners()public void monitorChanged(MonitorEvent ev)
monitorChanged in interface MonitorListenerMonitorListener.monitorChanged(gov.aps.jca.event.MonitorEvent)public int getSID()
public boolean isCleared()
Copyright © 2004-2020 EPICS. All Rights Reserved.