2014-08-08 16:39:25 +02:00
|
|
|
package org.gcube.portlets.user.td.monitorwidget.client;
|
|
|
|
|
2014-08-08 17:42:20 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitor;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines a listener for operation progress.
|
|
|
|
*
|
2017-05-30 12:13:29 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2014-08-08 17:42:20 +02:00
|
|
|
*
|
|
|
|
*/
|
2014-08-08 16:39:25 +02:00
|
|
|
public interface MonitorUpdaterListener {
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 16:39:25 +02:00
|
|
|
/**
|
2014-08-08 17:42:20 +02:00
|
|
|
* Called when the operation is starting.
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
|
|
|
* @param operationMonitor
|
|
|
|
* Operation monitor
|
2014-08-08 17:42:20 +02:00
|
|
|
*/
|
2014-08-26 16:20:34 +02:00
|
|
|
public void monitorInitializing(OperationMonitor operationMonitor);
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 17:42:20 +02:00
|
|
|
/**
|
|
|
|
* Called when there is a progress for the operation.
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
|
|
|
* @param operationMonitor
|
|
|
|
* Operation monitor
|
2014-08-08 17:42:20 +02:00
|
|
|
*/
|
2014-08-26 16:20:34 +02:00
|
|
|
public void monitorUpdate(OperationMonitor operationMonitor);
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 17:42:20 +02:00
|
|
|
/**
|
|
|
|
* Called when there is a validate for the operation.
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
|
|
|
* @param operationMonitor
|
|
|
|
* Operation monitor
|
2014-08-08 16:39:25 +02:00
|
|
|
*/
|
2017-05-30 12:13:29 +02:00
|
|
|
public void monitorValidate(OperationMonitor operationMonitor);
|
|
|
|
|
2014-08-08 17:42:20 +02:00
|
|
|
/**
|
|
|
|
* Called when the operation is complete.
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
|
|
|
* @param operationMonitor
|
|
|
|
* Operation monitor
|
2014-08-08 17:42:20 +02:00
|
|
|
*/
|
2015-01-29 18:30:37 +01:00
|
|
|
public void monitorComplete(OperationMonitor operationMonitor);
|
2014-08-08 17:42:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is failed.
|
2014-08-08 18:16:28 +02:00
|
|
|
*
|
|
|
|
* @param caught
|
2017-05-30 12:13:29 +02:00
|
|
|
* Error
|
2014-08-08 18:16:28 +02:00
|
|
|
* @param reason
|
2017-05-30 12:13:29 +02:00
|
|
|
* Reason
|
2014-08-08 18:16:28 +02:00
|
|
|
* @param details
|
2017-05-30 12:13:29 +02:00
|
|
|
* Details
|
|
|
|
* @param operationMonitor
|
|
|
|
* Operation monitor
|
2014-08-08 17:42:20 +02:00
|
|
|
*/
|
2014-08-28 13:18:30 +02:00
|
|
|
public void monitorFailed(Throwable caught, String reason, String details, OperationMonitor operationMonitor);
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 16:39:25 +02:00
|
|
|
/**
|
2014-08-08 17:42:20 +02:00
|
|
|
* Called when the operation is stopped
|
2015-01-29 18:30:37 +01:00
|
|
|
*
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
2014-08-08 17:42:20 +02:00
|
|
|
* @param reason
|
2017-05-30 12:13:29 +02:00
|
|
|
* Reason
|
2014-08-08 17:42:20 +02:00
|
|
|
* @param details
|
2017-05-30 12:13:29 +02:00
|
|
|
* Details
|
|
|
|
* @param operationMonitor
|
|
|
|
* Operation monitor
|
2014-08-08 17:42:20 +02:00
|
|
|
*/
|
2015-01-29 18:30:37 +01:00
|
|
|
public void monitorStopped(String reason, String details, OperationMonitor operationMonitor);
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 18:50:46 +02:00
|
|
|
/**
|
|
|
|
* Called when the operation is aborted
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
2014-08-08 18:50:46 +02:00
|
|
|
*/
|
|
|
|
public void monitorAborted();
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 18:50:46 +02:00
|
|
|
/**
|
2017-05-30 12:13:29 +02:00
|
|
|
* Called when the operation is put in background
|
2014-08-08 18:50:46 +02:00
|
|
|
*/
|
|
|
|
public void monitorPutInBackground();
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 17:42:20 +02:00
|
|
|
/**
|
2017-05-30 12:13:29 +02:00
|
|
|
* Called when the operation is generating the view
|
|
|
|
*
|
|
|
|
* @param operationMonitor Operation monitor
|
2014-08-08 16:39:25 +02:00
|
|
|
*/
|
2014-08-26 16:20:34 +02:00
|
|
|
public void monitorGeneratingView(OperationMonitor operationMonitor);
|
2017-05-30 12:13:29 +02:00
|
|
|
|
2014-08-08 16:39:25 +02:00
|
|
|
}
|