gov.virginia.dcjs.jini.service
Class AdminService
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
gov.virginia.dcjs.jini.service.GenericService
gov.virginia.dcjs.server.TCPServer
gov.virginia.dcjs.server.IpServer
gov.virginia.dcjs.jini.service.AdminService
- All Implemented Interfaces:
- net.jini.admin.Administrable, AdministrableRMI, java.lang.Cloneable, com.sun.jini.admin.DestroyAdmin, java.util.EventListener, java.rmi.Remote, java.lang.Runnable, java.io.Serializable, ServiceAdmin, net.jini.lookup.ServiceIDListener, TCPService, TCPServiceRMI
- public class AdminService
- extends IpServer
This class serves as a central adminstration point to controll all Jini
* services on the network. All services (except this one) may be started,
* stopped or destroyed. Any services having their statistics recorded can
* have those statistics viewed by remotely connecting clients. Any services
* with clients listenning for broadcasts may have messages sent to their
* clients.
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Method Summary |
protected void |
handleRequest(Request request)
Handle the remote administration client's request. |
protected void |
initializeServiceName()
Method to specify a service's specific name, usually
* one of the JiniServices name constants. |
static void |
main(java.lang.String[] args)
|
protected void |
requestsFinished()
Client requests are completed, so perform any final cleanup operations. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.jini.admin.Administrable |
getAdmin |
AdminService
public AdminService(java.lang.String config)
throws java.rmi.RemoteException
- Parameters:
config - URL of server configuration file conforming to the
* IpServer.dtd at that site.
main
public static void main(java.lang.String[] args)
initializeServiceName
protected void initializeServiceName()
- Method to specify a service's specific name, usually
* one of the
JiniServices name constants.
* Subclasses simply override this method and set the protected
* variable r_name to the service's name; for
* example: r_name = "AnotherJiniService";
- Specified by:
initializeServiceName in class GenericService
handleRequest
protected void handleRequest(Request request)
- Handle the remote administration client's request.
* @param request Client request to process.
- Specified by:
handleRequest in class IpServer
requestsFinished
protected void requestsFinished()
- Client requests are completed, so perform any final cleanup operations.
- Overrides:
requestsFinished in class IpServer