Examples of fget()


Examples of org.apache.vinci.transport.VinciFrame.fget()

        queryFrame.fadd("vinci:COMMAND", "getlist");
        queryFrame.fadd("PREFIX", aVinciServiceName);
        // System.out.println("Query Frame:::"+queryFrame.toXML());
        // Query the VNS
        VinciFrame response = (VinciFrame) vnsConnection.sendAndReceive(queryFrame);
        ArrayList serviceFrames = response.fget("SERVICE");
        // Each service is returned in its own SERVICE frame. So cycle through those now
        // one at a time
        for (int i = 0; i < serviceFrames.size(); i++) {
          VinciFrame serviceFrame = (VinciFrame) serviceFrames.get(i);
          // Copy data from the frame ( host, port etc)
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.fget()

    System.out.println(req.toXML());
    VinciFrame resp = (VinciFrame) transmit(req);

    checkError(resp);

    return constructServiceInfo(resp.fget("SERVER"), resp.fgetString("LEVEL"), name);
  }

  public ServiceInfo[] lookup(String name) {
    return lookup(name, -1, null, null, null);
  }
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.fget()

    VinciFrame resp = (VinciFrame) transmit(req);

    checkError(resp);

    ServiceInfo[] S = constructServiceInfo(resp.fget("SERVER"), resp.fgetString("LEVEL"), name);

    return ((S.length > 0) ? S[R.nextInt(S.length)] : null);
  }

  public static void smFrameAdd(VinciFrame v, String tag, String val) {
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.fget()

    VinciFrame resp = (VinciFrame) transmit(req);

    checkError(resp);

    ServiceInfo[] S = constructServiceInfo(resp.fget("SERVER"), resp.fgetString("LEVEL"), name);

    return ((S.length > 0) ? S[R.nextInt(S.length)] : null);
  }

  public ServiceInfo resolve(String name) {
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.fget()

    VinciFrame resp = (VinciFrame) transmit(req);

    checkError(resp);

    ArrayList A = resp.fget("SERVICE");
    Hashtable H;
    QueryableFrame Q;
    ServiceInterface[] S = new ServiceInterface[A.size()];
    for (int i = 0; i < A.size(); i++) {
      Q = (QueryableFrame) A.get(i);
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.fget()

    VinciFrame resp = (VinciFrame) transmit(req);

    checkError(resp);

    ArrayList A = resp.fget("SERVICE");
    String[] S = new String[A.size()];
    for (int i = 0; i < A.size(); i++) {
      S[i] = ((FrameLeaf) A.get(i)).toString().trim();
    }
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.fget()

    checkError(resp);

    HitsList H = new HitsList();
    H.totalhits = resp.fgetInt("TOTAL");
    H.starttime = resp.fgetString("STARTED");
    ArrayList A = resp.fget("HITS");
    H.hits = new int[A.size()];
    H.types = new String[A.size()];

    QueryableFrame Q;
    for (int i = 0; i < H.hits.length; i++) {
View Full Code Here

Examples of org.apache.vinci.transport.document.AFrame.fget()

        // No annotations found in reply so just leave
        return aCasList;
      }
      ArrayList d = new ArrayList();
      if ( responseFrame != null ) {
        d = responseFrame.fget("DATA");
      }
      int instanceCount = 0;
      // Process response, DATA frame at a time. Each DATA frame corresponds to an instance of
      // CasData
      AFrame dataFrame = null;
View Full Code Here

Examples of org.apache.vinci.transport.document.AFrame.fget()

        // No annotations found in reply so just leave
        return aCasList;
      }
      ArrayList d = new ArrayList();
      if ( responseFrame != null ) {
        d = responseFrame.fget("DATA");
      }
      int instanceCount = 0;
      // Process response, DATA frame at a time. Each DATA frame corresponds to an instance of
      // CasData
      AFrame dataFrame = null;
View Full Code Here

Examples of org.apache.vinci.transport.document.AFrame.fget()

      if (responseFrame.fgetAFrame("DATA") == null) {
        // No annotations found in reply so just leave
        return aCasList;
      }
      ArrayList d = responseFrame.fget("DATA");
      int instanceCount = 0;
      // Process response, DATA frame at a time. Each DATA frame corresponds to an instance of
      // CasData
      AFrame dataFrame = null;
      while (!(d.isEmpty())) {
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.