|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Date | +--atropos.lp.AvnmpTime | +--atropos.lp.AvnmpDebug
This class handles AVNMP Debugging messages.
This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
Field Summary | |
int |
dlevel
Bitmap of code portions to debug. |
static int |
DRIVER_D
Enable checking of Driver Process values. |
static int |
GVT_D
Global Virtual Time debugging. |
protected HtmlDebug |
html
This is the class for building the HTML debug files. |
static int |
LP_D
Enable Logical Process debugging. |
static int |
LPSTATE_D
Enable checking of Driver Process values. |
static int |
MEASURE_D
Used for measuring experimental values. |
java.lang.String |
NodeName
Active Node Name. |
static int |
PACKET_D
Enable checking of the AVNMP packet. |
static int |
PAYLOAD_D
Enable checking of Physical Process PayLoad values. |
static int |
PP_D
Turn on physical process debugging. |
static int |
PREDM_D
Enable checking of Prediction Accuracy Measure. |
static int |
RECQ_D
Show Receive Queue debugging. |
static int |
ROLLBACK_D
Enable checking of out-of-tolerance values. |
static int |
SNDQ_D
Show Send Queue debugging. |
static int |
STATEQ_D
Enable State Queue debugging. |
static int |
SYSTEM_D
Enable System level debugging. |
static int |
TIME_D
Enable Time Management debugging. |
static int |
TOLERANCE_D
Enable checking of out-of-tolerance values. |
Fields inherited from interface atropos.lp.ConfigInterface |
Dvm, initTolerance, logdir, lvm, ootLimit, pdir, rmlog, rmplots, rmsnmp, runMinutes, snmpdir, VirtualMessageRatio |
Constructor Summary | |
AvnmpDebug()
This constructor sets the level of debugging. |
Method Summary | |
java.lang.String |
debugType(int level)
Return a readable version of the type of debug message. |
abstract long |
getlvt()
This method is to be over-ridden by the the logical process. |
abstract long |
getRealTime()
This method is to be over-ridden by the the logical process. |
void |
log(int level,
AvnmpPacket ap,
int conn,
AvnmpLP mylp,
AvnmpTime t)
Conditinally display the debug message. |
void |
log(int level,
AvnmpQueue aq,
int conn,
AvnmpLP mylp,
AvnmpTime t)
Conditinally display the debug message. |
void |
log(int level,
java.lang.String mes)
Conditinally display the debug message. |
void |
log(int level,
java.lang.String mes,
int conn)
Conditinally display the debug message. |
void |
measure(java.lang.Object value,
java.lang.String fname)
Record a measured value. |
abstract java.lang.String |
myname()
This method is to be over-ridden by the the logical process. |
void |
resetLog(java.lang.String nn,
AvnmpLP mylp)
Reset the log file. |
void |
setLevel(int level)
Set the bitmap for debugging. |
void |
writeLog(int level,
java.lang.String mes)
Conditinally display the debug message. |
Methods inherited from class atropos.lp.AvnmpTime |
add, adjustRelative, diff, now, resetRelative, set, startTime, time, toString |
Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String NodeName
public static final int GVT_D
public static final int RECQ_D
public static final int SNDQ_D
public static final int PP_D
public static final int STATEQ_D
public static final int TIME_D
public static final int LP_D
public static final int SYSTEM_D
public static final int MEASURE_D
public static final int TOLERANCE_D
public static final int ROLLBACK_D
public static final int DRIVER_D
public static final int LPSTATE_D
public static final int PAYLOAD_D
public static final int PREDM_D
public static final int PACKET_D
public int dlevel
protected HtmlDebug html
Constructor Detail |
public AvnmpDebug()
Method Detail |
public void setLevel(int level)
level
- Bitwise or'ing of above debug bits.public void resetLog(java.lang.String nn, AvnmpLP mylp)
nn
- The Magician node name.mylp
- The current logical process.public void log(int level, java.lang.String mes, int conn)
level
- The portion of the code in which this debug message
is located.mes
- The debug message.conn
- Indicates a message is being sent or received across
a logical partition.public void log(int level, AvnmpQueue aq, int conn, AvnmpLP mylp, AvnmpTime t)
level
- The portion of the code in which this debug message
is located.ap
- The packetconn
- Indicates a message is being sent or received across
a logical partition.mylp
- The current LPt
- The current LP real timepublic void log(int level, AvnmpPacket ap, int conn, AvnmpLP mylp, AvnmpTime t)
level
- The portion of the code in which this debug message
is located.ap
- The packetconn
- Indicates a message is being sent or received across
a logical partition.mylp
- The current LPt
- The current LP real timepublic void log(int level, java.lang.String mes)
level
- The portion of the code in which this debug message
is located.mes
- The debug message.public void writeLog(int level, java.lang.String mes)
level
- The portion of the code in which this debug message
is located.mes
- The debug message.public abstract long getlvt()
public abstract java.lang.String myname()
public abstract long getRealTime()
public java.lang.String debugType(int level)
level
- The debug level.public void measure(java.lang.Object value, java.lang.String fname)
Object
- The measured value to be recorded.fname
- Part of the filename. The complete filename is
logdir+fname+"_"+NodeName+".dat".MEASURE_D
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |