com.sun.jini.compat.harness
Interface BasicAdmin

All Known Subinterfaces:
BasicClientAdmin, BasicLookupAdmin, BasicServiceAdmin
All Known Implementing Classes:
DefaultAdmin, DefaultClientAdmin, DefaultLookupAdmin, DefaultServiceAdmin, ExecServiceAdmin, FiddlerAdmin, MahaloAdmin, MercuryAdmin, NormAdmin, OutriggerAdmin, ReggieAdmin, ReggieServiceAdmin, ServiceStarterAdmin, TransientServiceAdmin

public interface BasicAdmin

An interface for basic administration of any kind of program. All Admin interfaces subclass from this one. If someone wishes to automate the testing of their program they need to implement this interface and one of it's subinterfaces depending on the program category. The implementation must also have a no argument constructor or a constructor that takes a String as it's only argument.


Method Summary
 java.net.InetAddress getAddress()
          Gets the internet address of the host where the program is being run.
 void setConfig(Config conf)
          Passes a config object to the admin so that implementations of the admin can get access to configuration information, such as config files.
 void start()
          Start the Jini(TM) technology features of the program.
 void stop()
          Stop the Jini(TM) technology features of the program completely including removing the program from activation and resetting any persistence these features require.
 

Method Detail

setConfig

public void setConfig(Config conf)
Passes a config object to the admin so that implementations of the admin can get access to configuration information, such as config files.

Parameters:
conf - the configuration object

start

public void start()
           throws java.rmi.RemoteException
Start the Jini(TM) technology features of the program.

Throws:
java.rmi.RemoteException

getAddress

public java.net.InetAddress getAddress()
                                throws java.rmi.RemoteException
Gets the internet address of the host where the program is being run.

Returns:
the address
Throws:
java.rmi.RemoteException

stop

public void stop()
          throws java.rmi.RemoteException
Stop the Jini(TM) technology features of the program completely including removing the program from activation and resetting any persistence these features require.

Throws:
java.rmi.RemoteException


Copyright 2005, Sun Microsystems, Inc.
Licensed under the Apache License, Version 2.0.