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 $

Variable Index

 o mets
 o options

Constructor Index

 o Service()
 o Service(Properties, Metrics)

Method Index

 o getServiceName()
Override this with something that returns a reasonable Service name
 o getServiceReport(String)
 o getServiceStatus()
Override this with something that returns a Service Status String.
 o run()
Override this with the main function of the Service

Variables

 o options
 protected Properties options
 o mets
 protected Metrics mets

Constructors

 o Service
 public Service()
 o Service
 public Service(Properties options,
                Metrics mets)
Parameters:
options - Service-level Properties (specific to the Services, not the Server)
mets - global Metrics object

Methods

 o run
 public void run()
Override this with the main function of the Service

Overrides:
run in class Thread
 o getServiceName
 public String getServiceName()
Override this with something that returns a reasonable Service name

 o getServiceStatus
 public String getServiceStatus()
Override this with something that returns a Service Status String.

 o getServiceReport
 public String getServiceReport(String reportRequest)

All Packages  Class Hierarchy  This Package  Previous  Next  Index