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

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


    private class RefreshCallback implements OperationProgressCallback {

        @Override
        public void handleProgressMessages(List<OperationProgressMessage> messages) {
            if (messages.size() == 1) {
                OperationProgressMessage m = messages.get(0);
                updateUi(m);
            }
        }
View Full Code Here


    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

                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.OperationProgressMessage

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.