Package de.desy.tine.client

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


    if (isCentral)
    { // take care of other contingencies at the Central Archive Server
      NAME64[] plist = new NAME64[nlist.length*2];
      TDataType tdt = new TDataType(plist);
      tl = new TLink(dname,"PROPERTIES",tdt,null,TAccess.CA_READ);
      if (tl.executeAndClose(800) == 0)
      {
        fillinHstPrpVectors(plist,tdt.getCompletionLength(),nv,ev,sav,dv);
      }
      tl = new TLink(dname,"SRVALIASLIST",tdt,null,TAccess.CA_READ);
      if (tl.executeAndClose(800) == 0)
View Full Code Here


      if (tl.executeAndClose(800) == 0)
      {
        fillinHstPrpVectors(plist,tdt.getCompletionLength(),nv,ev,sav,dv);
      }
      tl = new TLink(dname,"SRVALIASLIST",tdt,null,TAccess.CA_READ);
      if (tl.executeAndClose(800) == 0)
      {
        fillinHstPrpVectors(plist,tdt.getCompletionLength(),nv,ev,sav,dv);
      }     
    }   
    HstPrp hp;
View Full Code Here

    NAME64[] nlist = new NAME64[1000];
    TDataType dtprps = new TDataType(nlist);
   
    String dname = "/" + context + "/" + server;
    TLink tl = new TLink(dname,"*.SRCADDR",dtprps,null,TAccess.CA_READ);
    int cc = tl.executeAndClose(800);
    if (cc != 0)
    { // TODO: throw an exception here
      return null;
    }
    int listsize = dtprps.getCompletionLength();
View Full Code Here

    if (group != null) prp += "." + group;
    prp += ".NAM";
    TDataType dout = new TDataType(views);
    String dname = "/" + context + "/HISTORY";
    TLink tl = new TLink(dname,prp,dout,null,TAccess.CA_READ);
    if (tl.executeAndClose(1000) != 0) return null;
    int len = dout.getCompletionLength();
    if (len == 0) return null;
    HstView[] list = new HstView[len];
    for (int i=0; i<len; i++) list[i] = new HstView(views[i]);
    return list;
View Full Code Here

    if (group != null) prp += "." + group;
    prp += ".NAM";
    TDataType din = new TDataType(list);
    String dname = "/" + context + "/HISTORY";
    TLink tl = new TLink(dname,prp,null,din,TAccess.CA_WRITE);
    return tl.executeAndClose(800);
  }
  public static String[] getViewerConfigurationGroups(String context)
  {
    if (context == null) return null;
    NAME64[] prps = new NAME64[100];
View Full Code Here

    TDataType dtcfg = new TDataType(hstCfgs);
    String dname = "/" + context + "/HISTORY/" + name;
    String dprop = "CONFIGURATION";
    if (group != null && group.length() > 0) dprop += "." + group;
    TLink tl = new TLink(dname,dprop,null,dtcfg,TAccess.CA_WRITE);
    return tl.executeAndClose(800);
  }
  public static synchronized int setTraceViewerConfiguration(String context,String name,HstCfg[] hstCfgs)
  {
    if (context == null || name == null) return TErrorList.argument_list_error;
    if (!isInitialized) initCfgs();
View Full Code Here

    if (!isInitialized) initCfgs();
    TDataType dtcfg = new TDataType(hstCfgs);
    String dname = "/" + context + "/HISTORY/" + name;
    String dprop = "CONFIGURATION.TRACE";
    TLink tl = new TLink(dname,dprop,null,dtcfg,TAccess.CA_WRITE);
    return tl.executeAndClose(800);
  }
  public static synchronized McaCfg[] getMcaViewerConfiguration(String context,String name)
  {
    if (context == null || name == null) return null;
    if (!isInitialized) initCfgs();
View Full Code Here

    if (!isInitialized) initCfgs();
    TDataType dtcfg = new TDataType(mcaCfgs);
    String dname = "/" + context + "/HISTORY/" + name;
    String dprop = "CONFIGURATION.MCA";
    TLink tl = new TLink(dname,dprop,null,dtcfg,TAccess.CA_WRITE);
    return tl.executeAndClose(800);
  }
  public static synchronized McaCfg[] getOperationHistoryConfiguration(String context,String name)
  {
    if (context == null || name == null) return null;
    if (!isInitialized) initCfgs();
View Full Code Here

    if (!isInitialized) initStructs();
    for (DAQRec r : recs) r.clear();
    TDataType dtrecs = new TDataType(recs);
    String dname = "/" + context + "/HISTORY";
    TLink tl = new TLink(dname,"RECORD.INFO",dtrecs,null,TAccess.CA_READ);
    if (tl.executeAndClose(1000) != 0) throw new IOException(tl.getLastError());
    int len = dtrecs.getCompletionLength();
    DAQRec[] results = new DAQRec[len];
    for (int i=0; i<len; i++) results[i] = new DAQRec(recs[i]);
    return results;
  }
View Full Code Here

    if (context == null || recs == null) return TErrorList.argument_list_error;
    if (!isInitialized) initStructs();
    TDataType dtrecs = new TDataType(recs);
    String dname = "/" + context + "/HISTORY";
    TLink tl = new TLink(dname,"RECORD.INFO",null,dtrecs,TAccess.CA_WRITE);
    int cc = tl.executeAndClose(2000);
    if (cc == TErrorList.connection_timeout || cc == TErrorList.link_timeout)
      throw new IOException(tl.getLastError());
    return cc;
  }
  public static DAQPrm[] getDAQKeyInfo(String context,String keyFile) throws IOException
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.