Constructor and Description |
---|
Trace()
Create a trace record that will be filled in from the log.
|
Trace(java.lang.String msg)
Create a new debug record.
|
Modifier and Type | Method and Description |
---|---|
void |
dumpLog(java.lang.StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
boolean |
equals(java.lang.Object obj)
Override Object.equals
|
int |
getLogSize() |
java.lang.String |
getMessage() |
long |
getTransactionId() |
int |
hashCode()
Just in case it's ever used as a hash key.
|
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString() |
static void |
trace(EnvironmentImpl envImpl,
java.lang.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,
java.lang.String message)
Convenience method to create a log entry (lazily) containing this trace
msg.
|
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public Trace(java.lang.String msg)
public Trace()
public java.lang.String getMessage()
public static void trace(EnvironmentImpl envImpl, java.lang.String message)
public static long trace(EnvironmentImpl envImpl, Trace traceMsg)
public static void traceLazily(EnvironmentImpl envImpl, java.lang.String message)
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
logBuffer
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer itemBuffer, int entryVersion)
Loggable
readFromLog
in interface Loggable
Loggable.readFromLog(java.nio.ByteBuffer, int)
public void dumpLog(java.lang.StringBuilder sb, boolean verbose)
Loggable
dumpLog
in interface Loggable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
Loggable.logicalEquals(com.sleepycat.je.log.Loggable)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright (c) 2004-2012 Oracle. All rights reserved.