|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.util.DebugRecorder
public class DebugRecorder
This class is used to record debugging information that can be accessed during run-time through a client. The debugging information is in the form of a vector of strings. Each debugging vector is stored in a table under a key that is supplied by the user.
Field Summary | |
---|---|
private java.lang.Object |
currentKey
|
private java.util.Vector<java.lang.String> |
currentRecord
|
static int |
NOT_RECORDING
|
private boolean |
on
|
static int |
RECORDING
|
private java.util.Map<java.lang.Object,java.util.Vector<java.lang.String>> |
records
|
private int |
state
|
Constructor Summary | |
---|---|
DebugRecorder()
constructor |
Method Summary | |
---|---|
void |
eraseAllRecords()
Clear the record table |
java.util.Vector<java.lang.String> |
getRecord(java.lang.Object key)
Get a record from the table |
boolean |
isOn()
|
void |
putRecord(java.lang.Object key,
java.util.Vector<java.lang.String> rec)
Store a record in the table |
void |
record(java.lang.String s)
Add a string to the current record |
void |
resume()
resume recording |
void |
startRecording(java.lang.Object key)
Start recording the current plan information |
void |
stopRecording()
stop recording and store the vector in the table |
void |
suspend()
suspend recording |
void |
turnOff()
turn the recorder off |
void |
turnOn()
turn the recorder on |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOT_RECORDING
public static final int RECORDING
private java.util.Map<java.lang.Object,java.util.Vector<java.lang.String>> records
private java.lang.Object currentKey
private java.util.Vector<java.lang.String> currentRecord
private int state
private boolean on
Constructor Detail |
---|
public DebugRecorder()
Method Detail |
---|
public void turnOn()
public void turnOff()
public boolean isOn()
public void startRecording(java.lang.Object key)
key
- the key to use to index this recordingpublic void stopRecording()
public void suspend()
public void resume()
public void record(java.lang.String s)
s
- the string to addpublic java.util.Vector<java.lang.String> getRecord(java.lang.Object key)
key
- the key for the record
public void putRecord(java.lang.Object key, java.util.Vector<java.lang.String> rec)
key
- the key for the recordrec
- the record (a vector of strings)public void eraseAllRecords()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |