Examples of VirtualNetwork_Type


Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

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

        final VirtualNetwork_Type net;
       
        final Logistics log = vw.getLogistics();
        if (log == null) {
            net = null;
        } else {
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

        final MessageElement msg = resp.get_any()[0];

        final Logistics log = (Logistics)
                ObjectDeserializer.toObject(msg, Logistics.class);

        final VirtualNetwork_Type t_network = log.getNetworking();

        final Networking net;
        if (t_network == null ||
                t_network.getNic() == null ||
                    t_network.getNic().length == 0) {
            net = null;
        } else {
            net = new Networking(t_network);
        }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

        final Schedule_Type xmlSchedule = report.getSchedule();
        if (xmlSchedule != null) {
            workspace.setCurrentSchedule(new Schedule(xmlSchedule));
        }

        final VirtualNetwork_Type xmlNetwork = report.getNetworking();
        if (xmlNetwork != null) {
            workspace.setCurrentNetworking(new Networking(xmlNetwork));
        }

        return workspace;
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

        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

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

    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

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

        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

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

                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

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

        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

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

            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

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.logistics.VirtualNetwork_Type

        final NIC[] nics = vm.getNics();
        if (nics == null || nics.length == 0) {
            return new Logistics(); // *** EARLY RETURN ***
        }

        final VirtualNetwork_Type t_network = new VirtualNetwork_Type();
        t_network.setNic(this.getWSnics(nics));

        final Logistics log = new Logistics();
        log.setNetworking(t_network);
        return log;
    }
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.