Package org.libvirt

Examples of org.libvirt.Network.free()


            info.name = net.getName();
            info.autostart = net.getAutostart();
            info.bridgeName = net.getBridgeName();
            return info;
        } finally {
            net.free();
        }
    }

    public String getNetworkXML(String name) throws LibvirtException {
        Network network = getLibVirtNetwork(name);
View Full Code Here


    public String getNetworkXML(String name) throws LibvirtException {
        Network network = getLibVirtNetwork(name);
        try {
            return network.getXMLDesc(0);
        } finally {
            network.free();
        }
    }

    public void updateNetwork(String name, String xml, boolean autostart) throws LibvirtException {
        connection.networkDefineXML(xml);
View Full Code Here

        connection.networkDefineXML(xml);
        Network network = getLibVirtNetwork(name);
        try {
            network.setAutostart(autostart);
        } finally {
            network.free();
        }
    }

    public static class DomainInfo {
        public int id;
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.