Package org.jitterbit.integration.activity.client.progress

Examples of org.jitterbit.integration.activity.client.progress.ProgressSnapshot


    public static final class Progress implements Function<WsOperationProgress, OperationProgressMessage> {

        @Override
        public OperationProgressMessage apply(WsOperationProgress ws) {
            ProgressSnapshot snapshot = new ProgressSnapshot(ws.getSection(), ws.getMessage(), ws.getPercentageDone(), getEndTime(ws));
            return new OperationProgressMessage(new OperationId(ws.getOperationGuid()), ws.getOperationInstanceId(), snapshot);
        }
View Full Code Here


            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);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.activity.client.progress.ProgressSnapshot

Copyright © 2018 www.massapicom. 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.