- java.lang.Object
-
- com.microsoft.gctoolkit.io.LogFileMetadata
-
- com.microsoft.gctoolkit.io.RotatingLogFileMetadata
-
public class RotatingLogFileMetadata extends LogFileMetadata
Meta-data about aFileDataSource.
-
-
Constructor Summary
Constructors Constructor Description RotatingLogFileMetadata(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfFiles()Return the number of files.Stream<LogFileSegment>logFiles()-
Methods inherited from class com.microsoft.gctoolkit.io.LogFileMetadata
getPath, isDirectory, isGZip, isPlainText, isZip
-
-
-
-
Constructor Detail
-
RotatingLogFileMetadata
public RotatingLogFileMetadata(Path path) throws IOException
- Throws:
IOException
-
-
Method Detail
-
logFiles
public Stream<LogFileSegment> logFiles()
- Specified by:
logFilesin classLogFileMetadata
-
getNumberOfFiles
public int getNumberOfFiles()
Return the number of files. Useful if the file is a compressed file which may contain multiple entries.- Specified by:
getNumberOfFilesin classLogFileMetadata- Returns:
- The number of files in the file.
-
-