Examples of executeAndClose()


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

    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

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

  public static SelfTestItem[] getServerSelfTest(String context, String server)
  {
    char[] stChars = new char[32000];
    TDataType dout = new TDataType(stChars);
    TLink lnk = new TLink("/"+context+"/"+server,"SRVSELFTEST",dout,null,TAccess.CA_READ);
    int rc = lnk.executeAndClose(TLink.defaultTimeout);
    if (rc != 0) return null;
    int p = dout.getCompletionLength();
    String stString = new String(stChars,0,p);
   
    csvColumn[] stCols = new csvColumn[26];
View Full Code Here

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

    if (!isInitialized) initStructs();
    for (CasDb p : databases) p.clear();
    TDataType dtdb = new TDataType(databases);
    String dname = "/" + context + "/CAS";
    TLink tl = new TLink(dname,"SERVER.DB",dtdb,null,TAccess.CA_READ);
    if (tl.executeAndClose(1000) != 0) throw new IOException(tl.getLastError());
    int len = dtdb.getCompletionLength();
    CasDb[] results = new CasDb[len];
    for (int i=0; i<len; i++) results[i] = new CasDb(databases[i]);
    return results;
  }
View Full Code Here

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

    if (context == null || dbItems == null) return TErrorList.argument_list_error;
    if (!isInitialized) initStructs();
    TDataType dtrecs = new TDataType(dbItems);
    String dname = "/" + context + "/CAS";
    TLink tl = new TLink(dname,"SERVER.DB",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 CasAction[] getActionList(String context,String server) throws IOException
View Full Code Here

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

    if (!isInitialized) initStructs();
    for (CasAction p : actions) p.clear();
    TDataType dtact = new TDataType(actions);
    String dname = "/" + context + "/CAS/" + server;
    TLink tl = new TLink(dname,"ACTION.DB",dtact,null,TAccess.CA_READ);
    if (tl.executeAndClose(1000) != 0) throw new IOException(tl.getLastError());
    int len = dtact.getCompletionLength();
    CasAction[] results = new CasAction[len];
    for (int i=0; i<len; i++) results[i] = new CasAction(actions[i]);
    return results;
  }
View Full Code Here

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

    } else {
      dtrecs = new TDataType(actionItems);
    }
    String dname = "/" + context + "/CAS/" + server;
    TLink tl = new TLink(dname,"ACTION.DB",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 CasAlarmSys[] getAlarmSystemList(String context) throws IOException
View Full Code Here

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

    if (!isInitialized) initStructs();
    for (CasAlarmSys p : systems) p.clear();
    TDataType dtact = new TDataType(systems);
    String dname = "/" + context + "/CAS";
    TLink tl = new TLink(dname,"ALMSYSTEM.DB",dtact,null,TAccess.CA_READ);
    if (tl.executeAndClose(1000) != 0) throw new IOException(tl.getLastError());
    int len = dtact.getCompletionLength();
    CasAlarmSys[] results = new CasAlarmSys[len];
    for (int i=0; i<len; i++) results[i] = new CasAlarmSys(systems[i]);
    return results;
  }
View Full Code Here

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

    if (context == null || dbItems == null) return TErrorList.argument_list_error;
    if (!isInitialized) initStructs();
    TDataType dtrecs = new TDataType(dbItems);
    String dname = "/" + context + "/CAS";
    TLink tl = new TLink(dname,"ALMSYSTEM.DB",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 int[] getAlarmSystemCodeList(String context,String server) throws IOException
View Full Code Here

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

    if (!isInitialized) initStructs();
    int[] results = new int[25];
    TDataType dtcodes = new TDataType(results);
    String dname = "/"+context+"/CAS/"+server;
    TLink tl = new TLink(dname,"AlmSystem4Server",dtcodes,null,TAccess.CA_READ);
    if (tl.executeAndClose(1000) != 0) throw new IOException(tl.getLastError());
    int len = dtcodes.getCompletionLength();
    return Arrays.copyOf(results, len);
  }
  public static int setAlarmSystemCodeList(String context,String server,int[] sysCodes) throws IOException
  {
View Full Code Here

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

    if (context == null || server == null || sysCodes == null) return TErrorList.argument_list_error;
    if (!isInitialized) initStructs();
    TDataType dtcodes = new TDataType(sysCodes);
    String dname = "/"+context+"/CAS/"+server;
    TLink tl = new TLink(dname,"AlmSystem4Server",null,dtcodes,TAccess.CA_WRITE);
    int cc = tl.executeAndClose(1000);
    if (cc == TErrorList.connection_timeout || cc == TErrorList.link_timeout)
      throw new IOException(tl.getLastError());
    return cc;
  }
  public static int reloadDataBase(String context) 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.