|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.compat.admin1.ReggieAdmin
This class implements the BasicLookupAdmin
interface
and the BasicServiceAdmin
interface to
automate the testing of the Reggie lookup service implementation, which
is part of the Jini(TM) Technology Software Kit (JSK).
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 | |
ReggieAdmin()
Default constructor with no arguments. |
|
ReggieAdmin(java.lang.String codebase)
Constructor that takes a codebase for the Reggie implementation that is being tested. |
Method Summary | |
java.net.InetAddress |
getAddress()
Returns the address that Reggie is running on. |
ServiceRegistrar |
getServiceRegistrar()
Returns the ServiceRegistrar for this lookup. |
ServiceTemplate |
getTemplate()
Provides a service template with the ServiceID of the
lookup service, to filter out uninteresting services. |
ServiceItem |
pickService(ServiceItem[] services)
Given an array of ServiceItem objects, this method
determines if any of them are the lookup service that associated with
this service admin. |
void |
setConfig(Config conf)
Takes the Config object for this test run so that the implementation can get access to property files and other config information. |
void |
start()
This method properly configures and starts a Reggie lookup service implementation. |
void |
stop()
Destroys the lookup service, and removes its log directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReggieAdmin()
public ReggieAdmin(java.lang.String codebase)
Method Detail |
public void setConfig(Config conf)
setConfig
in interface BasicAdmin
conf
- the Config object for this test runpublic void start() throws java.rmi.RemoteException
CLASSPATH
,
the log directory, the java.rmi.server.codebase
property, and the java.security.policy
property for the lookup service. It starts a Reggie lookup
service in a separate VM as a member of the public group.
start
in interface BasicAdmin
java.rmi.RemoteException
public ServiceRegistrar getServiceRegistrar() throws java.rmi.RemoteException
ServiceRegistrar
for this lookup. Required
by BasicLookupAdmin
.
getServiceRegistrar
in interface BasicLookupAdmin
ServiceRegistrar
for the lookup being tested
java.rmi.RemoteException
public ServiceItem pickService(ServiceItem[] services) throws java.rmi.RemoteException
ServiceItem
objects, this method
determines if any of them are the lookup service that associated with
this service admin. It does this by comparing the class name and the
codebase of the ServiceItem
instances to the codebase
and class name it is looking for. If a match is found, the matching
ServiceItem
is returned; if no match is found, then
null
is returned.
pickService
in interface BasicServiceAdmin
services
- the array of ServiceItem
objects
from which to choose
ServiceItem
for the Reggie service being
tested, or null
java.rmi.RemoteException
public java.net.InetAddress getAddress() throws java.rmi.RemoteException
getAddress
in interface BasicAdmin
java.rmi.RemoteException
public ServiceTemplate getTemplate() throws java.rmi.RemoteException
ServiceID
of the
lookup service, to filter out uninteresting services.
getTemplate
in interface BasicServiceAdmin
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 |