public class BinaryRateWriter extends Object implements RateWriter
Constructor and Description |
---|
BinaryRateWriter(File reportFile,
FileHeader fileHeader)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush()
Flushes the data to disk
|
File |
reportFile() |
void |
write(int metadata,
long count,
long timestamp)
Writes a performance entry to the file
|
public BinaryRateWriter(File reportFile, FileHeader fileHeader) throws IOException
reportFile
- the rate report file namefileHeader
- the file headerIOException
- in case of I/O errorspublic File reportFile()
reportFile
in interface RateWriter
public void write(int metadata, long count, long timestamp) throws IOException
write
in interface RateWriter
metadata
- entry metadatacount
- ratetimestamp
- timestamp of rate collectionIOException
- for multiple types of I/O errorspublic void flush() throws IOException
IOException
- in case of I/O errorspublic void close()
close
in interface AutoCloseable
close
in interface RateWriter
This documentation was released into the public domain.