Search in sources :

Example 1 with VdcPostCheckParam

use of com.emc.storageos.geomodel.VdcPostCheckParam in project coprhd-controller by CoprHD.

the class ConnectVdcTaskOp method statusUpdate.

private void statusUpdate() {
    // step 5: update vdc connection status if post check succeed at each site
    List<VirtualDataCenter> vdcList = getToBeSyncedVdc();
    // fill the check param
    VdcPostCheckParam checkParam = new VdcPostCheckParam();
    checkParam.setConfigChangeType(changeType().toString());
    checkParam.setRootTenantId(helper.getVdcRootTenantId());
    // all connected vdc
    List<URI> vdcIds = new ArrayList<>();
    for (VirtualDataCenter vdc : vdcList) {
        vdcIds.add(vdc.getId());
    }
    vdcIds.add(myVdc.getId());
    checkParam.setVdcList(vdcIds);
    log.info("status update to {}", checkParam.getVdcList());
    sendPostCheckMsg(vdcList, checkParam);
}
Also used : VirtualDataCenter(com.emc.storageos.db.client.model.VirtualDataCenter) ArrayList(java.util.ArrayList) VdcPostCheckParam(com.emc.storageos.geomodel.VdcPostCheckParam) URI(java.net.URI)

Aggregations

VirtualDataCenter (com.emc.storageos.db.client.model.VirtualDataCenter)1 VdcPostCheckParam (com.emc.storageos.geomodel.VdcPostCheckParam)1 URI (java.net.URI)1 ArrayList (java.util.ArrayList)1