public class ImportDataTask extends DBUTask
Modifier and Type | Field and Description |
---|---|
private static java.lang.Thread |
cvThread
The thread running the import data task.
|
private java.lang.String |
ivFilePath
The fully qualified path to the import file.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
ImportDataTask()
Constructs a new instance of the import data task with a
null
servlet or thread context. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFile()
Returns the import file being processed.
|
static boolean |
isRunning()
Answers if the task is currently running.
|
void |
run()
Runs the import data task.
|
void |
setFile(java.lang.String filePath)
Sets the import file being processed.
|
getContext, setContext
private static final long serialVersionUID
private static java.lang.Thread cvThread
private java.lang.String ivFilePath
public ImportDataTask()
null
servlet or thread context.
A CONTEXT MUST BE SET BEFORE INVOKING ANY OTHER METHODS.
.public void run()
Runnable
interface.public static boolean isRunning()
true
if the task is currently running,
otherwise false
.public java.lang.String getFile()
public void setFile(java.lang.String filePath)
filePath
- (String) The fully qualified path to the import file.