Beispiel #1
0
 public JNIMonitor(
     JNIContext context, DBRType type, int count, JNIChannel ch, MonitorListener l, int mask) {
   _jnicontext = context;
   _type = type;
   _count = count;
   _channel = ch;
   if (l != null) _monitorListenerList.add(l);
   _mask = mask;
   _callback = new JNIMonitorCallback(ch, context.getEventDispatcher(), _monitorListenerList);
 }
Beispiel #2
0
 public void removeMonitorListener(MonitorListener l) {
   if (l == null) return;
   _monitorListenerList.remove(l);
 }
Beispiel #3
0
 public void addMonitorListener(MonitorListener l) {
   if (l == null) return;
   _monitorListenerList.add(l);
 }
Beispiel #4
0
 /**
  * @return the first MonitorListener added.
  * @deprecated
  */
 public MonitorListener getMonitorListener() {
   assertValidity();
   return (MonitorListener) _monitorListenerList.get(0);
 }
Beispiel #5
0
 public MonitorListener[] getMonitorListeners() {
   return (MonitorListener[]) _monitorListenerList.toArray(new MonitorListener[0]);
 }