public class StatusInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
STATE_RUNNING |
static int |
STATE_STARTING
importtool state
|
static int |
STATE_STOPPING |
static int |
STATE_UNKNOWN |
Constructor and Description |
---|
StatusInfo(java.lang.String pathName)
Create a StatusInfo object and add it to the static HashTable
"statusInformation".
|
Modifier and Type | Method and Description |
---|---|
static int |
getActiveImports()
Get the number of active imports
|
long |
getCreatedTimestamp()
Get timestamp when directory was created
|
static StatusInfo |
getHandle(java.lang.String pathName)
Get a StatusInfo object from the static HashTable by its pathName.
|
long |
getId()
Get the testrun id
|
int |
getIlNumber() |
long |
getImportBeginTime() |
static int |
getImporttoolState() |
long |
getLastInserted()
Get the time when the last import for this testrun was done.
|
int |
getLineNumber() |
static long |
getLongestStepTime() |
java.lang.String |
getPathName() |
int |
getStatusCode() |
java.lang.String |
getStatusText() |
long |
getStepBeginTime() |
java.lang.String |
getStepName() |
java.lang.String |
getTestbedName()
Get the testbed name
|
java.lang.String |
getTestrunName()
Get the testrun name
|
static long |
getTimestampStarted()
Get the time when the Importtool was started.
|
boolean |
isDirectoryIgnored() |
boolean |
isImportActive() |
boolean |
isStepActive() |
static java.lang.String[] |
listImportDirectories() |
static void |
remove(java.lang.String pathName)
Remove a StatusInfo object from the static HashTable Must be done when an
import directory is removed.
|
void |
setCreated(long created)
Set the time when the testrun was first time processed by the importtool.
|
void |
setDirectoryIgnored(boolean directoryIgnored) |
void |
setId(java.lang.String id) |
void |
setId(T_LONGLONG id)
Set the ODS-Id of the testrun
|
void |
setIlNumber(int ilNumber)
Set the Sequence number of the last processed il file.
|
void |
setImportActive()
Set "import active" flag and increment number of active testruns
|
void |
setImportActive(boolean importActive) |
void |
setImportBeginTime(long importBeginTime) |
void |
setImportInactive()
Clear "import active" flag and decrement number of active testruns
|
static void |
setImporttoolState(int importtoolState) |
void |
setLastInserted(long lastInserted)
Set the time when the last import for this testrun was done.
|
void |
setLineNumber(int lineNumber) |
void |
setPathName(java.lang.String pathName) |
void |
setStatus(int statusCode,
java.lang.String statusText)
Set status code and text of the last import.
|
void |
setStatusCode(int statusCode) |
void |
setStatusText(java.lang.String statusText) |
void |
setStepActive(boolean stepActive) |
void |
setStepBeginTime(long stepBeginTime) |
void |
setStepFinished()
Unset the active step.
|
void |
setStepName(java.lang.String stepName) |
void |
setStepStarted(java.lang.String stepName)
Set the active step during import.
|
void |
setTestbedName(java.lang.String testbedName) |
void |
setTestrunName(java.lang.String testrunName) |
public static final int STATE_STARTING
public static final int STATE_RUNNING
public static final int STATE_STOPPING
public static final int STATE_UNKNOWN
public StatusInfo(java.lang.String pathName)
pathName
- Relative Path of the watched directory.public void setLastInserted(long lastInserted)
lastInserted
- Time of last insert in ms since 1.1.1970public long getLastInserted()
public java.lang.String getTestbedName()
public java.lang.String getTestrunName()
public long getId()
public long getCreatedTimestamp()
public static long getTimestampStarted()
public void setCreated(long created)
created
- Timestamp when the testrun was first processed in ms since
1.1.1970.public void setStatus(int statusCode, java.lang.String statusText)
statusCode
- Statuscode that has been written to the is file.statusText
- Statustext that has been written to the is file.public void setStepStarted(java.lang.String stepName)
stepName
- Name of started step.public void setStepFinished()
public void setId(T_LONGLONG id)
id
- The ODS Idpublic void setIlNumber(int ilNumber)
ilNumber
- The sequence numberpublic static void remove(java.lang.String pathName)
pathName
- relative pathname of testrun to be removed.public static StatusInfo getHandle(java.lang.String pathName)
pathName
- relative pathname of testrun.public static java.lang.String[] listImportDirectories()
public void setImportActive()
public void setImportInactive()
public static int getActiveImports()
public boolean isImportActive()
public void setImportActive(boolean importActive)
public java.lang.String getPathName()
public void setPathName(java.lang.String pathName)
public int getStatusCode()
public void setStatusCode(int statusCode)
public java.lang.String getStatusText()
public void setStatusText(java.lang.String statusText)
public boolean isStepActive()
public void setStepActive(boolean stepActive)
public long getStepBeginTime()
public void setStepBeginTime(long stepBeginTime)
public java.lang.String getStepName()
public void setStepName(java.lang.String stepName)
public int getIlNumber()
public void setId(java.lang.String id)
public void setTestbedName(java.lang.String testbedName)
public void setTestrunName(java.lang.String testrunName)
public long getImportBeginTime()
public void setImportBeginTime(long importBeginTime)
public boolean isDirectoryIgnored()
public void setDirectoryIgnored(boolean directoryIgnored)
public int getLineNumber()
public void setLineNumber(int lineNumber)
public static int getImporttoolState()
public static void setImporttoolState(int importtoolState)
public static long getLongestStepTime()