|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.compat.admin1.MahaloAdmin
This class implements the BasicServiceAdmin interface to automate the testing of the Mahalo Transaction Manager service from the Jini(TM) Technology Software Kit (JSK).
Field Summary |
Fields inherited from interface com.sun.jini.compat.harness.BasicServiceAdmin |
CATEGORY |
Constructor Summary | |
MahaloAdmin()
Default Constructor with no arguments. |
|
MahaloAdmin(java.lang.String codebase)
Constructor that takes in the codebase for the Mahalo implementation that is being tested. |
Method Summary | |
java.net.InetAddress |
getAddress()
Returns the address of the machine that the Mahalo process is running on. |
ServiceTemplate |
getTemplate()
Provides a service template with the Mahalo's ServiceID to filter out uninteresting services. |
ServiceItem |
pickService(ServiceItem[] services)
Given a list of objects which are ServiceItems this method determines if any of them are the Mahalo we are testing. |
void |
setConfig(Config conf)
Takes the Config object for this test run so that the implementation can get access to property files and and other config information. |
void |
start()
Properly configures and starts Mahalo. |
void |
stop()
Stops the Mahalo service, removes it from activation and removes it's log directory using remote administration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MahaloAdmin()
public MahaloAdmin(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
start
in interface BasicAdmin
java.rmi.RemoteException
public ServiceItem pickService(ServiceItem[] services) throws java.rmi.RemoteException
pickService
in interface BasicServiceAdmin
services
- the array of ServiceItems that need to be picked from
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
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 |