Class LogMetadata
java.lang.Object
org.torproject.metrics.collector.webstats.LogMetadata
public class LogMetadata
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.time.LocalDatedateThe date the log entries were created.static java.util.regex.PatternfilenamePatternThe mandatory web server log descriptor file name pattern.FileTypefileTypeThe log's compression type.java.nio.file.PathpathThe path of the log file to be imported.java.lang.StringphysicalHostThe name of the physical host.java.lang.StringvirtualHostThe name of the virtual host. -
Method Summary
Modifier and Type Method Description static java.util.Optional<LogMetadata>create(java.nio.file.Path logPath)Only way to create a LogMetadata object from a given log path.booleanequals(java.lang.Object other)inthashCode()
-
Field Details
-
filenamePattern
public static final java.util.regex.Pattern filenamePatternThe mandatory web server log descriptor file name pattern. -
path
public final java.nio.file.Path pathThe path of the log file to be imported. -
date
public final java.time.LocalDate dateThe date the log entries were created. -
fileType
The log's compression type. -
physicalHost
public final java.lang.String physicalHostThe name of the physical host. -
virtualHost
public final java.lang.String virtualHostThe name of the virtual host.
-
-
Method Details