|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.log.Trace
public class Trace
Trace logs event tracing messages into .jdb files. Only critical messages that should always be included in a log should use this functionality.
| Constructor Summary | |
|---|---|
Trace()
Create a trace record that will be filled in from the log. |
|
Trace(String msg)
Create a new debug record. |
|
| Method Summary | |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
boolean |
equals(Object obj)
Override Object.equals |
int |
getLogSize()
|
String |
getMessage()
|
long |
getTransactionId()
|
int |
hashCode()
Just in case it's ever used as a hash key. |
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf. |
String |
toString()
|
static void |
trace(EnvironmentImpl envImpl,
String message)
Convenience method to create a log entry containing this trace msg. |
static long |
trace(EnvironmentImpl envImpl,
Trace traceMsg)
Trace a trace object, unit tests only. |
static void |
traceLazily(EnvironmentImpl envImpl,
String message)
Convenience method to create a log entry (lazily) containing this trace msg. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Trace(String msg)
public Trace()
| Method Detail |
|---|
public String getMessage()
public static void trace(EnvironmentImpl envImpl,
String message)
public static long trace(EnvironmentImpl envImpl,
Trace traceMsg)
public static void traceLazily(EnvironmentImpl envImpl,
String message)
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Loggable
readFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, int)
public void dumpLog(StringBuilder sb,
boolean verbose)
Loggable
dumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableLoggable.logicalEquals(com.sleepycat.je.log.Loggable)public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||