IDebug
© 1997-2001 Joseph Kiniry
© 2000-2001 KindSoftware
© 1997-1999 Caltech
All Rights Reserved

idebug
Class Event

java.lang.Object
  |
  +--idebug.Event
All Implemented Interfaces:
java.io.Serializable

public abstract class Event
extends java.lang.Object
implements java.io.Serializable

Event is a utility base class from which all log/monitoring events can derive or have embedded.

Version:
$Revision: 2146 $ $Date: 2005-02-13 16:54:27 +0000 (Sun, 13 Feb 2005) $
Author:
Joseph Kiniry
See Also:
Serialized Form

Constructor Summary
Event(java.lang.String sourceH, java.lang.String sourceC, java.lang.String desc, java.lang.String t, int l)
           This the standard constructor for Event.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           Is this event equal to another one?
 java.util.Date getCreationDate()
           When was this event generated?
 java.lang.String getDescription()
           What is the description of this event?
 int getLevel()
           How important is this event?
 java.lang.String getSourceComponent()
           What is the source component of this event?
 java.lang.String getSourceHost()
           What is the source system of this event?
 java.lang.String getType()
           What type of event is this?
 java.lang.String toString()
           What is a printable representation of this event?
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event(java.lang.String sourceH,
             java.lang.String sourceC,
             java.lang.String desc,
             java.lang.String t,
             int l)

This the standard constructor for Event. No other constructor can be legally used.

Parameters:
sourceH - The source host for the event.
sourceC - The source component for the event.
desc - An English description of the event.
t - The type of the event.
l - The level of the event.
Method Detail

toString

public java.lang.String toString()

What is a printable representation of this event?

Overrides:
toString in class java.lang.Object
Returns:
a printable representation of the event.

equals

public boolean equals(java.lang.Object obj)

Is this event equal to another one?

Overrides:
equals in class java.lang.Object
Returns:
if two Events are equal.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getSourceHost

public java.lang.String getSourceHost()

What is the source system of this event?

Returns:
the source system for this event.

getSourceComponent

public java.lang.String getSourceComponent()

What is the source component of this event?

Returns:
the source component of this event.

getCreationDate

public java.util.Date getCreationDate()

When was this event generated?

Returns:
the time at which this event was generated.

getDescription

public java.lang.String getDescription()

What is the description of this event?

Returns:
the description of this event.

getType

public java.lang.String getType()

What type of event is this?

Returns:
the type of this event.
See Also:
DebugConstants

getLevel

public int getLevel()

How important is this event?

Returns:
the level of importance of this event.

IDebug
© 1997-2001 Joseph Kiniry
© 2000-2001 KindSoftware
© 1997-1999 Caltech
All Rights Reserved