Enum TraceFormat
- java.lang.Object
-
- java.lang.Enum<TraceFormat>
-
- com.github.benmanes.caffeine.cache.simulator.parser.TraceFormat
-
- All Implemented Interfaces:
Serializable,Comparable<TraceFormat>
public enum TraceFormat extends Enum<TraceFormat>
The trace file formats.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADAPT_SIZEADDRESSADDRESS_PENALTIESARCCACHE2KCAMELABCLOUD_PHYSICSCORDAGL_CACHEGRADLELIRSLRBOUTBRAINSCARABSNIA_CAMBRIDGESNIA_K5CLOUDSNIA_OBJECT_STORESNIA_SYSTORSNIA_TENCENT_BLOCKSNIA_TENCENT_PHOTOTRAGENTWITTERUMASS_STORAGEUMASS_YOUTUBEWIKIPEDIA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TraceFormatnamed(String name)Returns the format based on its configuration name.TraceReaderreadFiles(List<String> filePaths)Returns a new reader for streaming the events from the trace file.static TraceFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static TraceFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDRESS
public static final TraceFormat ADDRESS
-
ADDRESS_PENALTIES
public static final TraceFormat ADDRESS_PENALTIES
-
ADAPT_SIZE
public static final TraceFormat ADAPT_SIZE
-
ARC
public static final TraceFormat ARC
-
CACHE2K
public static final TraceFormat CACHE2K
-
CAMELAB
public static final TraceFormat CAMELAB
-
CLOUD_PHYSICS
public static final TraceFormat CLOUD_PHYSICS
-
CORDA
public static final TraceFormat CORDA
-
GL_CACHE
public static final TraceFormat GL_CACHE
-
GRADLE
public static final TraceFormat GRADLE
-
LIRS
public static final TraceFormat LIRS
-
LRB
public static final TraceFormat LRB
-
OUTBRAIN
public static final TraceFormat OUTBRAIN
-
SCARAB
public static final TraceFormat SCARAB
-
SNIA_CAMBRIDGE
public static final TraceFormat SNIA_CAMBRIDGE
-
SNIA_K5CLOUD
public static final TraceFormat SNIA_K5CLOUD
-
SNIA_OBJECT_STORE
public static final TraceFormat SNIA_OBJECT_STORE
-
SNIA_SYSTOR
public static final TraceFormat SNIA_SYSTOR
-
SNIA_TENCENT_BLOCK
public static final TraceFormat SNIA_TENCENT_BLOCK
-
SNIA_TENCENT_PHOTO
public static final TraceFormat SNIA_TENCENT_PHOTO
-
TRAGEN
public static final TraceFormat TRAGEN
-
TWITTER
public static final TraceFormat TWITTER
-
UMASS_STORAGE
public static final TraceFormat UMASS_STORAGE
-
UMASS_YOUTUBE
public static final TraceFormat UMASS_YOUTUBE
-
WIKIPEDIA
public static final TraceFormat WIKIPEDIA
-
-
Method Detail
-
values
public static TraceFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TraceFormat c : TraceFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TraceFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
readFiles
public TraceReader readFiles(List<String> filePaths)
Returns a new reader for streaming the events from the trace file.- Parameters:
filePaths- the path to the files in the trace's format- Returns:
- a reader for streaming the events from the file
-
named
public static TraceFormat named(String name)
Returns the format based on its configuration name.
-
-