Examples of Nic_Type


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

        final Nic_Type[] nics = new Nic_Type[nicNames.length];

        for (int i = 0; i < nicNames.length; i++) {
            final String nicName = nicNames[i];
            final Nic_Type nic = new Nic_Type();
            nic.setAssociation(associations[i]);
            final IPConfig_Type ipconfig = new IPConfig_Type();
            ipconfig.setAcquisitionMethod(
                    IPConfig_TypeAcquisitionMethod.AllocateAndConfigure);
            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.Nic_Type

        final Nic_Type[] wsNics = new Nic_Type[nics.length];

        for (int i = 0; i < nics.length; i++) {
            final NIC nic = nics[i];

            final Nic_Type wsnic = new Nic_Type();
            wsnic.setName(nic.getName());
            wsnic.setMAC(nic.getMAC());
            wsnic.setAssociation(nic.getNetworkName());

            final IPConfig_Type ip = new IPConfig_Type();
            ip.setBroadcast(nic.getBroadcast());
            ip.setGateway(nic.getGateway());
            ip.setHostname(nic.getHostname());
            ip.setIpAddress(nic.getIpAddress());
            ip.setNetmask(nic.getNetmask());
            ip.setNetwork(nic.getNetwork());

            final IPConfig_TypeAcquisitionMethod method =
                    (IPConfig_TypeAcquisitionMethod)
                            acqMethodMap.get(nic.getAcquisitionMethod());
            if (method == null) {
                throw new CannotTranslateException(
                        "do not recognize acquisition method '" +
                                nic.getAcquisitionMethod() + "'");
            }
            ip.setAcquisitionMethod(method);

            wsnic.setIpConfig(ip);
            wsNics[i] = wsnic;
        }

        return wsNics;
    }
View Full Code Here

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

        }

        final _NIC[] nics = new _NIC[wsnics.length];

        for (int i = 0; i < wsnics.length; i++) {
            final Nic_Type wsnic = wsnics[i];
            if (wsnic == null) {
                throw new CannotTranslateException(
                        "WS nic in request list was missing?");
            }
            nics[i] = this.translateNIC(wsnic);
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.