Search in sources :

Example 1 with VsanClusterConfigInfo

use of com.vmware.vim25.VsanClusterConfigInfo in project photon-model by vmware.

the class ComputeResourceOverlay method isVsanEnabled.

public boolean isVsanEnabled() {
    ClusterConfigInfoEx info = getClusterConfigInfoEx();
    Boolean isVsanEnabled = false;
    if (null != info) {
        VsanClusterConfigInfo vsanConfig = info.getVsanConfigInfo();
        isVsanEnabled = null == vsanConfig ? false : vsanConfig.isEnabled();
    }
    return isVsanEnabled;
}
Also used : ClusterConfigInfoEx(com.vmware.vim25.ClusterConfigInfoEx) VsanClusterConfigInfo(com.vmware.vim25.VsanClusterConfigInfo)

Example 2 with VsanClusterConfigInfo

use of com.vmware.vim25.VsanClusterConfigInfo in project photon-model by vmware.

the class ComputeResourceOverlay method getVsanConfigId.

public String getVsanConfigId() {
    ClusterConfigInfoEx info = getClusterConfigInfoEx();
    String vsanConfigId = "";
    if (null != info) {
        VsanClusterConfigInfo vsanConfig = info.getVsanConfigInfo();
        vsanConfigId = null == vsanConfig.getDefaultConfig().getUuid() ? "" : vsanConfig.getDefaultConfig().getUuid();
    }
    return vsanConfigId;
}
Also used : ClusterConfigInfoEx(com.vmware.vim25.ClusterConfigInfoEx) VsanClusterConfigInfo(com.vmware.vim25.VsanClusterConfigInfo)

Aggregations

ClusterConfigInfoEx (com.vmware.vim25.ClusterConfigInfoEx)2 VsanClusterConfigInfo (com.vmware.vim25.VsanClusterConfigInfo)2