List<OperationProgressMessage> result = Lists.newArrayList();
if (where < progression.length) {
LogStatus status = progression[where];
if (status != LogStatus.PENDING) {
int percentageDone = 20 * where;
ProgressSnapshot snapshot = new ProgressSnapshot("Sending data", messages[where], percentageDone,
new Date(System.currentTimeMillis() + (100 - percentageDone) * 2000000L));
result.add(new OperationProgressMessage(opId, request.opInstanceId, snapshot));
}
}
callback.handleProgressMessages(result);