Class SyslogYearCompleter


  • public class SyslogYearCompleter
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void complete​(SyslogMessage syslog)
      Adds the year (best guess) to a given syslog message if no year is present in the syslog message
      static void complete​(SyslogMessage syslog, java.time.Instant referenceTime)
      Adds the year (best guess) to a given syslog message if no year is present in the syslog message Assumptions: - syslog.getYear() == null, if not nothing to guess -> we won't do anything.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyslogYearCompleter

        public SyslogYearCompleter()
    • Method Detail

      • complete

        public static void complete​(SyslogMessage syslog)
        Adds the year (best guess) to a given syslog message if no year is present in the syslog message
      • complete

        public static void complete​(SyslogMessage syslog,
                                    java.time.Instant referenceTime)
        Adds the year (best guess) to a given syslog message if no year is present in the syslog message Assumptions: - syslog.getYear() == null, if not nothing to guess -> we won't do anything.