public class MutableCloudTask extends java.lang.Object implements Cloud.CloudTask
Constructor and Description |
---|
MutableCloudTask(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Cloud.CloudTaskListener listener) |
void |
failed(java.lang.String message) |
void |
finished() |
java.lang.String |
getName() |
double |
getPercentCompleted() |
java.lang.String |
getStatusLine() |
boolean |
isFinished() |
boolean |
isUsingDefaultListener() |
void |
removeListener(Cloud.CloudTaskListener listener) |
void |
setDefaultListener(Cloud.CloudTaskListener defaultListener)
A listener used only if no other listeners are present.
|
void |
setUseDefaultListener(boolean enabled) |
void |
update(java.lang.String substatus,
double percentDone) |
public java.lang.String getName()
getName
in interface Cloud.CloudTask
public java.lang.String getStatusLine()
getStatusLine
in interface Cloud.CloudTask
public double getPercentCompleted()
getPercentCompleted
in interface Cloud.CloudTask
public void addListener(Cloud.CloudTaskListener listener)
addListener
in interface Cloud.CloudTask
public void removeListener(Cloud.CloudTaskListener listener)
removeListener
in interface Cloud.CloudTask
public boolean isFinished()
isFinished
in interface Cloud.CloudTask
public void setUseDefaultListener(boolean enabled)
setUseDefaultListener
in interface Cloud.CloudTask
public void update(java.lang.String substatus, double percentDone)
public void finished()
public void failed(java.lang.String message)
public void setDefaultListener(Cloud.CloudTaskListener defaultListener)
public boolean isUsingDefaultListener()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.