Class GLCacheTraceReader
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.parser.AbstractTraceReader
-
- com.github.benmanes.caffeine.cache.simulator.parser.BinaryTraceReader
-
- com.github.benmanes.caffeine.cache.simulator.parser.glcache.GLCacheTraceReader
-
- All Implemented Interfaces:
TraceReader
public final class GLCacheTraceReader extends BinaryTraceReader
A reader for the trace files provided by the author of GL-Cache. See traces.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceReader
TraceReader.KeyOnlyTraceReader
-
-
Field Summary
-
Fields inherited from class com.github.benmanes.caffeine.cache.simulator.parser.AbstractTraceReader
filePath
-
-
Constructor Summary
Constructors Constructor Description GLCacheTraceReader(String filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Policy.Characteristic>
characteristics()
The event features that this trace supports.protected AccessEvent
readEvent(DataInputStream input)
Returns the next event from the input stream.-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.parser.BinaryTraceReader
events
-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.parser.AbstractTraceReader
readFile, readInput
-
-
-
-
Constructor Detail
-
GLCacheTraceReader
public GLCacheTraceReader(String filePath)
-
-
Method Detail
-
characteristics
public Set<Policy.Characteristic> characteristics()
Description copied from interface:TraceReader
The event features that this trace supports.
-
readEvent
protected AccessEvent readEvent(DataInputStream input) throws IOException
Description copied from class:BinaryTraceReader
Returns the next event from the input stream.- Specified by:
readEvent
in classBinaryTraceReader
- Throws:
IOException
-
-