Examples of executeAndClose()


Examples of de.desy.tine.client.TLink.executeAndClose()

          {
            if (rname.startsWith(h))
            {
              pname = h+".HIST";
              tl = new TLink(dname,pname,dout,din,TAccess.CA_READ);
              cc = tl.executeAndClose(timeout);
              break;
            }
          }
        }
        else
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

            {
              if (h.startsWith(rname))
              {
                pname = h+".HIST";
                tl = new TLink(dname,pname,dout,din,TAccess.CA_READ);
                cc = tl.executeAndClose(timeout);
                break;            
              }
            }
          }       
        }
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

      else
      {
        pname = new String(property) + ".ARCH";
      }
      tl = new TLink(dname,pname,dout,din,TAccess.CA_READ);
      cc = tl.executeAndClose(timeout);
    }
    return cc == 0 ? dout.getCompletionLength() : -cc;
 
  private static int getArchivedDataArray(String context,String server, String property, String device, int index, double start, double stop,TCompoundDataObject[] data)
  {
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

    THistoryRecordStruct[] hrs = new THistoryRecordStruct[1];
    THistorySpecification hsp = new THistorySpecification(pollInterval, archInterval, depthShort, depthLong, heartBeat, pTolerance, aTolerance, null);
    hrs[0] = new THistoryRecordStruct(device, property, datasiz, datafmt, hsp);
    String dev = "/"+context+"/"+server;
    TLink lnk = new TLink(dev,"ADDHISTORY",null,new TDataType(hrs),TAccess.CA_WRITE);
    return lnk.executeAndClose();
  }
  public static String[] getLocalHistoryProperties(String context,String server,String device)
  {
    int[] n = new int[1];
    String dev = "/"+context+"/"+server;
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

  public static String[] getLocalHistoryProperties(String context,String server,String device)
  {
    int[] n = new int[1];
    String dev = "/"+context+"/"+server;
    TLink lnk = new TLink(dev,"NHISTORIES",new TDataType(n),null,TAccess.CA_READ);
    if (lnk.executeAndClose() != 0) return null;
    if (n[0] == 0)
    { // could be a doocs server
      String eqm = TSrvEntry.getSrvEntryEqmName(context, server);
      if (eqm == null || eqm.compareTo(TSrvEntry.DOOCSEQM) != 0) return null;
      String[] prps = TQuery.getDeviceProperties(context, server, device);
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

      if (al.isEmpty()) return null;
      return al.toArray(new String[0]);
    }
    NAME64[] nlst = new NAME64[n[0]];
    lnk = new TLink(dev,"HISTORIES",new TDataType(nlst),null,TAccess.CA_READ);
    if (lnk.executeAndClose() != 0) return null;
    return NameToString.nameArrayToString(nlst);
  }
  public static THistoryRecordStruct getLocalHistoryRecord(
      String context,String server, String property, String device)
  {
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

    hrs[0] = new THistoryRecordStruct();
    String dev = "/"+context+"/"+server;
    TDataType dout = new TDataType(hrs);
    TDataType din = new TDataType(property.toCharArray());
    TLink lnk = new TLink(dev,"HISTORIES",dout,din,TAccess.CA_READ);
    int cc = lnk.executeAndClose();
    if (cc != 0) return null;
    if (dout.getCompletionLength() < 1) return null;
    return hrs[0];
  }
  /**
 
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

    NAME64[] nlist = null;   
    double[] ststp = new double[]{start,stop};
    String dname = "/"+context+"/HISTORY";
    nlist = new NAME64[100];
    TLink tl = new TLink(dname,"RECORDS.WITH.CMTS",new TDataType(nlist),new TDataType(ststp),TAccess.CA_READ);
    int cc = tl.executeAndClose(800);
    if (cc != 0)
    { // TODO: throw an exception here
      return null;
    }
    return NameToString.nameArrayToString(nlist,tl.getOutputDataObject().getCompletionLength());
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

    tagsString = isCentral ? "TAGS" : "HISTORIES";
    ntagsString = "N" + tagsString;
   
    String dname = "/" + context + "/" + server;
    TLink tl = new TLink(dname,ntagsString,new TDataType(nprps),dtsubs,TAccess.CA_READ);
    int cc = tl.executeAndClose(800);
    if (cc != 0)
    { // TODO: throw an exception here
      return null;
    }
    if (nprps[0] > 0)
View Full Code Here

Examples of de.desy.tine.client.TLink.executeAndClose()

    }
    if (nprps[0] > 0)
    { // get OFFICIAL list of archived elements
      nlist = new NAME64[nprps[0]];
      tl = new TLink(dname,tagsString, new TDataType(nlist),dtsubs,TAccess.CA_READ);
      cc = tl.executeAndClose(800);
      if (cc != 0)
      { // TODO: throw an exception here
        return null;
      }
    }
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.