Class GCLogFile

    • 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()
        Returns true if this GCLogFile is written in unified logging (JEP 158) format.
        Returns:
        true if the log file is in unified logging format.
      • diary

        public Diary diary()
                    throws IOException
        Description copied from class: FileDataSource
        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.
        Specified by:
        diary in interface DataSource<String>
        Specified by:
        diary in class FileDataSource<String>
        Returns:
        the computed diary
        Throws:
        IOException - if there is an issue generating the diary
      • endOfData

        public final String endOfData()
        Description copied from interface: DataSource
        Return a sentinel value marking the end of the data.
        Returns:
        A value used as a sentinel to mark the end of data.