public class Trace extends BasicVersionedWriteLoggable
| Constructor and Description |
|---|
Trace()
Create a trace record that will be filled in from the log.
|
Trace(String msg)
Create a new debug record.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
boolean |
equals(Object obj) |
Collection<VersionedWriteLoggable> |
getEmbeddedLoggables() |
int |
getLastFormatChange()
Returns the log version of the most recent format change for this
loggable item.
|
int |
getLogSize(int logVersion,
boolean forReplication)
Returns the number of bytes needed to store this object in the format
for the specified log version.
|
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,
int logVersion,
boolean forReplication)
Serializes this object into the specified buffer in the format for the
specified log version.
|
getLogSize, hasReplicationFormat, isReplicationFormatWorthwhile, writeToLogpublic Trace(String msg)
public Trace()
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 getLastFormatChange()
VersionedWriteLoggableReplicableLogEntry.getLastFormatChange()public Collection<VersionedWriteLoggable> getEmbeddedLoggables()
public int getLogSize(int logVersion,
boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.logVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void writeToLog(ByteBuffer logBuffer, int logVersion, boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.logBuffer - the destination bufferlogVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void readFromLog(ByteBuffer itemBuffer, int entryVersion)
LoggableitemBuffer - the source bufferentryVersion - the log version of the datapublic void dumpLog(StringBuilder sb, boolean verbose)
Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionpublic long getTransactionId()
public boolean logicalEquals(Loggable other)
public int hashCode()
Copyright © 2024. All rights reserved.