Updated OperationMonitor

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-monitor-widget@99249 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-08-08 16:16:28 +00:00 committed by Giancarlo Panichi
parent 440b7d8e13
commit 80b1f97e7d
3 changed files with 12 additions and 8 deletions

View File

@ -123,12 +123,12 @@ public class MonitorDialog extends Window implements MonitorUpdaterListener {
}
@Override
public void monitorFailed(Throwable caught, String reason, String failureDetails) {
public void monitorFailed(Throwable caught, String reason, String details) {
if (caught instanceof TDGWTSessionExpiredException) {
eventBus.fireEvent(new SessionExpiredEvent(
SessionExpiredType.EXPIREDONSERVER));
} else {
fireOperationFailed(caught,reason);
fireOperationFailed(caught,reason,details);
hide();
}
@ -170,9 +170,9 @@ public class MonitorDialog extends Window implements MonitorUpdaterListener {
listener.operationComplete(trId);
}
protected void fireOperationFailed(Throwable caught, String reason) {
protected void fireOperationFailed(Throwable caught, String reason, String details) {
for (MonitorDialogListener listener : listeners)
listener.operationFailed(caught,reason);
listener.operationFailed(caught,reason, details);
}
protected void fireOperationStopped(TRId trId, String reason, String details) {

View File

@ -19,10 +19,12 @@ public interface MonitorDialogListener {
/**
* Called when the operation is failed.
*
* @param caught
* @param reason
* @param details
*/
public void operationFailed(Throwable caught, String reason);
public void operationFailed(Throwable caught, String reason, String details);

View File

@ -39,10 +39,12 @@ public interface MonitorUpdaterListener {
/**
* Called when the operation is failed.
* @param caught the failure exception.
* @param reason the failure reason.
*
* @param caught
* @param reason
* @param details
*/
public void monitorFailed(Throwable caught, String reason, String failureDetails);
public void monitorFailed(Throwable caught, String reason, String details);
/**
* Called when the operation is stopped