- java.lang.Object
-
- com.microsoft.gctoolkit.io.GCLogFileZipSegment
-
- All Implemented Interfaces:
LogFileSegment
public class GCLogFileZipSegment extends Object implements LogFileSegment
ARotatingGCLogFileis made up ofGarbageCollectionLogFileSegments. Creating aGarbageCollectionLogFileSegmentis not necessary when theRotatingGCLogFile(Path)constructor is used. TheRotatingGCLogFile(Path)constructor allows the user to provide a list of discreteGarbageCollectionLogFileSegements for aRotatingGCLogFile.
-
-
Field Summary
-
Fields inherited from interface com.microsoft.gctoolkit.io.LogFileSegment
ROTATING_LOG_PATTERN, ROTATING_LOG_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description GCLogFileZipSegment(Path path, String segmentName)The constructor attempts to extract the segment index from the file name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetEndTime()PathgetPath()Return the path to the file.StringgetSegmentName()doublegetStartTime()Stream<String>stream()Stream the file, one line at a time.<T> Collector<T,?,List<T>>tail(int n)StringtoString()
-
-
-
Method Detail
-
getPath
public Path getPath()
Return the path to the file.- Specified by:
getPathin interfaceLogFileSegment- Returns:
- The path to the file.
-
getSegmentName
public String getSegmentName()
- Specified by:
getSegmentNamein interfaceLogFileSegment
-
getStartTime
public double getStartTime()
- Specified by:
getStartTimein interfaceLogFileSegment
-
getEndTime
public double getEndTime()
- Specified by:
getEndTimein interfaceLogFileSegment
-
stream
public Stream<String> stream()
Stream the file, one line at a time.- Specified by:
streamin interfaceLogFileSegment- Returns:
- A stream of lines from the file.
-
-