From 1f4f39c1220667016e2c4d0adb74e25de2538d71 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 28 Nov 2013 18:47:08 +0000 Subject: [PATCH] Minor updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@86341 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../shared/csv/CSVExportMonitor.java | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/main/java/org/gcube/portlets/user/td/gwtservice/shared/csv/CSVExportMonitor.java diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/csv/CSVExportMonitor.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/csv/CSVExportMonitor.java new file mode 100644 index 0000000..0e84303 --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/csv/CSVExportMonitor.java @@ -0,0 +1,94 @@ +/** + * + */ +package org.gcube.portlets.user.td.gwtservice.shared.csv; + +import java.io.Serializable; + +import org.gcube.portlets.user.td.gwtservice.shared.task.State; +import org.gcube.portlets.user.td.gwtservice.shared.tr.TRId; +import org.gcube.portlets.user.td.gwtservice.shared.tr.metadata.TRExportMetadata; + +/** + * + * @author "Giancarlo Panichi" + * g.panichi@isti.cnr.it + * + */ +public class CSVExportMonitor implements Serializable { + +private static final long serialVersionUID = -5998841163159590481L; + + protected float progress; + protected State status; + protected String statusDescription; + protected Throwable error; + protected TRId trId; + protected TRExportMetadata trExportMetadata; + + + public float getProgress(){ + return progress; + }; + + public State getStatus(){ + return status; + } + + public String getStatusDescription(){ + return statusDescription; + } + + public void setProgress(float progress) { + this.progress = progress; + } + + public void setStatus(State status) { + this.status = status; + } + + public void setStatus(int status) { + this.status = State.values()[status]; + } + + public TRExportMetadata getTrExportMetadata() { + return trExportMetadata; + } + + public void setTrExportMetadata(TRExportMetadata trExportMetadata) { + this.trExportMetadata = trExportMetadata; + } + + public void setStatusDescription(String statusDescription) { + this.statusDescription = statusDescription; + } + + public Throwable getError() { + return error; + } + + public void setError(Throwable error) { + this.error = error; + } + + public TRId getTrId() { + return trId; + } + + public void setTrId(TRId trId) { + this.trId = trId; + } + + @Override + public String toString() { + return "CSVExportMonitor [progress=" + progress + ", status=" + status + + ", statusDescription=" + statusDescription + ", error=" + + error + ", trId=" + trId + ", trExportMetadata=" + + trExportMetadata + "]"; + } + + + + + +}