public class EventSyslogger extends java.lang.Object implements EventAction
Modifier and Type | Field and Description |
---|---|
static int |
LOG_ALERT |
static int |
LOG_AUDIT |
static int |
LOG_AUTH |
static int |
LOG_CLOCK |
static int |
LOG_CRON |
static int |
LOG_DAEMON |
static int |
LOG_FTP |
static int |
LOG_KERN |
static int |
LOG_LOCAL0 |
static int |
LOG_LOCAL1 |
static int |
LOG_LOCAL2 |
static int |
LOG_LOCAL3 |
static int |
LOG_LOCAL4 |
static int |
LOG_LOCAL5 |
static int |
LOG_LOCAL6 |
static int |
LOG_LOCAL7 |
static int |
LOG_LPR |
static int |
LOG_MAIL |
static int |
LOG_NEWS |
static int |
LOG_NTP |
static int |
LOG_SECURITY |
static int |
LOG_SYSLOG |
static int |
LOG_USER |
static int |
LOG_UUCP |
ACTION_BALANCE, ACTION_CREATE, ACTION_DEPLOY, ACTION_DISABLE, ACTION_ENABLE, ACTION_FAILOVER, ACTION_LIST, ACTION_QUERY, ACTION_RELOAD, ACTION_REMOVE, ACTION_RENAME, ACTION_RESTART, ACTION_STANDBY, ACTION_STOP, ACTION_UNDEPLOY, ACTION_UPDATE
Constructor and Description |
---|
EventSyslogger(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes or cleans up all the resources
|
protected void |
finalize() |
static int |
getFacilityByName(java.lang.String name)
It returns syslog facility in number or -1 on a bad facility name
|
java.lang.String |
getName()
returns the name of the action
|
void |
invokeAction(long currentTime,
Event event)
invokes the action upon the event
|
java.lang.String |
log(Event event) |
java.lang.String |
log(Event event,
java.util.Map map) |
java.lang.String |
log(int facility,
Event event) |
void |
log(int facility,
int priority,
long timestamp,
java.lang.String text) |
static void |
main(java.lang.String[] args) |
public static final int LOG_KERN
public static final int LOG_USER
public static final int LOG_MAIL
public static final int LOG_DAEMON
public static final int LOG_AUTH
public static final int LOG_SYSLOG
public static final int LOG_LPR
public static final int LOG_NEWS
public static final int LOG_UUCP
public static final int LOG_CRON
public static final int LOG_SECURITY
public static final int LOG_FTP
public static final int LOG_NTP
public static final int LOG_AUDIT
public static final int LOG_ALERT
public static final int LOG_CLOCK
public static final int LOG_LOCAL0
public static final int LOG_LOCAL1
public static final int LOG_LOCAL2
public static final int LOG_LOCAL3
public static final int LOG_LOCAL4
public static final int LOG_LOCAL5
public static final int LOG_LOCAL6
public static final int LOG_LOCAL7
public java.lang.String log(Event event) throws java.io.IOException
java.io.IOException
public java.lang.String log(int facility, Event event) throws java.io.IOException
java.io.IOException
public java.lang.String log(Event event, java.util.Map map) throws java.io.IOException
java.io.IOException
public void log(int facility, int priority, long timestamp, java.lang.String text) throws java.io.IOException
java.io.IOException
public void invokeAction(long currentTime, Event event)
EventAction
invokeAction
in interface EventAction
public java.lang.String getName()
EventAction
getName
in interface EventAction
public static int getFacilityByName(java.lang.String name)
public void close()
EventAction
close
in interface EventAction
protected void finalize()
finalize
in class java.lang.Object
public static void main(java.lang.String[] args)