Package org.nimbustools.ctxbroker.generated.gt4_0.description

Examples of org.nimbustools.ctxbroker.generated.gt4_0.description.Contextualization_Type


        assertEquals(deployment.getMembers().size(),  runTasks.length);

    }
   
    private MemberDeployment[] getMemberDeployments() throws Exception {
        final Cloudcluster_Type cluster = TestUtil.getSampleCluster();

        final ClusterMember[] members =
            ClusterUtil.getClusterMembers(cluster, "priv", "pub", new Print());

        final MemberDeployment[] deploys = new MemberDeployment[members.length];
View Full Code Here


        IdentityProvides_Type[] ids = new IdentityProvides_Type[2];
        ids[0] = this.getFake_0();
        ids[1] = this.getFake_1();
        args.setIdentity(ids);

        final Cloudcluster_Type clusta;
        try {
            clusta = FileUtils.getClusterDocForRetrieve(
                            this.pr, this.args.clusterForImpersonationPath);
        } catch (Exception e) {
            throw new ParameterProblem("Problem reading in the cluster " +
View Full Code Here

            throw new ContextBrokerException(
                 "these arbitrary identities are not supported at the moment," +
                         "you may only use 1 or 2 NICs");
        }

        Cloudcluster_Type cluster = ctxDocAndID.getCluster();
       
        // checks that there is nothing illegal and that one and only
        // one section will be marked active
        int totalNodes = this.clusterSanityAndCount(cluster);
        logger.debug("total nodes: " + totalNodes);

        final Cloudworkspace_Type[] vms = cluster.getWorkspace();
        Contextualization_Type ctxDoc = null;
        for (Cloudworkspace_Type vm : vms) {
            if (Boolean.TRUE.equals(vm.getActive())) {
                ctxDoc = vm.getCtx(); // clusterSanityAndCount guarantees one and only one
                break;
View Full Code Here

            }

            // prepare user data
            for (int i = 0; i < clustersForUserData.length; i++) {

                final Cloudcluster_Type oneCtx = clustersForUserData[i];

                if (oneCtx == null) {
                    ctxUserDataPaths[i] = null;
                    continue;
                }
View Full Code Here

        }

        // prepare user data
        for (int i = 0; i < clusterMembers.length; i++) {
            ClusterMember member = clusterMembers[i];
            final Cloudcluster_Type oneCtx = member.getClusterForUserData();

            if (oneCtx == null) {
                ctxUserDataPaths[i] = null;
                continue;
            }
View Full Code Here

            } else if (print.useLogging()) {
                logger.debug(msg);
            }
        }

        Cloudcluster_Type clusta = null;
        BufferedInputStream in = null;
        try {
            in = new BufferedInputStream(new FileInputStream(path));
            clusta = (Cloudcluster_Type)
                        ObjectDeserializer.deserialize(
View Full Code Here

        final ClusterMember[] members =
            ClusterUtil.getClusterMembers(cluster, "priv", "pub", new Print());

        final MemberDeployment[] deploys = new MemberDeployment[members.length];
        for (int i = 0; i < deploys.length; i++) {
            deploys[i] = new MemberDeployment(members[i], new Clouddeploy_Type());
        }

        return deploys;

    }
View Full Code Here

        }

        final Map<String, Clouddeploy_Type[]> deployMap;

        try {
            final Clouddeployment_Type deployDoc =
                ClusterUtil.parseDeployDocument(deployPath);
            deployMap = ClusterUtil.parseDeployment(deployDoc);

        } catch (DeserializationException de) {
            throw new ParameterProblem("Failed to parse deployment " +
View Full Code Here

                throw new ParameterProblem("Deployment document contains "+
                    "a workspace: '"+ entry.getKey()+"' which is not present "+
                    "in the cluster definition");
            }

            final Cloudworkspace_Type workspace =
                this.cluster.getWorkspace(workspaceIndex);

            final short workspaceQuantity =
                workspace.getQuantity();

            short foundQuantity = 0;

            for (Clouddeploy_Type deploy : entry.getValue()) {
View Full Code Here

    }

    private int getWorkspaceIndex(String key) {
        for (int i = 0; i < workspaceList.size(); i++) {
            Cloudworkspace_Type ws = workspaceList.get(i);
            if (ws.getName().trim().equals(key)) {
                return i;
            }
        }
        return -1;
    }
View Full Code Here

TOP

Related Classes of org.nimbustools.ctxbroker.generated.gt4_0.description.Contextualization_Type

Copyright © 2018 www.massapicom. 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.