|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.compat.harness.Config
This class processes and holds the configuration information for
all the tests being run. The Runner
generates
a single Config and passes it to each test using the setConfig
method on Test
. This class provides the
InstrumentedClassServer
, the SysConfig
and the BasicAdmin
for the current run of the LDJ Kit.
It also sets up the codebase and the security manager when it
is constructed.
Field Summary | |
static int |
ALL
Debug Level that prints extra information throughout the run. |
static int |
ERROR
Debug Level that prints extra information when something unexpected happens. |
static int |
NONE
Debug Level that prints no extra information. |
Constructor Summary | |
Config(java.lang.String pfn,
InstrumentedClassServer classServer,
java.io.PrintWriter log)
Constructor for the Config class. |
|
Config(java.lang.String pfn,
java.io.PrintWriter log)
Constructor for the Config class. |
Method Summary | |
BasicAdmin |
getAdmin()
Method returns the admin for this run of the LDJ Kit. |
InstrumentedClassServer |
getClassServer()
Method returns the class server for this run of the LDJ Kit. |
int |
getDebugLevel()
Returns the current debug level of the LDJ Kit. |
int |
getFailureTime()
Returns the Failure Time value from SysConfig. |
java.io.PrintWriter |
getLog()
Returns the log PrintWriter for this run of the LDJ Kit. |
int |
getQuietTime()
Returns the Quiet Time value. |
SysConfig |
getSysConfig()
Method returns the SysConfig for this run of the
LDJ Kit. |
boolean |
isOfficial()
Returns whether this is an official run or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int ERROR
public static final int ALL
Constructor Detail |
public Config(java.lang.String pfn, InstrumentedClassServer classServer, java.io.PrintWriter log) throws java.lang.Exception
pfn
- the path/filename of the config property fileclassServer
- a reference to a currently running
InstrumentedClassServer
log
- an instance of java.io.PrintWriter
through which all test output is writtenpublic Config(java.lang.String pfn, java.io.PrintWriter log) throws java.lang.Exception
pfn
- the path/filename of the config property filelog
- an instance of java.io.PrintWriter
through which all test output is writtenMethod Detail |
public InstrumentedClassServer getClassServer()
public SysConfig getSysConfig()
SysConfig
for this run of the
LDJ Kit. It is used by tests to get access to the LDJ Kit property
file.
SysConfig
public BasicAdmin getAdmin()
BasicAdmin
.
public int getQuietTime()
com.sun.jini.compat.unofficialQuietTime
is set, then its value is used. If this value is less than the
official Quiet Time, then the run of the LDJ Kit is unofficial (used
for testing/debugging purposes only).
public int getFailureTime()
public java.io.PrintWriter getLog()
PrintWriter
for this run of the LDJ Kit.
PrintWriter
public int getDebugLevel()
The debug level is obtained from the property:
com.sun.jini.compat.debugLevel
public boolean isOfficial()
true
if this is an official run
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |