|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.nodeos.Debug
The package-internal debugging infrastructure.
The majority of routines in this file deal with printing directly to stdout/stderr through VM facilities. See the corresponding native layer for the details on where that output is directed.
Constructor Summary | |
Debug()
|
Method Summary | |
static java.lang.String |
dbgPacketSummary(BufferHandle bufh)
Get a string of the given Buffer. |
static java.lang.String |
dbgPacketSummary(BufferHandle bufh,
int len)
Get a string of maxDump bytes from the given Buffer. |
static java.lang.String |
dbgPacketSummary(BufferHandle bufh,
int offset,
int length)
Get a string of a subsequence of the bytes in the given packet. |
static java.lang.String |
dbgPacketSummary(edu.utah.janos.nodeos.pj_BufferHandle b)
|
static java.lang.String |
dbgPacketSummary(edu.utah.janos.nodeos.pj_BufferHandle b,
int len)
|
static java.lang.String |
dbgPacketSummary(edu.utah.janos.nodeos.pj_BufferHandle b,
int offset,
int len)
|
static java.lang.InternalError |
doPanic(java.lang.String str)
A generic panic() function. |
static java.lang.InternalError |
fatalException(java.lang.Throwable t,
java.lang.String msg)
|
static java.lang.InternalError |
notImplemented(java.lang.String expl)
A "not-implemented print-and-die" function. |
static void |
print(java.lang.String msg)
|
static void |
printInt(int i)
|
static void |
printIntHex(int i)
|
static void |
println(java.lang.String msg)
|
static void |
printLocation(java.lang.String file,
int line)
Print a file:line location. |
static void |
printStackTrace()
Print the stack trace to the current point of execution in the current thread. |
static void |
pTrace(java.lang.String file,
int line,
java.lang.String msg)
Print a trace message. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Debug()
Method Detail |
public static void print(java.lang.String msg)
public static void println(java.lang.String msg)
public static void printInt(int i)
public static void printIntHex(int i)
public static void printLocation(java.lang.String file, int line)
Trims the filename down to just the base file name...
file
- a file nameline
- a line numberpublic static void pTrace(java.lang.String file, int line, java.lang.String msg)
XXX move this into Trace.Java
file
- the name of the file the TRACE is inline
- the line number of the file the TRACE is inmsg
- the trace message to printpublic static java.lang.String dbgPacketSummary(BufferHandle bufh)
public static java.lang.String dbgPacketSummary(BufferHandle bufh, int len)
public static java.lang.String dbgPacketSummary(BufferHandle bufh, int offset, int length)
public static java.lang.String dbgPacketSummary(edu.utah.janos.nodeos.pj_BufferHandle b)
public static java.lang.String dbgPacketSummary(edu.utah.janos.nodeos.pj_BufferHandle b, int len)
public static java.lang.String dbgPacketSummary(edu.utah.janos.nodeos.pj_BufferHandle b, int offset, int len)
public static void printStackTrace()
public static java.lang.InternalError fatalException(java.lang.Throwable t, java.lang.String msg)
public static java.lang.InternalError notImplemented(java.lang.String expl)
expl
- the explaination for this rude behavior.public static java.lang.InternalError doPanic(java.lang.String str)
Whee! This returns an InternalError so that the caller might throw the result giving the compiler the impression that dPanic() will never return. Hehehe.
str
- The panic message to use as an excuse for killing the machine.
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |