gov.virginia.dcjs.jini.service
Class AdminService

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bygov.virginia.dcjs.jini.service.GenericService
                  extended bygov.virginia.dcjs.server.TCPServer
                      extended bygov.virginia.dcjs.server.IpServer
                          extended bygov.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

Field Summary
 
Fields inherited from class gov.virginia.dcjs.jini.service.GenericService
r_name
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AdminService(java.lang.String config)
           
 
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 gov.virginia.dcjs.server.IpServer
closeStreams, receiveRequest, sendResponse, serveClient
 
Methods inherited from class gov.virginia.dcjs.server.TCPServer
finalize, getConfiguration, getPort, getSocket, logWrite, run, start, stop
 
Methods inherited from class gov.virginia.dcjs.jini.service.GenericService
destroy, getAdmin, serviceIDNotify
 
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
 

Constructor Detail

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.
Method Detail

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