MicroTAPAS.debug
Class DebugEvent

java.lang.Object
  |
  +--MicroTAPAS.debug.DebugEvent
All Implemented Interfaces:
java.io.Serializable

public class DebugEvent
extends java.lang.Object
implements java.io.Serializable

A simple object to hold information about a debug event that should be sent to the debug server.

See Also:
Serialized Form

Field Summary
static int FATAL
          Define fault types
static int FAULT
           
static java.lang.String[] faultTypes
          String representation of faultTypes.
private  long id
           
static int INFODEBUG
           
static int INFORUNTIME
           
private  java.lang.String method
           
private  java.lang.Object msg
           
private  java.lang.String node
           
private  java.lang.String senderClass
           
 long timestamp
           
private  int type
           
static int WARNING
           
 
Constructor Summary
DebugEvent(java.lang.Object pSender, int pType, java.lang.String pMethod, java.lang.Object pMsg)
          Constructor
 
Method Summary
 long getId()
           
 java.lang.String getMethod()
           
 java.lang.Object getMsg()
           
 java.lang.String getNode()
           
 java.lang.String getSender()
           
 long getTimestamp()
           
 int getType()
           
private  void init()
          Initializes this DebugEvent
 java.lang.String toString()
          Overloaded toString() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FATAL

public static final int FATAL
Define fault types

See Also:
Constant Field Values

FAULT

public static final int FAULT
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

INFORUNTIME

public static final int INFORUNTIME
See Also:
Constant Field Values

INFODEBUG

public static final int INFODEBUG
See Also:
Constant Field Values

faultTypes

public static final java.lang.String[] faultTypes
String representation of faultTypes.


node

private java.lang.String node

senderClass

private java.lang.String senderClass

method

private java.lang.String method

type

private int type

msg

private java.lang.Object msg

id

private long id

timestamp

public long timestamp
Constructor Detail

DebugEvent

public DebugEvent(java.lang.Object pSender,
                  int pType,
                  java.lang.String pMethod,
                  java.lang.Object pMsg)
Constructor

Parameters:
pSender - A refrence to the sending object.
pType - The type of debug event.
pMethod - The method from which the event was sent.
pMsg - The message contained in the event.
Method Detail

init

private void init()
Initializes this DebugEvent


getNode

public java.lang.String getNode()

getSender

public java.lang.String getSender()

getMethod

public java.lang.String getMethod()

getType

public int getType()

getMsg

public java.lang.Object getMsg()

getTimestamp

public long getTimestamp()

getId

public long getId()

toString

public java.lang.String toString()
Overloaded toString() method.

Overrides:
toString in class java.lang.Object
Returns:
The String representation of this object.


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.