sg.edu.nus.logging
Class LogEvent

java.lang.Object
  extended by sg.edu.nus.logging.LogEvent

public final class LogEvent
extends java.lang.Object

A wrapper used for encapsulating event.

Version:
1.0 2006-6-23
Author:
Xu Linhao

Field Summary
static int EVENT_ITEMS
           
 
Constructor Summary
LogEvent(java.lang.String t, java.lang.String d, java.lang.String h, java.lang.String s, java.lang.String u)
          Constructor.
 
Method Summary
 java.lang.Object[] toArray()
          Returns an array that contains all elements of LogEvent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_ITEMS

public static final int EVENT_ITEMS
See Also:
Constant Field Values
Constructor Detail

LogEvent

public LogEvent(java.lang.String t,
                java.lang.String d,
                java.lang.String h,
                java.lang.String s,
                java.lang.String u)
Constructor.

Parameters:
t - the event type
d - the event description
h - the host name who sends requests
s - the IP address of the requester
u - the owner of the current peer
Method Detail

toArray

public java.lang.Object[] toArray()
Returns an array that contains all elements of LogEvent.

Returns:
returns an array that contains all elements of LogEvent