java.lang.Object
org.scoja.server.core.EventSkeleton
org.scoja.server.core.InternalEvent
- All Implemented Interfaces:
- Event
- public class InternalEvent
- extends EventSkeleton
Los eventos internos se dividen en 3 grupos.
- Errors, with levels less or equal to PriorityUtils.ERR>
PriorityUtils.ERR 55 .
- Sensible events, with levels
PriorityUtils.WARNING>
PriorityUtils.WARNING 55 and PriorityUtils.NOTICE>PriorityUtils.NOTICE 55 .
- Trace events, with levels greater or equal to
PriorityUtils.INFO>
PriorityUtils.INFO 55 .
While processing
trace events, no other internal events are
produced.
A table to know when to use a level:
- PriorityUtils.EMERG>
PriorityUtils.EMERG 55
-
- PriorityUtils.ALERT>
PriorityUtils.ALERT 55
-
- PriorityUtils.CRIT>
PriorityUtils.CRIT 55
-
- PriorityUtils.ERR>
PriorityUtils.ERR 55
-
- PriorityUtils.WARNING>
PriorityUtils.WARNING 55
-
- PriorityUtils.NOTICE>
PriorityUtils.NOTICE 55
-
- PriorityUtils.INFO>
PriorityUtils.INFO 55
-
- PriorityUtils.DEBUG>
PriorityUtils.DEBUG 55
-
| Fields inherited from class org.scoja.server.core.EventSkeleton |
asString, buildCalendar, buildTimestamp, qAddress, qCanonicalHostName, qData, qHost, qHostName, qMessage, qProgram, simpleFullDateFormat |
| Methods inherited from class org.scoja.server.core.EventSkeleton |
getCanonicalHostName, getFacility, getHostName, getLevel, getPriorityName, getQAddress, getQCanonicalHostName, getQData, getQHost, getQHostName, getQMessage, getQProgram, getReceivedCalendar, getReceivedTimestamp, getSendCalendar, getSendTimestamp, toString |
address
protected final java.net.InetAddress address
energy
protected final int energy
priority
protected final int priority
data
protected java.lang.String data
program
protected final java.lang.String program
message
protected final java.lang.String message
InternalEvent
public InternalEvent(java.net.InetAddress address,
int energy,
int facility,
int level,
java.lang.String program,
java.lang.String message)
InternalEvent
public InternalEvent(java.net.InetAddress address,
int energy,
int priority,
java.lang.String program,
java.lang.String message)
getEnergy
public int getEnergy()
getPriority
public int getPriority()
isTraceable
public boolean isTraceable()
- Overrides:
isTraceable in class EventSkeleton
shouldLogErrors
public boolean shouldLogErrors()
- Overrides:
shouldLogErrors in class EventSkeleton
getHost
public java.lang.String getHost()
- Description copied from interface:
Event
- Devuelve el nombre que venga en el evento,
o
getAddress().getHostAddress().
getAddress
public java.net.InetAddress getAddress()
- Description copied from interface:
Event
- Devuelve la IP del origen del evento (localhost para los
paquetes internos y locales).
getData
public java.lang.String getData()
- Description copied from interface:
Event
- Devuelve la parte de datos del evento, que en un paquete de
syslog convencional es
getProgram() + ": " + getMessage().
getProgram
public java.lang.String getProgram()
- Description copied from interface:
Event
- Devuelve el programa que ha originado este evento.
getMessage
public java.lang.String getMessage()
- Description copied from interface:
Event
- Devuelve el mensaje del evento.
writeTo
public void writeTo(java.io.PrintWriter out)
- Description copied from interface:
Event
- Escribe el evento a
out, con el formato estándar
de syslog.