net.fenyo.gnetwatch.data
Class EventGeneric

java.lang.Object
  extended by net.fenyo.gnetwatch.data.EventGeneric
Direct Known Subclasses:
EventBytesExchanged, EventFlood, EventGenericProcess, EventGenericSrc, EventHTTP, EventHTTPPages, EventNmap, EventReachable

public abstract class EventGeneric
extends java.lang.Object

This base class for every events stores the date of the event.

Version:
$Id: EventGeneric.java,v 1.14 2008/04/26 22:38:34 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  java.util.Date date
           
private  EventList eventList
           
private  java.lang.Long id
           
private static Log log
           
 
Constructor Summary
  EventGeneric()
          Default constructor.
protected EventGeneric(java.util.Date date)
          Constructor.
 
Method Summary
 java.util.Date getDate()
          Returns the date of creation of this event.
 EventList getEventList()
           
 java.lang.Long getId()
           
 int getIntValue()
          Returns an integer representation of the performance counter associated whith this event.
 void setDate(java.util.Date date)
           
 void setEventList(EventList eventList)
           
protected  void setId(java.lang.Long id)
           
 void setIntValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

id

private java.lang.Long id

date

private java.util.Date date

eventList

private EventList eventList
Constructor Detail

EventGeneric

protected EventGeneric(java.util.Date date)
Constructor.

Parameters:
date - date of creation.

EventGeneric

public EventGeneric()
Default constructor.

Parameters:
none. -
Method Detail

getId

public java.lang.Long getId()

setId

protected void setId(java.lang.Long id)

getEventList

public EventList getEventList()

setEventList

public void setEventList(EventList eventList)

getIntValue

public int getIntValue()
Returns an integer representation of the performance counter associated whith this event.

Returns:
int performance counter.

setIntValue

public void setIntValue(int value)

getDate

public java.util.Date getDate()
Returns the date of creation of this event.

Parameters:
none. -
Returns:
Date date of creation.

setDate

public void setDate(java.util.Date date)