|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.LastRunInfo
public class LastRunInfo
Information about the last or current test run. This is an interface onto this meta-information stored in a work directory.
Method Summary | |
---|---|
java.lang.String |
getConfigName()
Get the name of the configuration that was used in the last test run. |
java.util.Date |
getFinishDate()
When did the last test run end. |
long |
getFinishTime()
When did the last test run end. |
java.util.Date |
getStartDate()
When did the last test run start. |
long |
getStartTime()
When did the last test run start. |
java.util.ArrayList |
getTestURLs()
Get the URLs of the tests that were executed in the last test run. |
static LastRunInfo |
readInfo(WorkDirectory wd)
Given a work directory, attempt to create an instance using the information found in it. |
static void |
writeInfo(WorkDirectory workdir,
long start,
long stop,
java.lang.String config,
java.util.ArrayList testURLs)
Given a work directory, write the given run information in it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long getStartTime()
Date
public long getFinishTime()
Date
public java.util.Date getStartDate()
Date
public java.util.Date getFinishDate()
Date
public java.lang.String getConfigName()
public java.util.ArrayList getTestURLs()
public static LastRunInfo readInfo(WorkDirectory wd) throws java.io.IOException
wd
- The work directory to create the information from.
java.io.IOException
- Occurs if the last run info is not available or if the
system has a problem while reading the file.public static void writeInfo(WorkDirectory workdir, long start, long stop, java.lang.String config, java.util.ArrayList testURLs) throws java.io.IOException
workdir
- The work directory to modify. Must be able to read-write
files inside it.start
- Time in milliseconds at which the last test run started.
Must be a non-negative number.stop
- Time in milliseconds at which the last test run terminated.
Must be a non-negative number.config
- Configuration name which was used to do the last test run.
May be null or empty string if necessary.
java.io.IOException
- If for any reason the information file cannot be
created, opened, written into or deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |