org.netxms.client.events
Class SyslogRecord

java.lang.Object
  extended by org.netxms.client.events.SyslogRecord

public class SyslogRecord
extends java.lang.Object

Object representing single syslog record


Field Summary
static int ALERT
           
static int AUTH
           
static int CLOCKD
           
static int CRITCAL
           
static int CRON
           
static int DEBUG
           
static int EMERGENCY
           
static int ERROR
           
static int FTPD
           
static int INFORMATIONAL
           
static int KERNEL
           
static int LOCAL0
           
static int LOCAL1
           
static int LOCAL2
           
static int LOCAL3
           
static int LOCAL4
           
static int LOCAL5
           
static int LOCAL6
           
static int LOCAL7
           
static int LOG_ALERT
           
static int LOG_AUDIT
           
static int LPR
           
static int MAIL
           
static int NEWS
           
static int NOTICE
           
static int NTP
           
static int SECURITY
           
static int SYSLOG
           
static int SYSTEM
           
static int USER
           
static int UUCP
           
static int WARNING
           
 
Constructor Summary
SyslogRecord(NXCPMessage msg, long baseId)
          Create syslog record object from NXCP message
 
Method Summary
 int getFacility()
           
 java.lang.String getHostname()
           
 long getId()
           
 java.lang.String getMessage()
           
 int getSeverity()
           
 long getSourceObjectId()
           
 java.lang.String getTag()
           
 java.util.Date getTimestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KERNEL

public static final int KERNEL
See Also:
Constant Field Values

USER

public static final int USER
See Also:
Constant Field Values

MAIL

public static final int MAIL
See Also:
Constant Field Values

SYSTEM

public static final int SYSTEM
See Also:
Constant Field Values

AUTH

public static final int AUTH
See Also:
Constant Field Values

SYSLOG

public static final int SYSLOG
See Also:
Constant Field Values

LPR

public static final int LPR
See Also:
Constant Field Values

NEWS

public static final int NEWS
See Also:
Constant Field Values

UUCP

public static final int UUCP
See Also:
Constant Field Values

CRON

public static final int CRON
See Also:
Constant Field Values

SECURITY

public static final int SECURITY
See Also:
Constant Field Values

FTPD

public static final int FTPD
See Also:
Constant Field Values

NTP

public static final int NTP
See Also:
Constant Field Values

LOG_AUDIT

public static final int LOG_AUDIT
See Also:
Constant Field Values

LOG_ALERT

public static final int LOG_ALERT
See Also:
Constant Field Values

CLOCKD

public static final int CLOCKD
See Also:
Constant Field Values

LOCAL0

public static final int LOCAL0
See Also:
Constant Field Values

LOCAL1

public static final int LOCAL1
See Also:
Constant Field Values

LOCAL2

public static final int LOCAL2
See Also:
Constant Field Values

LOCAL3

public static final int LOCAL3
See Also:
Constant Field Values

LOCAL4

public static final int LOCAL4
See Also:
Constant Field Values

LOCAL5

public static final int LOCAL5
See Also:
Constant Field Values

LOCAL6

public static final int LOCAL6
See Also:
Constant Field Values

LOCAL7

public static final int LOCAL7
See Also:
Constant Field Values

EMERGENCY

public static final int EMERGENCY
See Also:
Constant Field Values

ALERT

public static final int ALERT
See Also:
Constant Field Values

CRITCAL

public static final int CRITCAL
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

NOTICE

public static final int NOTICE
See Also:
Constant Field Values

INFORMATIONAL

public static final int INFORMATIONAL
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values
Constructor Detail

SyslogRecord

public SyslogRecord(NXCPMessage msg,
                    long baseId)
Create syslog record object from NXCP message

Parameters:
msg - NXCP message
baseId - base variable ID
Method Detail

getId

public long getId()
Returns:
the id

getTimestamp

public java.util.Date getTimestamp()
Returns:
the timestamp

getFacility

public int getFacility()
Returns:
the facility

getSeverity

public int getSeverity()
Returns:
the severity

getSourceObjectId

public long getSourceObjectId()
Returns:
the sourceObjectId

getHostname

public java.lang.String getHostname()
Returns:
the hostname

getTag

public java.lang.String getTag()
Returns:
the tag

getMessage

public java.lang.String getMessage()
Returns:
the message


Copyright © 2013. All Rights Reserved.