Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@99643 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-09-09 17:17:07 +00:00
parent 93c2f4f266
commit 68b93ff45d
4 changed files with 87 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.file.HeaderPresence;
import org.gcube.portlets.user.td.gwtservice.shared.history.OpHistory;
import org.gcube.portlets.user.td.gwtservice.shared.history.RollBackSession;
import org.gcube.portlets.user.td.gwtservice.shared.licenses.LicenceData;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.BackgroundOperationMonitorSession;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitor;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitorSession;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXExportSession;
@ -863,6 +864,18 @@ public interface TDGWTService extends RemoteService {
OperationMonitorSession operationMonitorSession)
throws TDGWTServiceException;
/**
* Get List of Background Operation Monitor
*
* @param backgroundOperationMonitorSession
* @return
* @throws TDGWTServiceException
*/
public ArrayList<OperationMonitor> getBackgroundOperationMonitor(
BackgroundOperationMonitorSession backgroundOperationMonitorSession)
throws TDGWTServiceException;
// File Upload Monitor
/**
* Get File Upload Monitor during the file upload operation in Import CSV

View File

@ -16,6 +16,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.file.HeaderPresence;
import org.gcube.portlets.user.td.gwtservice.shared.history.OpHistory;
import org.gcube.portlets.user.td.gwtservice.shared.history.RollBackSession;
import org.gcube.portlets.user.td.gwtservice.shared.licenses.LicenceData;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.BackgroundOperationMonitorSession;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitor;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitorSession;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXExportSession;
@ -317,6 +318,9 @@ public interface TDGWTServiceAsync {
// Operation Monitor
void getOperationMonitor(OperationMonitorSession operationMonitorSession,
AsyncCallback<OperationMonitor> callback);
void getBackgroundOperationMonitor(BackgroundOperationMonitorSession backgroundOperationMonitorSession,
AsyncCallback<ArrayList<OperationMonitor>> callback);
// File Upload Monitor
void getFileUploadMonitor(AsyncCallback<FileUploadMonitor> callback);

View File

@ -152,6 +152,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.file.HeaderPresence;
import org.gcube.portlets.user.td.gwtservice.shared.history.OpHistory;
import org.gcube.portlets.user.td.gwtservice.shared.history.RollBackSession;
import org.gcube.portlets.user.td.gwtservice.shared.licenses.LicenceData;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.BackgroundOperationMonitorSession;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitor;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitorCreator;
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitorSession;
@ -6371,4 +6372,13 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
@Override
public ArrayList<OperationMonitor> getBackgroundOperationMonitor(
BackgroundOperationMonitorSession backgroundOperationMonitorSession)
throws TDGWTServiceException {
// TODO Auto-generated method stub
ArrayList<OperationMonitor> backgroundOperationMonitorList= new ArrayList<OperationMonitor>();
return backgroundOperationMonitorList;
}
}

View File

@ -0,0 +1,60 @@
package org.gcube.portlets.user.td.gwtservice.shared.monitor;
import java.io.Serializable;
import java.util.ArrayList;
/**
*
* @author giancarlo email: <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class BackgroundOperationMonitorSession implements Serializable {
private static final long serialVersionUID = 2175453217961108582L;
private ArrayList<OperationMonitorSession> operationMonitorSessionList;
public BackgroundOperationMonitorSession() {
super();
operationMonitorSessionList = new ArrayList<OperationMonitorSession>();
}
public BackgroundOperationMonitorSession(
ArrayList<OperationMonitorSession> operationMonitorSessionList) {
super();
this.operationMonitorSessionList = operationMonitorSessionList;
}
public ArrayList<OperationMonitorSession> getOperationMonitorSessionList() {
return operationMonitorSessionList;
}
public void setOperationMonitorSessionList(
ArrayList<OperationMonitorSession> operationMonitorSessionList) {
this.operationMonitorSessionList = operationMonitorSessionList;
}
public void addToOperationMonitorSessionList(OperationMonitorSession operationMonitorSession) {
if (operationMonitorSession != null
&& operationMonitorSession.getTaskId() != null
&& !operationMonitorSession.getTaskId().isEmpty()) {
for (OperationMonitorSession ops : operationMonitorSessionList) {
if (ops.getTaskId().compareTo(
operationMonitorSession.getTaskId()) == 0) {
operationMonitorSessionList.remove(ops);
operationMonitorSessionList.add(operationMonitorSession);
return;
}
}
operationMonitorSessionList.add(operationMonitorSession);
}
}
@Override
public String toString() {
return "BackgroundOperationMonitorSession [operationMonitorSessionList="
+ operationMonitorSessionList + "]";
}
}