|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.compat.admin2.ExecServiceAdmin
This class implements the BasicServiceAdmin and BasicLookupAdmin interfaces to automate the testing of any transient or persistent programs. Some methods document properties that they support.
Field Summary |
Fields inherited from interface com.sun.jini.compat.harness.BasicServiceAdmin |
CATEGORY |
Fields inherited from interface com.sun.jini.compat.harness.BasicLookupAdmin |
CATEGORY |
Constructor Summary | |
ExecServiceAdmin()
Basic no-arg constructor. |
Method Summary | |
java.net.InetAddress |
getAddress()
Returns the address of this host. |
ServiceRegistrar |
getServiceRegistrar()
Returns the ServiceRegistrar from an already started Lookup. |
ServiceTemplate |
getTemplate()
Return a blank ServiceTemplate . |
ServiceItem |
pickService(ServiceItem[] services)
Given an array of service proxy objects, this method returns the first one that contains a proxy that implements the interface specified by the property com.sun.jini.compat.admin2.execServiceAdmin.interface . |
void |
setConfig(Config conf)
See comments for BasicAdmin . |
void |
start()
Using the Runtime.exe() method, starts the program(s)
by running the command given by the property
com.sun.jini.compat.admin2.execServiceAdmin.startCommand . |
void |
stop()
Stops the program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExecServiceAdmin()
Method Detail |
public void setConfig(Config conf)
BasicAdmin
.
setConfig
in interface BasicAdmin
conf
- the configuration objectpublic java.net.InetAddress getAddress() throws java.rmi.RemoteException
getAddress
in interface BasicAdmin
java.rmi.RemoteException
public void start() throws java.rmi.RemoteException
Runtime.exe()
method, starts the program(s)
by running the command given by the property
com.sun.jini.compat.admin2.execServiceAdmin.startCommand
.
start
in interface BasicAdmin
java.rmi.RemoteException
- if problem starting the programpublic void stop() throws java.rmi.RemoteException
stop
in interface BasicAdmin
java.rmi.RemoteException
- problem stopping the programpublic ServiceItem pickService(ServiceItem[] services) throws java.rmi.RemoteException
com.sun.jini.compat.admin2.execServiceAdmin.interface
.
If the specified interface is not implemented by any of
the listed services, then null
is returned.
pickService
in interface BasicServiceAdmin
services
- the array ServiceItem
objects
from which to choose
ServiceItem
for the service being tested,
or null
java.rmi.RemoteException
public ServiceTemplate getTemplate() throws java.rmi.RemoteException
ServiceTemplate
.
getTemplate
in interface BasicServiceAdmin
java.rmi.RemoteException
public ServiceRegistrar getServiceRegistrar() throws java.rmi.RemoteException
com.sun.jini.compat.admin2.execServiceAdmin.lookupPort
.
Using that port and the address of the lookup provided by
the getAddress
method it generates a
LookupLocator
to get the
ServiceRegistrar
for the lookup service being
tested.
getServiceRegistrar
in interface BasicLookupAdmin
ServiceRegistrar
for the lookup being
tested.
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |