org.sapia.ubik.rmi.server.perf
Class CsvStatDumper

java.lang.Object
  extended by org.sapia.ubik.rmi.server.perf.CsvStatDumper
All Implemented Interfaces:
Task

public class CsvStatDumper
extends java.lang.Object
implements Task

An instance of this class may be used to output Ubik stats in CSV format. It is specified a file to use for ouput.

This class implements the Task interface, which allows for an instance of it to be added to Ubik's task manager.

Snippet:

 CsvStatDumper dumper = new CsvStatDumper(new File("stats.csv"));
 TaskContext ctx = new TaskContext("DumpStats", 120000);
 Hub.taskMan.addTask(ctx, dumper);
 

Author:
yduchesne
See Also:
Hub.taskMan, TaskManager.addTask(TaskContext, Task)

Constructor Summary
CsvStatDumper(java.io.File f)
           
 
Method Summary
 void exec(TaskContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvStatDumper

public CsvStatDumper(java.io.File f)
              throws java.lang.Exception
Parameters:
f - the File to use for the output.
Throws:
java.lang.Exception - if a problem occurs while creating this instance.
Method Detail

exec

public void exec(TaskContext ctx)
Specified by:
exec in interface Task
Parameters:
ctx - this instance's TaskContext


Copyright © 2010 Sapia OSS. All Rights Reserved.