|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.LogEntryType
public class LogEntryType
LogEntryType is an enumeration of all log entry types.
When adding a new version of a log entry type, make sure the corresponding LogEntry instance is capable of reading in older versions from the log. The LogEntry instance must be sure that older versions are converted in memory into a correct instance of the newest version, so when that LogEntry object is written again as the result of migration, eviction, the resulting new log entry conforms to the requirements of the new version. If context objects are required for data conversion, the conversion can be done in the Node.postFetchInit method.
Field Summary | |
---|---|
static LogEntryType[] |
IN_TYPES
|
static LogEntryType |
LOG_BIN
|
static LogEntryType |
LOG_BIN_DELTA
|
static LogEntryType |
LOG_CKPT_END
|
static LogEntryType |
LOG_CKPT_START
|
static LogEntryType |
LOG_DBIN
|
static LogEntryType |
LOG_DEL_DUPLN
|
static LogEntryType |
LOG_DEL_DUPLN_TRANSACTIONAL
|
static LogEntryType |
LOG_DIN
|
static LogEntryType |
LOG_DUP_BIN_DELTA
|
static LogEntryType |
LOG_DUPCOUNTLN
|
static LogEntryType |
LOG_DUPCOUNTLN_TRANSACTIONAL
|
static LogEntryType |
LOG_FILE_HEADER
|
static LogEntryType |
LOG_FILESUMMARYLN
|
static LogEntryType |
LOG_IN
|
static LogEntryType |
LOG_IN_DELETE_INFO
|
static LogEntryType |
LOG_IN_DUPDELETE_INFO
|
static LogEntryType |
LOG_LN
|
static LogEntryType |
LOG_LN_TRANSACTIONAL
|
static LogEntryType |
LOG_MAPLN
|
static LogEntryType |
LOG_MAPLN_TRANSACTIONAL
|
static LogEntryType |
LOG_NAMELN
|
static LogEntryType |
LOG_NAMELN_TRANSACTIONAL
|
static LogEntryType |
LOG_ROOT
|
static LogEntryType |
LOG_TRACE
|
static LogEntryType |
LOG_TXN_ABORT
|
static LogEntryType |
LOG_TXN_COMMIT
|
static LogEntryType |
LOG_TXN_PREPARE
|
Constructor Summary | |
---|---|
LogEntryType(byte typeNum,
byte version)
For base class support. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsType(byte typeNum)
|
(package private) boolean |
equalsType(byte typeNum,
byte version)
Check for equality without making a new object. |
static LogEntryType |
findType(byte typeNum,
byte version)
|
static java.util.Set |
getAllTypes()
Get a copy of all types for unit testing. |
(package private) LogEntry |
getNewLogEntry()
|
LogEntry |
getSharedLogEntry()
|
(package private) byte |
getTypeNum()
|
(package private) byte |
getVersion()
|
static byte |
getVersionValue(byte version)
Return the version value, clearing away provisional and replicated bits. |
int |
hashCode()
This is used as a hash key. |
(package private) static boolean |
isEntryProvisional(byte version)
|
static boolean |
isEntryReplicated(byte version)
|
boolean |
isNodeType()
|
static boolean |
isNodeType(byte typeNum,
byte version)
|
boolean |
isTransactional()
Return true if this log entry has transactional information in it, like a commit or abort record, or a transactional LN. |
boolean |
isTypeReplicated()
Return true if this log entry should be transmitted to other sites if the environment is part of a replication group. |
(package private) static boolean |
isValidType(byte typeNum)
|
boolean |
marshallOutsideLatch()
Return true if this log entry should be marshalled into a buffer outside the log write latch. |
(package private) static byte |
setEntryProvisional(byte version)
Set the provisional bit. |
(package private) static byte |
setEntryReplicated(byte version)
Set the replicated bit |
java.lang.String |
toString()
|
java.lang.String |
toStringNoVersion()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LogEntryType LOG_LN_TRANSACTIONAL
public static final LogEntryType LOG_LN
public static final LogEntryType LOG_MAPLN_TRANSACTIONAL
public static final LogEntryType LOG_MAPLN
public static final LogEntryType LOG_NAMELN_TRANSACTIONAL
public static final LogEntryType LOG_NAMELN
public static final LogEntryType LOG_DEL_DUPLN_TRANSACTIONAL
public static final LogEntryType LOG_DEL_DUPLN
public static final LogEntryType LOG_DUPCOUNTLN_TRANSACTIONAL
public static final LogEntryType LOG_DUPCOUNTLN
public static final LogEntryType LOG_FILESUMMARYLN
public static final LogEntryType LOG_IN
public static final LogEntryType LOG_BIN
public static final LogEntryType LOG_DIN
public static final LogEntryType LOG_DBIN
public static final LogEntryType[] IN_TYPES
public static final LogEntryType LOG_ROOT
public static final LogEntryType LOG_TXN_COMMIT
public static final LogEntryType LOG_TXN_ABORT
public static final LogEntryType LOG_CKPT_START
public static final LogEntryType LOG_CKPT_END
public static final LogEntryType LOG_IN_DELETE_INFO
public static final LogEntryType LOG_BIN_DELTA
public static final LogEntryType LOG_DUP_BIN_DELTA
public static final LogEntryType LOG_TRACE
public static final LogEntryType LOG_FILE_HEADER
public static final LogEntryType LOG_IN_DUPDELETE_INFO
public static final LogEntryType LOG_TXN_PREPARE
Constructor Detail |
---|
LogEntryType(byte typeNum, byte version)
Method Detail |
---|
public static boolean isNodeType(byte typeNum, byte version)
public boolean isNodeType()
public static LogEntryType findType(byte typeNum, byte version)
public static java.util.Set getAllTypes()
public LogEntry getSharedLogEntry()
LogEntry getNewLogEntry() throws DatabaseException
DatabaseException
public static byte getVersionValue(byte version)
static byte setEntryProvisional(byte version)
static boolean isEntryProvisional(byte version)
static byte setEntryReplicated(byte version)
public static boolean isEntryReplicated(byte version)
byte getTypeNum()
byte getVersion()
static boolean isValidType(byte typeNum)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringNoVersion()
boolean equalsType(byte typeNum, byte version)
public boolean equalsType(byte typeNum)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isTransactional()
public boolean marshallOutsideLatch()
public boolean isTypeReplicated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |