Examples of fgetString()


Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

    ServiceInterface[] S = new ServiceInterface[A.size()];
    for (int i = 0; i < A.size(); i++) {
      Q = (QueryableFrame) A.get(i);

      // Check if it is a Service or a ServiceAlias and parse accordingly
      if (Q.fgetString("TARGET") == null) {
        H = new Hashtable();
        int total = Q.getKeyValuePairCount();
        KeyValuePair P = null;
        for (int j = 0; j < total; j++) {
          P = Q.getKeyValuePair(j);
View Full Code Here

Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

          }
        }

        S[i] = new Service(H);
      } else {
        S[i] = new ServiceAlias(Q.fgetString("NAME"), Q.fgetString("TARGET"));
      }
    }

    return S;
  }
View Full Code Here

Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

          }
        }

        S[i] = new Service(H);
      } else {
        S[i] = new ServiceAlias(Q.fgetString("NAME"), Q.fgetString("TARGET"));
      }
    }

    return S;
  }
View Full Code Here

Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

    QueryableFrame Q;
    for (int i = 0; i < H.hits.length; i++) {
      Q = (QueryableFrame) A.get(i);
      H.hits[i] = Q.fgetInt("COUNT");
      H.types[i] = Q.fgetString("TYPE");
    }

    return H;
  }
View Full Code Here

Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

    ServiceInfo[] S = new ServiceInfo[A.size()];
    QueryableFrame L;
    for (int i = 0; i < S.length; i++) {
      L = (QueryableFrame) A.get(i);
      S[i] = new ServiceInfo(name, L.fgetString("HOST"), L.fgetString("PORT"), level, L
              .fgetString("INSTANCE"));
    }

    return S;
  }
View Full Code Here

Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

    ServiceInfo[] S = new ServiceInfo[A.size()];
    QueryableFrame L;
    for (int i = 0; i < S.length; i++) {
      L = (QueryableFrame) A.get(i);
      S[i] = new ServiceInfo(name, L.fgetString("HOST"), L.fgetString("PORT"), level, L
              .fgetString("INSTANCE"));
    }

    return S;
  }
View Full Code Here

Examples of org.apache.vinci.transport.QueryableFrame.fgetString()

    ServiceInfo[] S = new ServiceInfo[A.size()];
    QueryableFrame L;
    for (int i = 0; i < S.length; i++) {
      L = (QueryableFrame) A.get(i);
      S[i] = new ServiceInfo(name, L.fgetString("HOST"), L.fgetString("PORT"), level, L
              .fgetString("INSTANCE"));
    }

    return S;
  }
View Full Code Here

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

    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.fgetString()

    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.fgetString()

    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
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.