|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.compat.harness.DefaultAdmin
An implementation of the BasicAdmin interface. This implementation is not program specific and it is not automated. It asks the person running the tests to manually start and stop the program being tested. Also it uses a property called: com.sun.jini.compat.defaultAdmin.address to specify the host the client is running on. If the property is not specified the default is the host the LDJ Kit harness is running on.
Constructor Summary | |
DefaultAdmin()
A basic no-arg constructor. |
|
DefaultAdmin(java.lang.String message)
A constructor that takes a message to be displayed with the various user input requests. |
Method Summary | |
java.net.InetAddress |
getAddress()
Returns the address of the host the program is running on by looking up the property com.sun.jini.compat.defaultAdmin.address. |
protected Config |
getConfig()
Returns the Config object for this run of the LDJ Kit. |
void |
setConfig(Config conf)
See comments for BasicAdmin . |
void |
start()
Prompt the user to start the program. |
void |
stop()
Prompt the user to stop the program. |
protected char |
waitForChar()
Wait for a character to be read in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultAdmin()
public DefaultAdmin(java.lang.String message)
message
- a message to be displayed with the user input
requests.Method Detail |
public void setConfig(Config conf)
BasicAdmin
.
setConfig
in interface BasicAdmin
conf
- the configuration objectprotected Config getConfig()
protected char waitForChar()
System.in
public void start() throws java.rmi.RemoteException
start
in interface BasicAdmin
java.rmi.RemoteException
public java.net.InetAddress getAddress() throws java.rmi.RemoteException
getAddress
in interface BasicAdmin
java.rmi.RemoteException
public void stop() throws java.rmi.RemoteException
stop
in interface BasicAdmin
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |