Package hudson.plugins.libvirt.lib

Examples of hudson.plugins.libvirt.lib.VirtException


    public void suspend() throws VirtException {
        try {
            domain.suspend();
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here


    public JLibVirtConnectImpl(String host, int port, String username, String password, String hypervisorUri, boolean b) throws VirtException {
        try
        {
            this.connect = new Connect(host, port, username, password, hypervisorUri, b);
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public long getVersion() throws VirtException {
        try {
            return getLibVirt().connectGetVersion();
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public int[] listDomains() throws VirtException {
        try {
            return connect.listDomains();
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public String[] listDefinedDomains() throws VirtException {
        try {
            return connect.listDefinedDomains();
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public IDomain domainLookupByName(String c) throws VirtException {
        try {
            return new JLibVirtDomainImpl(connect.domainLookupByName(c));
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public IDomain domainLookupByID(int c) throws VirtException {
        try {
            return new JLibVirtDomainImpl(connect.domainLookupById(c));
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public void close() throws VirtException {
        try {
            getLibVirt().connectClose();
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public boolean isConnected() throws VirtException {
        try {
            return connect.isConnected();
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public String getName() throws VirtException {
        try {
            return domain.getName();
        } catch (LibvirtException e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.libvirt.lib.VirtException

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.