public class ImportStatusFile
extends java.io.File
Modifier and Type | Field and Description |
---|---|
static int |
ERR_FILE_NOT_FOUND
Numeric constant for status for "file not found"
|
static int |
ERR_MANUALLY_ABORTED
Numeric constant for manually aborted testruns (used by importtool monitor)
|
static int |
ERR_ODS_ERROR
Numeric constant for common ODS errors
|
static int |
ERR_SYNTAX_ERROR
Numeric constant for syntax error in il file
|
static int |
ERR_UNKNOWN_CONSTANT
Numeric constant for invalid testrun status
|
static int |
ERR_WRONG_NR_OF_ARGS
Numeric constant for wrong number of arguments in a command
|
static int |
INFO_UNKNOWN |
static int |
RELEASE
Constant for release information in is file header
|
static int |
SUCCESS
Numeric constant for status "success"
|
static int |
VERSION
Constant for version information in is file header
|
static int |
WARN_COPY_FILE_ERROR
Unable to copy file to result directory
|
static int |
WARN_CREATE_SESSION
Unable to create ODS session
|
static int |
WARN_FILE_NOT_FOUND
Numeric constant for "file not found" warnings.
|
static int |
WARN_INSTANCE_NOT_FOUND
Numeric constant for ODS instance not found
|
static int |
WARN_INTERNAL_ERROR
Uncaught Exception in Importtool
|
static int |
WARN_ODS_ERROR
Common ODS warning
|
static int |
WARN_READING_IL_FILE
Read error in il file
|
static int |
WARN_TOO_MANY_IL_FILES
More then one il File and no is file in import directory
|
static int |
WARN_WRITE_FILE_ERROR
Unable to write cache file
|
Constructor and Description |
---|
ImportStatusFile(java.lang.String pathName)
Create the ImportStatusFileObject.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Get the error code from the import status file
|
java.lang.String |
getErrorText()
Get the error text from the import status file
|
int |
getExtensionNumber()
Get the last processed extension number from the Import Status File
|
int |
getLastSuccessfulLine()
Get the last successfully processed line from the Import Status File
|
T_LONGLONG |
getTestRunId()
Get the Id of the test from the Import Status File
|
boolean |
readFile()
Read the import status file and store the values in fields.
|
void |
setError(int code,
java.lang.String text)
Set the errorCode
|
void |
setExtensionNumber(int nr)
Set the extension number.
|
void |
setLastSuccessfulLine(int line)
Set the last successfully processed line.
|
void |
setTestRunId(T_LONGLONG id)
Set the id of the testrun
|
boolean |
writeFile()
Write the import status file with the currently set values.
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public static final int VERSION
public static final int RELEASE
public static final int SUCCESS
public static final int ERR_ODS_ERROR
public static final int ERR_WRONG_NR_OF_ARGS
public static final int ERR_FILE_NOT_FOUND
public static final int ERR_UNKNOWN_CONSTANT
public static final int ERR_SYNTAX_ERROR
public static final int ERR_MANUALLY_ABORTED
public static final int WARN_FILE_NOT_FOUND
public static final int WARN_INSTANCE_NOT_FOUND
public static final int WARN_TOO_MANY_IL_FILES
public static final int WARN_READING_IL_FILE
public static final int WARN_WRITE_FILE_ERROR
public static final int WARN_COPY_FILE_ERROR
public static final int WARN_CREATE_SESSION
public static final int WARN_ODS_ERROR
public static final int WARN_INTERNAL_ERROR
public static final int INFO_UNKNOWN
public ImportStatusFile(java.lang.String pathName)
pathName
- absolute Pathname to import status filepublic boolean writeFile()
public boolean readFile()
public T_LONGLONG getTestRunId()
public int getExtensionNumber()
public int getLastSuccessfulLine()
public int getErrorCode()
public java.lang.String getErrorText()
public void setTestRunId(T_LONGLONG id)
id
- The testrun id.public void setExtensionNumber(int nr)
nr
- The extension number of the processed il-file.public void setLastSuccessfulLine(int line)
line
- Number of last processed line.public void setError(int code, java.lang.String text)
code
- The error code.text
- The error text.