|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.monitoring.StreamProgressListener
net.sf.sparql.benchmarking.monitoring.FileProgressListener
public class FileProgressListener
A Progress Listener that writes the informational messages to a file
File is only opened when benchmarking starts, if the file exists then it may either overwrite the existing file or append to it depending on the constructor arguments used. Default behaviour is to overwrite.
Constructor Summary | |
---|---|
FileProgressListener(String filename)
Creates a new File Progress Listener which will overwrite a file of the given name |
|
FileProgressListener(String filename,
boolean append)
Creates a new File Progress Listener which may append to the file of the given name depending on the append parameter |
Method Summary | |
---|---|
protected OutputStream |
openStream()
Opens the File as an Output Stream returning null if the file cannot be used for output |
Methods inherited from class net.sf.sparql.benchmarking.monitoring.StreamProgressListener |
---|
afterOperation, afterOperationMix, beforeOperation, beforeOperationMix, finish, hasSwitchedThreads, progress, setForceThreadedOutput, start, updateThread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileProgressListener(String filename, boolean append)
append
parameter
filename
- Filenameappend
- Whether to append to the file, if false file will be overwritten if it existspublic FileProgressListener(String filename)
filename
- FilenameMethod Detail |
---|
protected OutputStream openStream()
openStream
in class StreamProgressListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |