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 RateWriterpublic void write(int metadata,
long count,
long timestamp)
throws IOException
write in interface RateWritermetadata - 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 AutoCloseableclose in interface RateWriterThis documentation was released into the public domain.