Package de.desy.tine.client

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


  public static int flushNonRespondingServers(String context)
  {
    if (context == null || context.length() == 0) return TErrorList.invalid_parameter;
    String dn = "/SITE/ENS/"+context;
    TLink lnk = new TLink(dn,"REMOVENOTRUNNING",null,null,TAccess.CA_WRITE);
    int cc = lnk.execute(500, true);
    lnk.close();   
    return cc;
  }
  /**
   * Sets the allowed server down time at the ENS
View Full Code Here


    String dn = "/SITE/ENS";
    int[] dt = new int[1];
    dt[0] = downTime;
    TDataType din = new TDataType(dt);
    TLink lnk = new TLink(dn,"ALLOWEDDEADTIME",null,din,TAccess.CA_WRITE);
    int cc = lnk.execute(500, true);
    lnk.close();   
    return cc;
  }
  /**
   * Gets the allowed server down time from the ENS
View Full Code Here

    TDataType dout = new TDataType(expAddr, "");
    // this should always point to the primary ENS
    if (TSrvEntry.currentConfiguredNameServerTag != null)
    {
      TLink expLnk = new TLink(TSrvEntry.currentConfiguredNameServerTag,"EXPORT",dout,din,TAccess.CA_WRITE);
      int cc = expLnk.execute(500, true);
      expLnk.close();
      return cc;
    }
    else
    {
View Full Code Here

    TDataType dout = new TDataType(expAddr, "");
    // this should always point to the primary ENS
    if (TSrvEntry.currentConfiguredNameServerTag != null)
    {
      TLink expLnk = new TLink(TSrvEntry.currentConfiguredNameServerTag,"EXPORT",dout,din,TAccess.CA_WRITE);
      int cc = expLnk.execute(500, true);
      expLnk.close();
      return cc;
    }
    else
    {
View Full Code Here

        pname = pname + ".HIST"; // meta extension not given, try this ...
    }
    try
    {
      TLink tl = new TLink(dname,pname,dout,din,TAccess.CA_READ);
      cc = tl.execute(timeout, true);
      tl.close();
    }
    catch (UnresolvedAddressException e)
    {
      cc = TErrorList.address_unresolved;
View Full Code Here

        return null;         
      }
      ma.cannotNotifyFromWatchdogThread = true;
      for (int i=0; i<2 && cc == TErrorList.connection_timeout; i++)
      { // watchdog thread won't handle the retries, so do it here
        cc = ma.execute(TLink.defaultTimeout,true);
      }
      ma.close();
    }
    if (cc == TErrorList.link_blacklisted) cc = TErrorList.host_not_resolved;
    lastENScc = cc;
View Full Code Here

   
    TDataType dout = new TDataType(n16out);
    TDataType din = new TDataType(n16in);

    TLink tl = new TLink(SRVEXP_NAME,"SRVADDR",dout,din,TAccess.CA_READ);
    cc = tl.execute(TLink.defaultTimeout, true);
    if (cc == 0)
    {
      if (fec != null)
      {
        p = Integer.valueOf(n16out[0].getName());
View Full Code Here

      }
    }
    for (int i=0; i<ntries; i++)
    {
      TLink tl = new TLink(dname,pname[i],dout,din,TAccess.CA_READ);
      cc = tl.execute(2000, true);
      targetTime[0] = tl.getLastDataTimeStamp();
      tl.close();
      if (cc == 0 && dout.getCompletionLength() > 0) break;
    }
    return cc;
View Full Code Here

      }
    }
    for (int i=0; i<ntries; i++)
    {
      TLink tl = new TLink(dname,pname[i],dout,din,TAccess.CA_READ);
      cc = tl.execute(2000, true);
      targetTime[0] = tl.getLastDataTimeStamp();
      tl.close();
      if (cc == 0 && dout.getCompletionLength() > 0) break;
    }
    return cc;
View Full Code Here

    tagsString = isCentral ? "TAGS" : "HISTORIES";
    ntagsString = "N" + tagsString;
   
    String dname = "/" + context + "/" + server;
    TLink tl = new TLink(dname,ntagsString,dtnprps,dtsubs,TAccess.CA_READ);
    int cc = tl.execute(800, true);
    tl.close();
    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.