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.LocalDate
date
The date the log entries were created.static java.util.regex.Pattern
filenamePattern
The mandatory web server log descriptor file name pattern.FileType
fileType
The log's compression type.java.nio.file.Path
path
The path of the log file to be imported.java.lang.String
physicalHost
The name of the physical host.java.lang.String
virtualHost
The name of the virtual host.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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.boolean
equals(java.lang.Object other)
int
hashCode()
-
-
-
Field Detail
-
filenamePattern
public static final java.util.regex.Pattern filenamePattern
The mandatory web server log descriptor file name pattern.
-
path
public final java.nio.file.Path path
The path of the log file to be imported.
-
date
public final java.time.LocalDate date
The date the log entries were created.
-
fileType
public final FileType fileType
The log's compression type.
-
physicalHost
public final java.lang.String physicalHost
The name of the physical host.
-
virtualHost
public final java.lang.String virtualHost
The name of the virtual host.
-
-
Method Detail
-
create
public static java.util.Optional<LogMetadata> create(java.nio.file.Path logPath)
Only way to create a LogMetadata object from a given log path.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-