Package org.opennms.netmgt.syslogd
Class SyslogMessage
- java.lang.Object
-
- org.opennms.netmgt.syslogd.SyslogMessage
-
-
Constructor Summary
Constructors Modifier Constructor Description SyslogMessage()
protected
SyslogMessage(SyslogFacility facility, SyslogSeverity severity, Integer version, Date date, Integer year, Integer month, Integer dayOfMonth, Integer hourOfDay, Integer minute, Integer second, Integer millisecond, java.time.ZoneId zoneId, String hostname, String processName, String processId, String messageId, String message, Map<String,String> parameters)
Copy constructor used byclone()
.
-
Method Summary
-
-
-
Constructor Detail
-
SyslogMessage
public SyslogMessage()
-
SyslogMessage
protected SyslogMessage(SyslogFacility facility, SyslogSeverity severity, Integer version, Date date, Integer year, Integer month, Integer dayOfMonth, Integer hourOfDay, Integer minute, Integer second, Integer millisecond, java.time.ZoneId zoneId, String hostname, String processName, String processId, String messageId, String message, Map<String,String> parameters)
Copy constructor used byclone()
.- Parameters:
facility
-severity
-version
-date
-year
-month
-dayOfMonth
-hourOfDay
-minute
-second
-millisecond
-zoneId
-hostname
-processName
-processId
-messageId
-message
-parameters
-
-
-
Method Detail
-
getParserClass
public Class<? extends SyslogParser> getParserClass()
-
setParserClass
public void setParserClass(Class<? extends SyslogParser> parser)
-
getFacility
public SyslogFacility getFacility()
-
setFacility
public void setFacility(SyslogFacility facility)
-
getSeverity
public SyslogSeverity getSeverity()
-
setSeverity
public void setSeverity(SyslogSeverity severity)
-
getVersion
public Integer getVersion()
-
setVersion
public void setVersion(Integer version)
-
getDate
public Date getDate()
-
setDate
public void setDate(Date date)
-
getYear
public Integer getYear()
-
setYear
public void setYear(Integer year)
-
getMonth
public Integer getMonth()
-
setMonth
public void setMonth(Integer month)
-
getDayOfMonth
public Integer getDayOfMonth()
-
setDayOfMonth
public void setDayOfMonth(Integer dayOfMonth)
-
getHourOfDay
public Integer getHourOfDay()
-
setHourOfDay
public void setHourOfDay(Integer hourOfDay)
-
getMinute
public Integer getMinute()
-
setMinute
public void setMinute(Integer minute)
-
getSecond
public Integer getSecond()
-
setSecond
public void setSecond(Integer second)
-
getMillisecond
public Integer getMillisecond()
-
setMillisecond
public void setMillisecond(Integer millisecond)
-
getZoneId
public java.time.ZoneId getZoneId()
-
setZoneId
public void setZoneId(java.time.ZoneId zoneId)
-
getHostName
public String getHostName()
-
setHostName
public void setHostName(String hostname)
-
getHostAddress
public InetAddress getHostAddress()
-
getProcessName
public String getProcessName()
-
setProcessName
public void setProcessName(String processName)
-
getProcessId
public String getProcessId()
-
setProcessId
public void setProcessId(String processId)
-
getMessageID
public String getMessageID()
-
setMessageID
public void setMessageID(String messageId)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getRfc3164FormattedDate
public String getRfc3164FormattedDate()
-
getRfc3339FormattedDate
public String getRfc3339FormattedDate()
-
asRfc3164Message
public String asRfc3164Message()
-
clone
public SyslogMessage clone()
-
-