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 $
-
dispatcherName
-
-
mets
-
-
options
-
-
serverOptions
-
-
services
-
-
ServiceDispatcher()
-
-
addService(String, Service)
-
-
getDispatchReport(ParameterVector)
-
-
getName()
- Get the name of the ServiceDispatcher.
-
getServiceCount()
- Get the number of services being handled.
-
hasService(String)
- Determines if a Service is known by the ServiceDispatcher.
-
initDispatcher(Properties, Metrics)
-
-
initServices()
-
-
serviceList()
- Get a list of Service identifiers.
-
serviceName(String)
- Get the Service name for a specific Service.
-
serviceReport(String, String)
- Get a Service report from a specific Service.
-
serviceStatus(String)
- Get a Service status string from a specific Service.
serverOptions
protected Properties serverOptions
options
protected Properties options
services
protected Hashtable services
dispatcherName
protected String dispatcherName
mets
protected Metrics mets
ServiceDispatcher
public ServiceDispatcher()
initDispatcher
public void initDispatcher(Properties serverOptions,
Metrics metrics)
initServices
public void initServices()
addService
public void addService(String identifier,
Service newService)
serviceList
public Vector serviceList()
- Get a list of Service identifiers.
- Returns:
- a Vector containing Strings, each identifying a specific Service
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.
serviceName
public String serviceName(String identifier)
- Get the Service name for a specific Service.
- Parameters:
- identifier - the Service identifier
- Returns:
- name of the Service
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
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
getName
public String getName()
- Get the name of the ServiceDispatcher.
getServiceCount
public int getServiceCount()
- Get the number of services being handled.
- Returns:
- integer number of service
getDispatchReport
public Response getDispatchReport(ParameterVector pv)
All Packages Class Hierarchy This Package Previous Next Index