net.java.dev.moskitodemo.simpleservice
Class SimpleServiceImpl

java.lang.Object
  extended by net.java.dev.moskitodemo.simpleservice.SimpleServiceImpl
All Implemented Interfaces:
IStatsProducer, ISimpleService

public class SimpleServiceImpl
extends Object
implements ISimpleService, IStatsProducer


Field Summary
private  ServiceStats produceExceptionStats
           
private  ServiceStats randomWaitStats
           
private  Random rnd
           
private  ServiceStats serviceStats
           
private  ServiceStats waitForSoLongStats
           
 
Constructor Summary
SimpleServiceImpl()
           
 
Method Summary
 String getCategory()
           
 String getProducerId()
           
 List<IStats> getStats()
           
 String getSubsystem()
           
 void printStats()
           
 void printStats(String interval)
           
 void produceExceptionIfParameterIsEven(int parameter)
           
 void randomWait()
           
 void waitForSoLongInMillis(long parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceStats

private ServiceStats serviceStats

randomWaitStats

private ServiceStats randomWaitStats

waitForSoLongStats

private ServiceStats waitForSoLongStats

produceExceptionStats

private ServiceStats produceExceptionStats

rnd

private Random rnd
Constructor Detail

SimpleServiceImpl

SimpleServiceImpl()
Method Detail

getStats

public List<IStats> getStats()
Specified by:
getStats in interface IStatsProducer

getProducerId

public String getProducerId()
Specified by:
getProducerId in interface IStatsProducer

printStats

public void printStats()
Specified by:
printStats in interface ISimpleService

printStats

public void printStats(String interval)
Specified by:
printStats in interface ISimpleService

randomWait

public void randomWait()
                throws Exception
Specified by:
randomWait in interface ISimpleService
Throws:
Exception

waitForSoLongInMillis

public void waitForSoLongInMillis(long parameter)
                           throws Exception
Specified by:
waitForSoLongInMillis in interface ISimpleService
Throws:
Exception

produceExceptionIfParameterIsEven

public void produceExceptionIfParameterIsEven(int parameter)
                                       throws Exception
Specified by:
produceExceptionIfParameterIsEven in interface ISimpleService
Throws:
Exception

getCategory

public String getCategory()
Specified by:
getCategory in interface IStatsProducer

getSubsystem

public String getSubsystem()
Specified by:
getSubsystem in interface IStatsProducer


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework