- java.lang.Object
-
- com.microsoft.gctoolkit.io.FileDataSource<String>
-
- com.microsoft.gctoolkit.io.GCLogFile
-
- All Implemented Interfaces:
DataSource<String>
- Direct Known Subclasses:
RotatingGCLogFile,SingleGCLogFile
public abstract class GCLogFile extends FileDataSource<String>
Represents a GC log file, which may be aSingleGCLogFileor aRotatingGCLogFile.
-
-
Field Summary
Fields Modifier and Type Field Description static StringEND_OF_DATA_SENTINELThe value used for the implementation ofendOfData().-
Fields inherited from class com.microsoft.gctoolkit.io.FileDataSource
path
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Diarydiary()The Diary contains a summary of important properties of the log that will be used in orchestrating the setup and configuration of the internal components of GCToolkit.StringendOfData()Return a sentinel value marking the end of the data.JavaVirtualMachinegetJavaVirtualMachine()Return the relevant JavaVirtualMachine implementationbooleanisUnified()Returnstrueif this GCLogFile is written in unified logging (JEP 158) format.-
Methods inherited from class com.microsoft.gctoolkit.io.FileDataSource
getMetaData, getPath, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.gctoolkit.io.DataSource
stream
-
-
-
-
Field Detail
-
END_OF_DATA_SENTINEL
public static final String END_OF_DATA_SENTINEL
The value used for the implementation ofendOfData().- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GCLogFile
protected GCLogFile(Path path)
Subclass only.- Parameters:
path- The path to the GCLogFile or, in the case of rotating log files, the parent directory.
-
-
Method Detail
-
getJavaVirtualMachine
public JavaVirtualMachine getJavaVirtualMachine()
Return the relevant JavaVirtualMachine implementation
-
isUnified
public boolean isUnified()
Returnstrueif this GCLogFile is written in unified logging (JEP 158) format.- Returns:
trueif the log file is in unified logging format.
-
diary
public Diary diary() throws IOException
Description copied from class:FileDataSourceThe Diary contains a summary of important properties of the log that will be used in orchestrating the setup and configuration of the internal components of GCToolkit.- Specified by:
diaryin interfaceDataSource<String>- Specified by:
diaryin classFileDataSource<String>- Returns:
- the computed diary
- Throws:
IOException- if there is an issue generating the diary
-
endOfData
public final String endOfData()
Description copied from interface:DataSourceReturn a sentinel value marking the end of the data.- Returns:
- A value used as a sentinel to mark the end of data.
-
-