Examples of ClusterMember


Examples of org.globus.workspace.cloud.client.cluster.ClusterMember

                    cloud.getCloud().getBrokerLocalNicPrefix();

                final String publicNicPrefix =
                    cloud.getCloud().getBrokerPublicNicPrefix();

                ClusterMember member = ClusterUtil.parseRequest(this.cluster,
                    workspaceIndex, this.print, localNicPrefix, publicNicPrefix);

                if (member.getClusterForUserData() != null) {
                    needsBroker = true;
                }

                final MemberDeployment md = new MemberDeployment(member, deploy);
                cloud.addMember(md);
View Full Code Here

Examples of org.globus.workspace.cloud.client.cluster.ClusterMember

                    "generated keys (see cloud.properties to enable).");
        }
       
        for (int i = 0; i < this.clusterMembers.length; i++) {

            final ClusterMember member = this.clusterMembers[i];

            if (member.isOneLoginFlagPresent()) {
                if (member.getClusterForUserData() == null
                        && ssh_hostsfile != null) {
                    this.print.errln("  - Warning: Host SSH pubkey(s) will " +
                            "not be available for this member " +
                            "(it's not involved in contextualization)");
                } else {
                    adjustKnownHosts = true;
                }
            }

            if (member.getClusterForUserData() != null) {
                oneContextualization = true;
            }
        }

        if (this.args.isNoContextLock() && !oneContextualization) {
View Full Code Here

Examples of org.globus.workspace.cloud.client.cluster.ClusterMember

        final String[] metadata_fileNames = new String[len];
        final String[] deploymentRequest_fileNames = new String[len];

        for (int i = 0; i < len; i++) {

            final ClusterMember member = this.clusterMembers[i];
            if (member == null) {
                throw new IllegalStateException(
                        "valid clusterMembers must be present here");
            }

            final String imageName = member.getImageName();

            final String imageURL;
            try {
                imageURL = this.repoUtil.getDerivedImageURL(imageName);
            } catch (Exception e) {
                throw new ExecutionProblem("Problem with image name '" +
                        imageName + "': " + e.getMessage(), e);
            }

            final URI imageURI;
            try {
                imageURI = new URI(imageURL);
            } catch (URI.MalformedURIException e) {
                throw new ExecutionProblem(e.getMessage(), e);
            }

            // runName (3rd method paramater, being set to null) will be set
            // in startWorkspaceCluster once rundir is known
            metadatas[i] =
                MetadataXMLUtil.constructMetadata(imageURI,
                                                  this.args.getMetadata_mountAs(),
                                                  null,
                                                  member.getAssociations(),
                                                  member.getIfaceNames(),
                                                  this.args.getMetadata_cpuType(),
                                                  this.args.getMetadata_vmmVersion(),
                                                  this.args.getMetadata_vmmType(),
                          this.kernelURI);
           
            deploymentRequests[i] =
                DeploymentXMLUtil.constructDeployment(this.args.getDurationMinutes(),
                                                      this.args.getMemory(),
                                                      this.args.getCores(),
                                                      this.newUnpropTargetURL,
                                                      member.getQuantity());

            metadata_fileNames[i] =
                    HistoryUtil.getMemberName(i+1) + "-" +
                            this.args.getMetadata_fileName();
           
            deploymentRequest_fileNames[i] =
                    HistoryUtil.getMemberName(i+1) + "-" +
                            this.args.getDeploymentRequest_fileName();
        }

        ClusterUtil.printClusterInfo(this.clusterMembers, this.print);

        final String[] printNames = new String[this.clusterMembers.length];

        final Cloudcluster_Type[] clustersForUserData =
                new Cloudcluster_Type[this.clusterMembers.length];

        for (int i = 0; i < this.clusterMembers.length; i++) {
            final int memberIndex = i;
            final ClusterMember member = this.clusterMembers[memberIndex];

            printNames[i] = member.getPrintName(); // may be null


            // will be null if not involved in contextualization
            clustersForUserData[memberIndex] = member.getClusterForUserData();
            printNames[i] = member.getPrintName(); // may be null
        }

        final KnownHostsTask[] knownHostTasks;
        if (this.args.getSsh_hostsfile() != null) {
            knownHostTasks =
View Full Code Here

Examples of org.globus.workspace.cloud.client.cluster.ClusterMember

        final String sectionTitle = "ACTION: EC2 CLUSTER HELP";
        CommonPrint.printDebugSection(this.print, sectionTitle);

        print.infoln("\nEC2 cluster:");
        for (int i = 0; i < this.clusterMembers.length; i++) {
            final ClusterMember member = this.clusterMembers[i];
            String inststr = " instance";
            if (member.getQuantity() > 1) {
                inststr += "s";
            }

            final String mname;
            if (member.getPrintName() == null) {
                mname = HistoryUtil.getMemberName(i+1);
            } else {
                mname = member.getPrintName();
            }

            this.print.infoln("  - " + mname + ": AMI '" +
                    member.getImageName() + "', " + member.getQuantity() +
                    inststr);
        }

        String brokerURL = this.args.getBrokerURL();
        String brokerIdentityAuthorization = this.args.getBrokerID();
View Full Code Here

Examples of org.globus.workspace.cloud.client.cluster.ClusterMember

                    "the context broker: " + e.getMessage(), e);
        }

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