|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.Tracer
public class Tracer
The Tracer generates debug messages that are sent to the java.util.Logging facility. There are three log handlers set up for logging -- the database log itself, an output file, and stdout (the "console"). By default, only the database file is enabled.
Field Summary | |
---|---|
static java.lang.String |
INFO_FILES
|
Constructor Summary | |
---|---|
Tracer()
Create trace record that will be filled in from the log. |
|
Tracer(java.lang.String msg)
Create a new debug record. |
Method Summary | |
---|---|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
void |
dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
boolean |
equals(java.lang.Object obj)
Override Object.equals |
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
java.lang.String |
getMessage()
|
static java.lang.String |
getStackTrace(java.lang.Throwable t)
|
long |
getTransactionId()
|
int |
hashCode()
Just in case it's ever used as a hash key. |
boolean |
logEntryIsTransactional()
|
boolean |
marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch. |
static java.util.logging.Level |
parseLevel(EnvironmentImpl envImpl,
ConfigParam configParam)
Parse a logging level config parameter, and return a more explanatory error message if it doesn't parse. |
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
java.lang.String |
toString()
|
static void |
trace(EnvironmentImpl envImpl,
java.lang.String sourceClass,
java.lang.String sourceMethod,
java.lang.String msg,
java.lang.Throwable t)
Logger method for recording an exception and stacktrace. |
static void |
trace(java.util.logging.Level logLevel,
EnvironmentImpl envImpl,
java.lang.String msg)
Logger method for recording a general message. |
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INFO_FILES
Constructor Detail |
---|
public Tracer(java.lang.String msg)
public Tracer()
Method Detail |
---|
public static void trace(java.util.logging.Level logLevel, EnvironmentImpl envImpl, java.lang.String msg)
public static void trace(EnvironmentImpl envImpl, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg, java.lang.Throwable t)
public static java.util.logging.Level parseLevel(EnvironmentImpl envImpl, ConfigParam configParam) throws DatabaseException
DatabaseException
public java.lang.String getMessage()
public static java.lang.String getStackTrace(java.lang.Throwable t)
public LogEntryType getLogType()
LoggableObject
getLogType
in interface LoggableObject
LoggableObject.getLogType()
public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch
in interface LoggableObject
Can be marshalled outside the log write latch.
public boolean countAsObsoleteWhenLogged()
LoggableObject
countAsObsoleteWhenLogged
in interface LoggableObject
LoggableObject.countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn)
LoggableObject
postLogWork
in interface LoggableObject
LoggableObject.postLogWork(long)
public int getLogSize()
getLogSize
in interface LogWritable
LogWritable.getLogSize()
public void writeToLog(java.nio.ByteBuffer logBuffer)
LogWritable
writeToLog
in interface LogWritable
logBuffer
- is the destination bufferLogWritable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer itemBuffer, byte entryTypeVersion)
LogReadable
readFromLog
in interface LogReadable
LogReadable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer sb, boolean verbose)
LogReadable
dumpLog
in interface LogReadable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLogReadable.dumpLog(java.lang.StringBuffer, boolean)
public boolean logEntryIsTransactional()
logEntryIsTransactional
in interface LogReadable
LogReadable.logEntryIsTransactional()
public long getTransactionId()
getTransactionId
in interface LogReadable
LogReadable.getTransactionId()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |