public class RestServiceProgressMonitor extends DefaultProgressMonitor implements IRestServiceProgressMonitor
Modifier and Type | Field and Description |
---|---|
static int |
STOPPED_WORK_INDICATOR |
subTask, taskName, totalWork, workDone
UNKNOWN
Constructor and Description |
---|
RestServiceProgressMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
done()
Notifies that the work is done; that is, either the main task is completed
or the user canceled it.
|
java.lang.String |
getOrigin() |
java.lang.String |
getSubTask() |
java.lang.String |
getTaskName() |
int |
getTotalWork() |
double |
getWorkDone() |
void |
internalWorked(double work)
Internal method to handle scaling correctly.
|
boolean |
isDone() |
boolean |
isFailed()
Whether an
Exception or another event was causing the monitored process to stop before it has been fully worked. |
void |
setDone(boolean isDone) |
void |
setIsFailed(boolean isStopped)
Should be set true if an
Exception or another event was causing the monitored process to stop before it has been fully worked. |
void |
setOrigin(java.lang.String origin)
Should be set if original request has to be specified
|
void |
worked(int work)
Notifies that a given number of work unit of the main task
has been completed.
|
beginTask, getFeedback, getIsWaitingForFeedback, getOwner, getPercentage, getPercentageRounded, hasFeedbackWaitTimedOut, interrupt, isCanceled, NewInstance, setCanceled, setFeedback, setOwner, setTaskName, subTask, waitForFeedback, waitForFeedback, warning, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPercentage
beginTask, getFeedback, getIsWaitingForFeedback, getOwner, hasFeedbackWaitTimedOut, interrupt, isCanceled, setCanceled, setFeedback, setOwner, setTaskName, subTask, waitForFeedback, waitForFeedback, warning, warning
public static final int STOPPED_WORK_INDICATOR
public java.lang.String getTaskName()
getTaskName
in interface IRestServiceProgressMonitor
public java.lang.String getSubTask()
getSubTask
in interface IRestServiceProgressMonitor
public int getTotalWork()
getTotalWork
in interface IRestServiceProgressMonitor
public double getWorkDone()
getWorkDone
in interface IRestServiceProgressMonitor
public boolean isFailed()
IRestServiceProgressMonitor
Exception
or another event was causing the monitored process to stop before it has been fully worked.isFailed
in interface IRestServiceProgressMonitor
public void setIsFailed(boolean isStopped)
IRestServiceProgressMonitor
Exception
or another event was causing the monitored process to stop before it has been fully worked.setIsFailed
in interface IRestServiceProgressMonitor
public void worked(int work)
IProgressMonitor
worked
in interface IProgressMonitor
worked
in class DefaultProgressMonitor
work
- a non-negative number of work units just completedpublic void internalWorked(double work)
IProgressMonitor
internalWorked
in interface IProgressMonitor
internalWorked
in class DefaultProgressMonitor
work
- the amount of work donepublic boolean isDone()
isDone
in interface IRestServiceProgressMonitor
public void setDone(boolean isDone)
setDone
in interface IRestServiceProgressMonitor
public void done()
IProgressMonitor
done
in interface IProgressMonitor
done
in class DefaultProgressMonitor
public void setOrigin(java.lang.String origin)
IRestServiceProgressMonitor
setOrigin
in interface IRestServiceProgressMonitor
public java.lang.String getOrigin()
getOrigin
in interface IRestServiceProgressMonitor
Copyright © 2007-2020 EDIT. All Rights Reserved.