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 $
-
mets
-
-
options
-
-
SampleService()
-
-
SampleService(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()
- Typically, this would actually do something.
options
protected Properties options
mets
protected Metrics mets
SampleService
public SampleService()
SampleService
public SampleService(Properties options,
Metrics mets)
- Parameters:
- options - Service-level Properties (specific to the Services, not the Server)
- mets - global Metrics object
run
public void run()
- Typically, this would actually do something.
- Overrides:
- run in class Service
getServiceName
public String getServiceName()
- Override this with something that returns a reasonable
Service name
- Overrides:
- getServiceName in class Service
getServiceStatus
public String getServiceStatus()
- Override this with something that returns a Service Status String.
- Overrides:
- getServiceStatus in class Service
getServiceReport
public String getServiceReport(String reportRequest)
- Overrides:
- getServiceReport in class Service
All Packages Class Hierarchy This Package Previous Next Index