All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.andthehorseyourodeinon.ghear.SampleService

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----com.andthehorseyourodeinon.ghear.Service
                   |
                   +----com.andthehorseyourodeinon.ghear.SampleService

public class SampleService
extends Service
This is a sample of a Service.

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

Variable Index

 o mets
 o options

Constructor Index

 o SampleService()
 o SampleService(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()
Typically, this would actually do something.

Variables

 o options
 protected Properties options
 o mets
 protected Metrics mets

Constructors

 o SampleService
 public SampleService()
 o SampleService
 public SampleService(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()
Typically, this would actually do something.

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

Overrides:
getServiceName in class Service
 o getServiceStatus
 public String getServiceStatus()
Override this with something that returns a Service Status String.

Overrides:
getServiceStatus in class Service
 o getServiceReport
 public String getServiceReport(String reportRequest)
Overrides:
getServiceReport in class Service

All Packages  Class Hierarchy  This Package  Previous  Next  Index