Package org.opennms.netmgt.syslogd
Class SyslogYearCompleter
- java.lang.Object
-
- org.opennms.netmgt.syslogd.SyslogYearCompleter
-
public class SyslogYearCompleter extends Object
-
-
Constructor Summary
Constructors Constructor Description SyslogYearCompleter()
-
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 messagestatic 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.
-
-
-
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.
-
-