public class LogFileMap extends java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.TreeMap<java.time.LocalDate,LogMetadata>>>
Constructor and Description |
---|
LogFileMap(java.nio.file.Path startDir)
The map to keep track of the logfiles by virtual host,
physical host, and date.
|
Modifier and Type | Method and Description |
---|---|
void |
add(LogMetadata metadata)
Add log metadata to the map structure.
|
java.util.stream.Stream<LogMetadata> |
metadataStream()
Returns a stream of all contained log metadata.
|
java.util.Optional<LogMetadata> |
nextDayLogFor(LogMetadata metadata)
Takes the given metadata and returns the LogMetadata for the entry
of the next day.
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
public LogFileMap(java.nio.file.Path startDir)
public void add(LogMetadata metadata)
public java.util.Optional<LogMetadata> nextDayLogFor(LogMetadata metadata)
public java.util.stream.Stream<LogMetadata> metadataStream()