3 * Copyright (C) 2012 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.common
.monitor
;
13 * @author Andreas Kohlbecker
17 public class RestServiceProgressMonitor
extends DefaultProgressMonitor
implements IRestServiceProgressMonitor
{
19 public static final int STOPPED_WORK_INDICATOR
= -1;
21 private boolean isFailed
;
23 private boolean isDone
;
25 public RestServiceProgressMonitor(){
29 public String
getTaskName(){
33 public String
getSubTask(){
37 public int getTotalWork() {
41 public double getWorkDone() {
45 public boolean isFailed() {
49 public void setIsFailed(boolean isStopped
) {
50 this.isFailed
= isStopped
;
54 * @see eu.etaxonomy.cdm.common.IProgressMonitor#worked(int)
57 public void worked(int work
) {
66 public void internalWorked(double work
) {
70 super.internalWorked(work
);
73 public boolean isDone() {
77 public void setDone(boolean isDone
) {