Package com.xensource.xenapi

Examples of com.xensource.xenapi.PoolPatch


    protected boolean hostHasHotFix(Connection conn, String hotFixUuid) {
        try {
            Host host = Host.getByUuid(conn, _host.uuid);
            Host.Record re = host.getRecord(conn);
            Set<HostPatch> patches = re.patches;
            PoolPatch poolPatch = PoolPatch.getByUuid(conn, hotFixUuid);
            for(HostPatch patch : patches) {
                PoolPatch pp = patch.getPoolPatch(conn);
                if (pp.equals(poolPatch) && patch.getApplied(conn)) {
                    return true;
                }
            }
         } catch (Exception e) {
            s_logger.debug("can't get patches information for hotFix: " + hotFixUuid);
View Full Code Here


                Host.Record re = entry.getValue();
                if (!re.address.equalsIgnoreCase(hostIp)){
                    continue;
                }
                Set<HostPatch> patches = re.patches;
                PoolPatch poolPatch = PoolPatch.getByUuid(conn, hotFixUuid);
                for(HostPatch patch : patches) {
                    PoolPatch pp = patch.getPoolPatch(conn);
                    if (pp.equals(poolPatch) && patch.getApplied(conn)) {
                        s_logger.debug("host " + hostIp + " does have " + hotFixUuid +" Hotfix.");
                        return true;
                    }
                }
            }
View Full Code Here

TOP

Related Classes of com.xensource.xenapi.PoolPatch

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.