Package org.jitterbit.integration.activity.client.log

Examples of org.jitterbit.integration.activity.client.log.LogStatus


            e.setParentOpInstanceId(getOptionalLong(ws.getParentOperationInstanceId()));
            return e;
        }

        private static QueueStatus getStatus(WsOperationLogInstance ws) {
            LogStatus logStatus = LogStatus.fromServerId(ws.getStatus());
            switch (logStatus) {
            case PENDING:
                return QueueStatus.PENDING;
            case RUNNING:
                return QueueStatus.RUNNING;
View Full Code Here


    private static final class StatusRenderer extends DefaultTableCellRenderer {

        @Override
        protected void setValue(Object value) {
            if (value instanceof LogStatus) {
                LogStatus status = (LogStatus) value;
                Icon icon = PackageResources.getStatusIcon(status);
                setIcon(icon);
                setText(icon == null ? status.toString() : null);
                setToolTipText(status.toString());
                setHorizontalAlignment(JLabel.CENTER);
            } else {
                setToolTipText(null);
                setIcon(null);
                super.setValue(value);
View Full Code Here

        private final OperationId opId = new OperationId("ffbf2874-631e-44fe-af79-57f200643d18");
       
        @Override
        public synchronized void getOperationLog(OperationLogRequest request, GetOperationLogCallback callback) {
            updateTimeStamps();
            LogStatus status = progression[where];
            OperationLogEntry entry;
            if (status == LogStatus.SUCCESS) {
                entry = new OperationLogEntry(
                                opId,
                                "My Operation",
View Full Code Here

        @Override
        public void getOperationProgress(OperationProgressRequest request, OperationProgressCallback callback) {
            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));
View Full Code Here

        if (where == 0) {
            opId = new OperationId();
        }
        long opInstanceId = (request.opInstanceId == null) ? 100L : request.opInstanceId;
        updateTimeStamps();
        LogStatus status = progression[where];
        OperationLogEntry entry;
        if (status == LogStatus.SUCCESS) {
            entry = new OperationLogEntry(
                            opId,
                            "My Operation",
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.activity.client.log.LogStatus

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.