Examples of IPConfig_Type


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

        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;
        }
View Full Code Here

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

            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;
        }
View Full Code Here

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

       
        nic.setNetworkName(wsnic.getAssociation());
        nic.setMAC(wsnic.getMAC());
        nic.setName(wsnic.getName());

        final IPConfig_Type ipconfig = wsnic.getIpConfig();
        if (ipconfig == null) {
            throw new CannotTranslateException(
                        "IPConfig_Type in nic request was missing?");
        }

        final String method =
                (String) acqMethodMap.get(ipconfig.getAcquisitionMethod());
        if (method == null) {
            throw new CannotTranslateException("unrecognized acquisition " +
                    "type (IPConfig_TypeAcquisitionMethod enumeration)");
        }

        nic.setAcquisitionMethod(method);

        nic.setBroadcast(ipconfig.getBroadcast());
        nic.setGateway(ipconfig.getGateway());
        nic.setHostname(ipconfig.getHostname());
        nic.setIpAddress(ipconfig.getIpAddress());
        nic.setNetmask(ipconfig.getNetmask());
        nic.setNetwork(ipconfig.getNetwork());

        return nic;
    }
View Full Code Here

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

        if (xmlNic == null) {
            throw new IllegalArgumentException("xmlNic is null");
        }

        final IPConfig_Type ipconf = xmlNic.getIpConfig();
        if (ipconf == null) {
            throw new IllegalArgumentException("IPConfig_Type is null?");
        }

        this.name = xmlNic.getName();
        this.mac = xmlNic.getMAC();
        this.association = xmlNic.getAssociation();

        this.hostname = ipconf.getHostname();
        this.ipAddress = ipconf.getIpAddress();
        this.netmask = ipconf.getNetmask();

        this.gateway = ipconf.getGateway();
        this.broadcast = ipconf.getBroadcast();
        this.network = ipconf.getNetwork();

        final String acqVal = ipconf.getAcquisitionMethod().getValue();
        if (!NicAcquisitionMethod.testValidMethod(acqVal)) {
            throw new IllegalArgumentException(
                    "acquisitionMethod is invalid? value: '" + acqVal + "'");
        }
        this.acquisitionMethod = new NicAcquisitionMethod(acqVal);
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.