Examples of GroupData


Examples of be.eliwan.profiling.api.GroupData

        boolean done = false;
        while (!done) {
            try {
                for (Map.Entry<String, OneContainerContainer> entry : groupData.entrySet()) {
                    OneContainer gv = entry.getValue().getValue();
                    GroupData gd = new GroupContainer(entry.getKey(), gv.getInvocationCount(), gv.getTotalRunTime());
                    result.add(gd);
                }
                done = true;
            } catch (ConcurrentModificationException cme) {
                result.clear();
View Full Code Here

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

      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();
         for (ServerData serverData : servers) {
            System.out.println("server data - name:" + serverData.getName()
                  + ", status: " + serverData.getStatus() + ", action: "
                  + serverData.getStatus());
         }
View Full Code Here

Examples of net.sf.cb2java.data.GroupData

    public void testWeCanParseIntegers() throws FileNotFoundException, IOException {
        Copybook copybook = CopybookParser.parse("TYPES", new FileInputStream(new File("./src/test/resources/types.copybook")));
        List<Record> records = copybook.parseData(new FileInputStream(new File("./src/test/resources/types.txt")));
        Record record = records.get(0);
        GroupData integers = (GroupData) record.getChild("TYPES").getChildren().get(1);
        assertEquals(BigInteger.ZERO, integers.getChild("ZEROH").getValue());
        assertEquals(BigInteger.ONE,  integers.getChild("ONE").getValue());
        assertEquals(BigInteger.valueOf(9),   integers.getChild("NINE").getValue());
    }
View Full Code Here

Examples of net.sf.cb2java.data.GroupData

    public void testWeCanParseNegativeIntegers() throws FileNotFoundException, IOException {
        Copybook copybook = CopybookParser.parse("TYPES", new FileInputStream(new File("./src/test/resources/types.copybook")));
        List<Record> records = copybook.parseData(new FileInputStream(new File("./src/test/resources/types.txt")));
        Record record = records.get(0);
        GroupData integers = (GroupData) record.getChild("TYPES").getChildren().get(1);
        // todo assertEquals(BigInteger.valueOf(-1),  integers.getChild("MINUSONE").getValue());
        // todo assertEquals(BigInteger.valueOf(-65), integers.getChild("MINUSSIXTYFIVE").getValue());
        // todo assertEquals(BigInteger.valueOf(-82), integers.getChild("EIGHTYTWO").getValue());
    }
View Full Code Here

Examples of net.sf.cb2java.data.GroupData

            for (int j = 0; j < element.getOccurs(); j++) {
                dataChildren.add(element.create());
            }
        }
       
        return new GroupData(this, dataChildren);
    }
View Full Code Here

Examples of net.sf.cb2java.data.GroupData

               
                pos = end;
            }
        }
       
        return new GroupData(this, dataChildren);
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.GroupData

        Role role = userAdmin.getRole(groupname);
        if (role == null) {
            return null;
        }
        validateRoleType(role, Role.GROUP);
        return new GroupData((Group) role).toCompositeData();
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.GroupData

        Mockito.when(group1.getRequiredMembers()).thenReturn(new Role[] { role1 });
        Mockito.when(group1.getMembers()).thenReturn(new Role[] { role2 });
        Mockito.when(userAdmin.getRole(Mockito.anyString())).thenReturn(group1);
        CompositeData data = mbean.getGroup("group1");
        Assert.assertNotNull(data);
        GroupData group = GroupData.from(data);
        Assert.assertNotNull(group);
        Assert.assertEquals("group1", group.getName());
        Assert.assertEquals(Role.GROUP, group.getType());
        Assert.assertArrayEquals(new String[] { "role2" }, group.getMembers());
        Assert.assertArrayEquals(new String[] { "role1" }, group.getRequiredMembers());
        Mockito.verify(userAdmin).getRole(Mockito.anyString());
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.GroupData

        Role role = userAdmin.getRole(groupname);
        if (role == null) {
            return null;
        }
        validateRoleType(role, Role.GROUP);
        return new GroupData((Group) role).toCompositeData();
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.GroupData

        Role role = userAdmin.getRole(groupname);
        if (role == null) {
            return null;
        }
        validateRoleType(role, Role.GROUP);
        return new GroupData((Group) role).toCompositeData();
    }
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.