Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scoja.server.core
Class EventSkeleton  view EventSkeleton download EventSkeleton.java

java.lang.Object
  extended byorg.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.


Field Summary
protected  java.lang.String asString
           
protected  java.util.Calendar buildCalendar
           
protected  long buildTimestamp
           
protected  QStr qAddress
           
protected  QStr qCanonicalHostName
           
protected  QStr qData
           
protected  QStr qHost
           
protected  QStr qHostName
           
protected  QStr qMessage
           
protected  QStr qProgram
           
static java.text.SimpleDateFormat simpleFullDateFormat
           
 
Fields inherited from interface org.scoja.server.core.Event
DEFAULT_ENERGY, NO_ENERGY, UNKNOWN_TIMESTAMP
 
Constructor Summary
EventSkeleton()
           
 
Method Summary
 java.lang.String getCanonicalHostName()
          Devuelve el getAddress().getCanonicalHostName().
 int getFacility()
           
 java.lang.String getHostName()
          Devuelve el getAddress().getHostName().
 int getLevel()
           
 java.lang.String getPriorityName()
           
 QStr getQAddress()
           
 QStr getQCanonicalHostName()
           
 QStr getQData()
           
 QStr getQHost()
           
 QStr getQHostName()
           
 QStr getQMessage()
           
 QStr getQProgram()
           
 java.util.Calendar getReceivedCalendar()
           
 long getReceivedTimestamp()
           
 java.util.Calendar getSendCalendar()
           
 long getSendTimestamp()
           
 boolean isTraceable()
           
 boolean shouldLogErrors()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scoja.server.core.Event
getAddress, getData, getEnergy, getHost, getMessage, getPriority, getProgram, writeTo
 

Field Detail

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
Constructor Detail

EventSkeleton

public EventSkeleton()
Method Detail

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()).