|
|||||||||
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 String |
INFO_FILES
|
Constructor Summary | |
---|---|
Tracer()
Create trace record that will be filled in from the log. |
|
Tracer(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(StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
boolean |
equals(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. |
String |
getMessage()
|
static String |
getStackTrace(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 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(ByteBuffer itemBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
String |
toString()
|
static void |
trace(EnvironmentImpl envImpl,
String sourceClass,
String sourceMethod,
String msg,
Throwable t)
Logger method for recording an exception and stacktrace. |
static void |
trace(Level logLevel,
EnvironmentImpl envImpl,
String msg)
Logger method for recording a general message. |
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 |
Field Detail |
---|
public static final String INFO_FILES
Constructor Detail |
---|
public Tracer(String msg)
public Tracer()
Method Detail |
---|
public static void trace(Level logLevel, EnvironmentImpl envImpl, String msg)
public static void trace(EnvironmentImpl envImpl, String sourceClass, String sourceMethod, String msg, Throwable t)
public static Level parseLevel(EnvironmentImpl envImpl, ConfigParam configParam) throws DatabaseException
DatabaseException
public String getMessage()
public static String getStackTrace(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(ByteBuffer logBuffer)
LogWritable
writeToLog
in interface LogWritable
logBuffer
- is the destination bufferLogWritable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion)
LogReadable
readFromLog
in interface LogReadable
LogReadable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(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 String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |