Package com.cloud.hypervisor.vmware.util

Examples of com.cloud.hypervisor.vmware.util.VmwareContext.validate()


    VmwareContext context = s_pool.getContext(vCenterAddress, vCenterUserName);
    if(context == null) {
      context = create(vCenterAddress, vCenterUserName, vCenterPassword);
    } else {
            // Validate current context and verify if vCenter session timeout value of the context matches the timeout value set by Admin
            if(!context.validate() || (context.getVimClient().getVcenterSessionTimeout() != s_vCenterSessionTimeout)) {
        s_logger.info("Validation of the context faild. dispose and create a new one");
        context.close();
        context = create(vCenterAddress, vCenterUserName, vCenterPassword);
      }
    }
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.