net.anotheria.moskitodemo.simpleservice
Class SimpleServiceImpl

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

public class SimpleServiceImpl
extends Object
implements ISimpleService, IStatsProducer


Field Summary
 
Fields inherited from interface net.anotheria.moskito.core.producers.IStatsProducer
SUBSYSTEM_BUILTIN
 
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
 

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 © 2010-2012 anotheria.net. All Rights Reserved.