Examples of ClusterData


Examples of com.vmware.bdd.software.mgmt.thrift.ClusterData

   @Test(groups = { "software-management" })
   public void getOperationStatusWithDetail() {
      OperationStatusWithDetail status =
            client.getOperationStatusWithDetail(clusterName);
      Assert.assertNotNull(status);
      ClusterData clusterData = status.getClusterData();
      String clusterName = clusterData.getClusterName();
      System.out.println("clusterName : " + clusterName);
      Map<String, GroupData> groups = clusterData.getGroups();
      for (String groupName : groups.keySet()) {
         System.out.println("group name key: " + groupName);
         GroupData groupData = groups.get(groupName);
         System.out.println("group data name: " + groupData.getGroupName());
         List<ServerData> servers = groupData.getInstances();
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

        if (psize == 0) throw new java.lang.IllegalStateException("No package exists in XByteBuffer");
        int compress = toInt(buf, START_DATA.length);
        int size = toInt(buf, START_DATA.length +4);
        byte[] data = new byte[size];
        System.arraycopy(buf, START_DATA.length + 8, data, 0, size);
        ClusterData cdata = new ClusterData() ;
        cdata.setMessage(data);
        cdata.setCompress(compress);
        if (clearFromBuffer) {
            int totalsize = START_DATA.length + 8 + size + END_DATA.length;
            bufSize = bufSize - totalsize;
            System.arraycopy(buf, totalsize, buf, 0, bufSize);
        }
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

                    "No package exists in XByteBuffer");
        int compress = toInt(buf, START_DATA.length);
        int size = toInt(buf, START_DATA.length +4);
        byte[] data = new byte[size];
        System.arraycopy(buf, START_DATA.length + 8, data, 0, size);
        ClusterData cdata = new ClusterData() ;
        cdata.setMessage(data);
        cdata.setCompress(compress);
        if (clearFromBuffer) {
            int totalsize = START_DATA.length + 8 + size + END_DATA.length;
            bufSize = bufSize - totalsize;
            System.arraycopy(buf, totalsize, buf, 0, bufSize);
        }
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

        byte[] test = createMessage();
        XByteBuffer b = new XByteBuffer();
        b.append(test, 0, test.length);
        int s = b.countPackages();
        byte[] d ;
        ClusterData data ;
        assertEquals(3, s);
        for (byte i = 1; i < 4; i++) {
            data = b.extractPackage(true);
            d = data.getMessage();
            assertEquals("wrong message content",i, d[0]);
        }
    }
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

        byte[] test = createMessage();
        XByteBuffer b = new XByteBuffer();
        b.append(test, 0, test.length);
        int s = b.countPackages();
        byte[] d ;
        ClusterData data ;
        assertEquals(3, s);
        for (byte i = 1; i < 4; i++) {
            data = b.extractPackage(true);
            d = data.getMessage();
            assertEquals("wrong message content",i, d[0]);
        }
    }
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

     */
    public int execute() throws java.io.IOException {
        int pkgCnt = 0;
        boolean pkgExists = buffer.doesPackageExist();
        while ( pkgExists ) {
            ClusterData data = buffer.extractPackage(true);
            getCallback().messageDataReceived(data);
            pkgCnt++;
            pkgExists = buffer.doesPackageExist();
        }
        return pkgCnt;
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

        if (psize == 0) throw new java.lang.IllegalStateException("No package exists in XByteBuffer");
        int compress = toInt(buf, START_DATA.length);
        int size = toInt(buf, START_DATA.length +4);
        byte[] data = new byte[size];
        System.arraycopy(buf, START_DATA.length + 8, data, 0, size);
        ClusterData cdata = new ClusterData() ;
        cdata.setMessage(data);
        cdata.setCompress(compress);
        if (clearFromBuffer) {
            int totalsize = START_DATA.length + 8 + size + END_DATA.length;
            bufSize = bufSize - totalsize;
            System.arraycopy(buf, totalsize, buf, 0, bufSize);
        }
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

        if(len > 0)
            buffer.append(data,off,len);
        boolean pkgExists = buffer.doesPackageExist();
        int pkgCnt = 0;
        while ( pkgExists ) {
            ClusterData cdata = buffer.extractPackage(true);
            if(callback.isSendAck())
                callback.sendAck() ;
            callback.messageDataReceived(cdata);
            pkgCnt++;
            pkgExists = buffer.doesPackageExist();
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

     */
    public int execute() throws java.io.IOException {
        int pkgCnt = 0;
        boolean pkgExists = buffer.doesPackageExist();
        while ( pkgExists ) {
            ClusterData data = buffer.extractPackage(true);
            getCallback().messageDataReceived(data);
            pkgCnt++;
            pkgExists = buffer.doesPackageExist();
        }
        return pkgCnt;
View Full Code Here

Examples of org.apache.catalina.cluster.tcp.ClusterData

                    "No package exists in XByteBuffer");
        int compress = toInt(buf, START_DATA.length);
        int size = toInt(buf, START_DATA.length +4);
        byte[] data = new byte[size];
        System.arraycopy(buf, START_DATA.length + 8, data, 0, size);
        ClusterData cdata = new ClusterData() ;
        cdata.setMessage(data);
        cdata.setCompress(compress);
        if (clearFromBuffer) {
            int totalsize = START_DATA.length + 8 + size + END_DATA.length;
            bufSize = bufSize - totalsize;
            System.arraycopy(buf, totalsize, buf, 0, bufSize);
        }
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.