All Packages Class Hierarchy This Package Previous Next Index
Class com.andthehorseyourodeinon.ghear.Service
java.lang.Object
|
+----java.lang.Thread
|
+----com.andthehorseyourodeinon.ghear.Service
- public abstract class Service
- extends Thread
This is an abstract class describing a Service.
A Service may be anything that runs in its own thread, and
does something. It needs a few methods to perform its reporting
duties for the GHEAR framework.
- Version:
- $Id: Service.java,v 1.1 2000/05/16 22:41:13 samuelg Exp $
-
mets
-
-
options
-
-
Service()
-
-
Service(Properties, Metrics)
-
-
getServiceName()
- Override this with something that returns a reasonable
Service name
-
getServiceReport(String)
-
-
getServiceStatus()
- Override this with something that returns a Service Status String.
-
run()
- Override this with the main function of the Service
options
protected Properties options
mets
protected Metrics mets
Service
public Service()
Service
public Service(Properties options,
Metrics mets)
- Parameters:
- options - Service-level Properties (specific to the Services, not the Server)
- mets - global Metrics object
run
public void run()
- Override this with the main function of the Service
- Overrides:
- run in class Thread
getServiceName
public String getServiceName()
- Override this with something that returns a reasonable
Service name
getServiceStatus
public String getServiceStatus()
- Override this with something that returns a Service Status String.
getServiceReport
public String getServiceReport(String reportRequest)
All Packages Class Hierarchy This Package Previous Next Index