Package org.nimbustools.messaging.gt4_0.generated.group

Examples of org.nimbustools.messaging.gt4_0.generated.group.WorkspaceGroupServiceAddressingLocator


        if (xmlSchedule == null) {
            throw new ExecutionProblem(
                    "(?) no schedule in factory response");
        }

        final VirtualNetwork_Type xmlNetwork = allrefs[0].getNetworking();
        if (xmlNetwork != null) {
            workspace.setCurrentNetworking(new Networking(xmlNetwork));
        }

        workspace.setEpr(allrefs[0].getEpr());
View Full Code Here


    protected void populateInitialRepr(Workspace workspace)
            throws ParameterProblem {

        workspace.setUriName(this.vw.getName().toString());

        final VirtualNetwork_Type net = this.vw.getLogistics().getNetworking();
        if (net != null) {
            workspace.setRequestedNetworking(new Networking(net));
        }

        final ResourceAllocation_Type ra = this.req.getResourceAllocation();
View Full Code Here

        workspace.setCurrentState(State.fromCurrentState_Type(curr));

        final Logistics log = rpSet.getLogistics();

        final VirtualNetwork_Type t_network = log.getNetworking();

        if (t_network != null &&
                t_network.getNic() != null &&
                    t_network.getNic().length > 0) {
            workspace.setCurrentNetworking(new Networking(t_network));
        }

        workspace.setEpr(endpoint);
View Full Code Here

                throw new ExecutionProblem(
                        "(?) invalid data in factory response: " +
                                e.getMessage(), e);
            }

            final VirtualNetwork_Type xmlNetwork = allrefs[i].getNetworking();
            if (xmlNetwork != null) {
                workspace.setCurrentNetworking(new Networking(xmlNetwork));
            }

            workspace.setEpr(allrefs[i].getEpr());
View Full Code Here

        workspace.setCurrentState(State.fromCurrentState_Type(curr));

        final Logistics log = oneCurrent.getLogistics();

        final VirtualNetwork_Type t_network = log.getNetworking();

        if (t_network != null &&
                t_network.getNic() != null &&
                    t_network.getNic().length > 0) {
            workspace.setCurrentNetworking(new Networking(t_network));
        }

        workspace.setEpr(oneCurrent.getEpr());
        workspace.setDetails(oneCurrent.getDetails());
View Full Code Here

            nic.setIpConfig(ipconfig);
            nic.setName(nicName);
            nics[i] = nic;
        }

        final VirtualNetwork_Type vn = new VirtualNetwork_Type(nics);
        return new Logistics(null, vn);
    }
View Full Code Here

                throw new ParameterProblem(
                    "initial state in deployment request is unrecognized?");
            }
        }

        final DeploymentTime_Type time = this.req.getDeploymentTime();
        if (time == null) {
            throw new ParameterProblem("no DeploymentTime_Type in request?");
        }

        final Duration minDuration = time.getMinDuration();
        if (minDuration == null) {
            throw new ParameterProblem("no minDuration in request?");
        }

        try {
View Full Code Here

        // this might be incorrect information already, but it is the initial
        // state of all workspaces
        workspace.setCurrentState(new State(State.STATE_Unstaged));

        try {
            final DeploymentTime_Type time = this.req.getDeploymentTime();
            final int seconds =
                    CommonUtil.durationToSeconds(time.getMinDuration());
            final Schedule schedule = new Schedule();
            schedule.setDurationSeconds(seconds);
            workspace.setRequestedSchedule(schedule);
        } catch (NullPointerException e) {
            throw new ParameterProblem(e.getMessage(), e);
View Full Code Here

        if (dep == null) {
            throw new CannotTranslateException(
                    "create request deployment may not be missing");
        }

        final PostShutdown_Type post = dep.getPostShutdown();

        // -------------------------------------------------------------
        // Translate:
        // -------------------------------------------------------------
View Full Code Here

        if (this.args.saveTarget == null) {
            return; // *** EARLY RETURN ***
        }

        this.postRequest = new PostShutdown_Type();

        try {
            final URI uri = new URI(this.args.saveTarget);
            this.postRequest.setRootPartitionUnpropagationTarget(uri);
        } catch (URI.MalformedURIException e) {
View Full Code Here

TOP

Related Classes of org.nimbustools.messaging.gt4_0.generated.group.WorkspaceGroupServiceAddressingLocator

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.