Package dap4.dap4lib.cdm.nc2
Class DapNetcdfFile.NullCancelTask
- java.lang.Object
-
- dap4.dap4lib.cdm.nc2.DapNetcdfFile.NullCancelTask
-
- All Implemented Interfaces:
CancelTask
- Enclosing class:
- DapNetcdfFile
protected static class DapNetcdfFile.NullCancelTask extends Object implements CancelTask
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NullCancelTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCancel()
Calling routine may cancel, called routine checks this method, and if true, return asap.boolean
isDone()
Application calls to see if task is done.void
setDone(boolean done)
Called routine sets operation was completed.void
setError(String msg)
Called routine got an error, so it sets a message for calling program to show to user.void
setProgress(String msg, int progress)
Called routine may optionally show a progress message for calling program to show to user.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.util.CancelTask
setSuccess
-
-
-
-
Method Detail
-
isCancel
public boolean isCancel()
Description copied from interface:CancelTask
Calling routine may cancel, called routine checks this method, and if true, return asap.- Specified by:
isCancel
in interfaceCancelTask
- Returns:
- true if task was cancelled
-
isDone
public boolean isDone()
Description copied from interface:CancelTask
Application calls to see if task is done.- Specified by:
isDone
in interfaceCancelTask
-
setDone
public void setDone(boolean done)
Description copied from interface:CancelTask
Called routine sets operation was completed.- Specified by:
setDone
in interfaceCancelTask
-
setError
public void setError(String msg)
Description copied from interface:CancelTask
Called routine got an error, so it sets a message for calling program to show to user.- Specified by:
setError
in interfaceCancelTask
- Parameters:
msg
- message to show user
-
setProgress
public void setProgress(String msg, int progress)
Description copied from interface:CancelTask
Called routine may optionally show a progress message for calling program to show to user.- Specified by:
setProgress
in interfaceCancelTask
- Parameters:
msg
- message to show userprogress
- count of progress
-
-