All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.PerfTools.NetLoggerEvent

java.lang.Object
   |
   +----magician.PerfTools.NetEvent
           |
           +----magician.PerfTools.NetLoggerEvent

public class NetLoggerEvent
extends NetEvent
Class NetLoggerEvent is an event information class derived from NetEvent which records the type of the event, the event id and the time the event occurred in NetLogger output format. All these fields are user assigned.

See Also:
NetEvent

Variable Index

 o extraFields
 o HostName
 o PacketID
 o timeStampSec
 o timeStampUsec

Constructor Index

 o NetLoggerEvent()
constructor initializes public fields

Method Index

 o print(DataOutputStream)
prints the fields to the given output stream in NetLogger format
 o updateEventFields(String, long, String, long)
updates the fields with the passed parameter values.
 o updateEventFields(String, long, String, long, String)
updates the fields with the passed parameter values.

Variables

 o PacketID
 public long PacketID
 o timeStampSec
 public long timeStampSec
 o timeStampUsec
 public long timeStampUsec
 o HostName
 public String HostName
 o extraFields
 public String extraFields

Constructors

 o NetLoggerEvent
 public NetLoggerEvent()
constructor initializes public fields

Methods

 o print
 public void print(DataOutputStream out)
prints the fields to the given output stream in NetLogger format

Parameters:
out - DataOutputStream to which contents are printed
 o updateEventFields
 public void updateEventFields(String EventType,
                               long timeStamp,
                               String HostName,
                               long PacketID)
updates the fields with the passed parameter values.

Parameters:
EventType - a string describing the event in period-separated format
timeStamp - the time at which the event occured
host - the host on which the event occured
packetID - the ID of the packet for which the event is logged
 o updateEventFields
 public void updateEventFields(String EventType,
                               long timeStamp,
                               String HostName,
                               long PacketID,
                               String otherParams)
updates the fields with the passed parameter values. Additional fields may be passed in the form of a String.

Parameters:
EventType - a string describing the event in period-separated format
timeStamp - the time at which the event occured
host - the host on which the event occured
packetID - the ID of the packet for which the event is logged
otherParams - any additional fields

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1