Examples of TAlarm


Examples of de.desy.tine.server.alarms.TAlarm

    if (offline)
    {
      if (TLinkFactory.debugLevel > 2) DbgLog.log("setAlarm","alarm not set: "+devName+" is off line");
      return null;
    }
    TAlarm alm = getAlarmFromList(code,data,flags,null);
    if (alm.isTerminated()) DbgLog.log("setAlarm",alm.getTag() + " : set alarm as terminated");
    return alm;
  }
View Full Code Here

Examples of de.desy.tine.server.alarms.TAlarm

   *
   * @param code Is the alarm code specifying which alarm to clear
   */
  public void clearAlarm(int code)
  {
    TAlarm alm = null;
    synchronized (devAlarmList)
    {
      int lstalm = 0;
      Iterator<TAlarm> li = devAlarmList.iterator();
      while (li.hasNext())
      {
        alm = (TAlarm)li.next();
        if ((alm.getDescriptor() & TAlarmDescriptor.TERMINATE) != 0) continue;
        lstalm = alm.getCode();
        if (code == TErrorList.warn_disk_space || code == TErrorList.low_disk_space)
        { // mask off the high bits
          lstalm &= 0xff;
        }
        if (lstalm != code) continue;
        alm.clear();
      }
    }
  }
View Full Code Here

Examples of de.desy.tine.server.alarms.TAlarm

      }
    }
  }
  public void clearAlarm(int code,TAlarmWatchEntry awe)
  {
    TAlarm alm = null;
    synchronized (devAlarmList)
    {
      Iterator<TAlarm> li = devAlarmList.iterator();
      while (li.hasNext())
      {
        alm = (TAlarm)li.next();
        if ((alm.getDescriptor() & TAlarmDescriptor.TERMINATE) != 0) continue;
        if (alm.getCode() != code && alm.getWatchEntry() != awe) continue;
        alm.clear();
      }
    }
  }
View Full Code Here

Examples of de.desy.tine.server.alarms.TAlarm

  {
    synchronized (devAlarmList)
    {
      boolean found = false;
      Iterator<TAlarm> li = devAlarmList.iterator();
      TAlarm alm = null;
      while (li.hasNext())
      {
        alm = (TAlarm)li.next();
        if ((alm.getDescriptor() & TAlarmDescriptor.TERMINATE) != 0) continue;
        if (alm.getCode() != code) continue;
        alm.setDescriptor((byte)TAlarmDescriptor.TERMINATE);
        alm.clear();
        found = true;
      }
      if (!found)
      {
        if (TEquipmentModuleFactory.getDebugLevel() > 2)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.