@Override public StorageOperationResponse<PostProcessTakeSnapshotResponse> postProcessTakeSnapshot( PostProcessTakeSnapshotRequest request) { PostProcessTakeSnapshotResponse payload = new PostProcessTakeSnapshotResponse(); StorageOperationResponse<PostProcessTakeSnapshotResponse> response = new StorageOperationResponse<PostProcessTakeSnapshotResponse>(payload); response.setContext(request.takeSnapshotResult); StorageOperationId id = new StorageOperationId(); id.id = OpenstackAdapterUtil.generateOperationId(); id.type = "snapshot"; response.setId(id); response.setPercentCompleted(0); response.setStatus(StorageOperationStatus.EXECUTING); return response; }
@Override public StorageOperationResponse<PostProcessCloneVolumesResponse> postProcessCloneVolumes( PostProcessCloneVolumesRequest request) { logger.log( IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), "postProcessCloneVolumes: request:" + request, null); OpenstackFileCloneVolumesContext context = (OpenstackFileCloneVolumesContext) request.cloneVolumesResult; PostProcessCloneVolumesResponse payload = new PostProcessCloneVolumesResponse(); StorageOperationResponse<PostProcessCloneVolumesResponse> response = new StorageOperationResponse<PostProcessCloneVolumesResponse>(); StorageOperationId operation = new StorageOperationId(); operation.id = context.operationId; operation.type = "clone"; response.setContext(context); response.setId(operation); response.setPayload(payload); response.setPercentCompleted(0); response.setStatus(StorageOperationStatus.EXECUTING); return response; }