All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.andthehorseyourodeinon.ghear.ServiceDispatcher

java.lang.Object
   |
   +----com.andthehorseyourodeinon.ghear.ServiceDispatcher

public abstract class ServiceDispatcher
extends Object
This is an abstract class describing a ServiceDispatcher. A ServiceDispatcher is a controller for a collection of Services. It also handles reporting for the Services as a whole as well as individually.

Version:
$Id: ServiceDispatcher.java,v 1.1 2000/05/16 22:41:13 samuelg Exp $

Variable Index

 o dispatcherName
 o mets
 o options
 o serverOptions
 o services

Constructor Index

 o ServiceDispatcher()

Method Index

 o addService(String, Service)
 o getDispatchReport(ParameterVector)
 o getName()
Get the name of the ServiceDispatcher.
 o getServiceCount()
Get the number of services being handled.
 o hasService(String)
Determines if a Service is known by the ServiceDispatcher.
 o initDispatcher(Properties, Metrics)
 o initServices()
 o serviceList()
Get a list of Service identifiers.
 o serviceName(String)
Get the Service name for a specific Service.
 o serviceReport(String, String)
Get a Service report from a specific Service.
 o serviceStatus(String)
Get a Service status string from a specific Service.

Variables

 o serverOptions
 protected Properties serverOptions
 o options
 protected Properties options
 o services
 protected Hashtable services
 o dispatcherName
 protected String dispatcherName
 o mets
 protected Metrics mets

Constructors

 o ServiceDispatcher
 public ServiceDispatcher()

Methods

 o initDispatcher
 public void initDispatcher(Properties serverOptions,
                            Metrics metrics)
 o initServices
 public void initServices()
 o addService
 public void addService(String identifier,
                        Service newService)
 o serviceList
 public Vector serviceList()
Get a list of Service identifiers.

Returns:
a Vector containing Strings, each identifying a specific Service
 o hasService
 public boolean hasService(String identifier)
Determines if a Service is known by the ServiceDispatcher.

Parameters:
identifier - the Service in question.
Returns:
true if the Service is known.
 o serviceName
 public String serviceName(String identifier)
Get the Service name for a specific Service.

Parameters:
identifier - the Service identifier
Returns:
name of the Service
 o serviceStatus
 public String serviceStatus(String identifier)
Get a Service status string from a specific Service.

Parameters:
identifier - the Service to be interrogated
Returns:
a status String from the Service
 o serviceReport
 public Response serviceReport(String identifier,
                               String reportType)
Get a Service report from a specific Service.

Parameters:
identifier - the Service to be interrogated
reportType - a String identifying the report requested.
Returns:
a Response containing the report from the Service
 o getName
 public String getName()
Get the name of the ServiceDispatcher.

 o getServiceCount
 public int getServiceCount()
Get the number of services being handled.

Returns:
integer number of service
 o getDispatchReport
 public Response getDispatchReport(ParameterVector pv)

All Packages  Class Hierarchy  This Package  Previous  Next  Index