org.sapia.ubik.rmi.server.perf
Class CsvStatDumper
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.