org.pentaho.di.job.entries.syslog
Class SyslogDefs

java.lang.Object
  extended by org.pentaho.di.job.entries.syslog.SyslogDefs

public class SyslogDefs
extends Object

This defines settings for Syslog.

Since:
05-01-2010
Author:
Samatar

Field Summary
static String DEFAULT_DATE_FORMAT
           
static int DEFAULT_PORT
           
static String DEFAULT_PROTOCOL_UDP
           
static String[] FACILITYS
           
static String[] PRIORITYS
           
 
Constructor Summary
SyslogDefs()
           
 
Method Summary
static int computeCode(int facility, int priority)
           
static int getFacility(String facility)
           
static int getPriority(String priority)
           
static void sendMessage(org.productivity.java.syslog4j.SyslogIF syslog, int priority, String message, boolean addTimestamp, String pattern, boolean addHostName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROTOCOL_UDP

public static final String DEFAULT_PROTOCOL_UDP
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_DATE_FORMAT

public static final String DEFAULT_DATE_FORMAT
See Also:
Constant Field Values

FACILITYS

public static final String[] FACILITYS

PRIORITYS

public static final String[] PRIORITYS
Constructor Detail

SyslogDefs

public SyslogDefs()
Method Detail

computeCode

public static int computeCode(int facility,
                              int priority)

getPriority

public static int getPriority(String priority)
                       throws SyslogException
Throws:
SyslogException

getFacility

public static int getFacility(String facility)
                       throws SyslogException
Throws:
SyslogException

sendMessage

public static void sendMessage(org.productivity.java.syslog4j.SyslogIF syslog,
                               int priority,
                               String message,
                               boolean addTimestamp,
                               String pattern,
                               boolean addHostName)