Class CloudPhysicsTraceWriter
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.parser.BinaryTraceWriter
-
- com.github.benmanes.caffeine.cache.simulator.parser.cloud_physics.CloudPhysicsTraceWriter
-
- All Implemented Interfaces:
TraceWriter,Closeable,AutoCloseable
public final class CloudPhysicsTraceWriter extends BinaryTraceWriter
A writer for the trace format used by the authors of the LIRS2 algorithm.
-
-
Constructor Summary
Constructors Constructor Description CloudPhysicsTraceWriter(OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteEvent(int tick, AccessEvent event)Writes the event in the trace format.-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.parser.BinaryTraceWriter
close, writer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceWriter
writeFooter, writeHeader
-
-
-
-
Constructor Detail
-
CloudPhysicsTraceWriter
public CloudPhysicsTraceWriter(OutputStream output)
-
-
Method Detail
-
writeEvent
public void writeEvent(int tick, AccessEvent event) throws IOExceptionDescription copied from interface:TraceWriterWrites the event in the trace format.- Throws:
IOException
-
-