java.lang.Object
org.scoja.server.core.EventSkeleton
- All Implemented Interfaces:
- Event
- Direct Known Subclasses:
- InternalEvent
- public abstract class EventSkeleton
- extends java.lang.Object
- implements Event
Es un paso intermedio en la implementación de Event.
simpleFullDateFormat
public static final java.text.SimpleDateFormat simpleFullDateFormat
buildTimestamp
protected final long buildTimestamp
buildCalendar
protected java.util.Calendar buildCalendar
asString
protected java.lang.String asString
qHost
protected QStr qHost
qAddress
protected QStr qAddress
qHostName
protected QStr qHostName
qCanonicalHostName
protected QStr qCanonicalHostName
qData
protected QStr qData
qProgram
protected QStr qProgram
qMessage
protected QStr qMessage
EventSkeleton
public EventSkeleton()
getPriorityName
public java.lang.String getPriorityName()
- Specified by:
getPriorityName in interface Event
getFacility
public int getFacility()
- Specified by:
getFacility in interface Event
getLevel
public int getLevel()
- Specified by:
getLevel in interface Event
isTraceable
public boolean isTraceable()
shouldLogErrors
public boolean shouldLogErrors()
getSendTimestamp
public long getSendTimestamp()
- Specified by:
getSendTimestamp in interface Event
getSendCalendar
public java.util.Calendar getSendCalendar()
- Specified by:
getSendCalendar in interface Event
getReceivedTimestamp
public long getReceivedTimestamp()
- Specified by:
getReceivedTimestamp in interface Event
getReceivedCalendar
public java.util.Calendar getReceivedCalendar()
- Specified by:
getReceivedCalendar in interface Event
getHostName
public java.lang.String getHostName()
- Description copied from interface:
Event
- Devuelve el
getAddress().getHostName().
- Specified by:
getHostName in interface Event
getCanonicalHostName
public java.lang.String getCanonicalHostName()
- Description copied from interface:
Event
- Devuelve el
getAddress().getCanonicalHostName().
- Specified by:
getCanonicalHostName in interface Event
getQHost
public QStr getQHost()
- Specified by:
getQHost in interface Event
getQAddress
public QStr getQAddress()
- Specified by:
getQAddress in interface Event
getQHostName
public QStr getQHostName()
- Specified by:
getQHostName in interface Event
getQCanonicalHostName
public QStr getQCanonicalHostName()
- Specified by:
getQCanonicalHostName in interface Event
getQData
public QStr getQData()
- Specified by:
getQData in interface Event
getQProgram
public QStr getQProgram()
- Specified by:
getQProgram in interface Event
getQMessage
public QStr getQMessage()
- Specified by:
getQMessage in interface Event
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).