Package hudson.plugins.libvirt.lib

Examples of hudson.plugins.libvirt.lib.VirtException


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


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

    public IDomainSnapshot snapshotLookupByName(String snapshotNamethrows VirtException{
        try {
            return new LibVirtDomainSnapshotImpl(domain.snapshotLookupByName(snapshotName));
        } catch (LibvirtException e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public void revertToSnapshot(IDomainSnapshot dsthrows VirtException{
        try {
            DomainSnapshot snapshot = ((LibVirtDomainSnapshotImpl)ds).getSnapshot();
            domain.revertToSnapshot(snapshot);
        } catch (LibvirtException e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

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

    public boolean isRunningOrBlocked() throws VirtException {
        try {
            return (domain.getInfo().state.equals(DomainInfo.DomainState.VIR_DOMAIN_RUNNING) || domain.getInfo().state.equals(DomainInfo.DomainState.VIR_DOMAIN_BLOCKED));
        } catch (LibvirtException e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public boolean isNotBlockedAndNotRunning() throws VirtException {
        try {
            return (domain.getInfo().state != DomainInfo.DomainState.VIR_DOMAIN_BLOCKED && domain.getInfo().state != DomainInfo.DomainState.VIR_DOMAIN_RUNNING);
        } catch (LibvirtException e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

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

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

    public void suspend() throws VirtException {
        try {
            domain.suspend();
        } 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.