Package hudson.plugins.libvirt.lib

Examples of hudson.plugins.libvirt.lib.VirtException


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


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

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

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

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

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

    public boolean isRunningOrBlocked() throws VirtException {
        try {
            Domain.DomainState domainState = domain.getState();
            return (domainState.equals(Domain.DomainState.RUNNING) || domainState.equals(Domain.DomainState.BLOCKED));
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

    public boolean isNotBlockedAndNotRunning() throws VirtException {
        try {
            Domain.DomainState domainState = domain.getState();
            return (domainState != Domain.DomainState.BLOCKED && domainState != Domain.DomainState.RUNNING);
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

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

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