| |
|
| java.lang.Object com.sleepycat.je.log.LogEntryType
LogEntryType | public class LogEntryType (Code) | | 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.
|
Constructor Summary | |
| LogEntryType(byte typeNum, byte version) For base class support. |
LOG_DEL_DUPLN_TRANSACTIONAL | final public static LogEntryType LOG_DEL_DUPLN_TRANSACTIONAL(Code) | | |
LOG_DUPCOUNTLN_TRANSACTIONAL | final public static LogEntryType LOG_DUPCOUNTLN_TRANSACTIONAL(Code) | | |
LogEntryType | LogEntryType(byte typeNum, byte version)(Code) | | For base class support.
|
equalsType | boolean equalsType(byte typeNum, byte version)(Code) | | Check for equality without making a new object.
|
equalsType | public boolean equalsType(byte typeNum)(Code) | | |
findType | public static LogEntryType findType(byte typeNum, byte version)(Code) | | the static version of this type |
getAllTypes | public static Set getAllTypes()(Code) | | Get a copy of all types for unit testing.
|
getSharedLogEntry | public LogEntry getSharedLogEntry()(Code) | | the log entry type owned by the shared, static version |
getTypeNum | byte getTypeNum()(Code) | | |
getVersion | byte getVersion()(Code) | | |
getVersionValue | public static byte getVersionValue(byte version)(Code) | | Return the version value, clearing away provisional and replicated bits.
|
hashCode | public int hashCode()(Code) | | This is used as a hash key.
|
isEntryProvisional | static boolean isEntryProvisional(byte version)(Code) | | true if the provisional bit is set. |
isEntryReplicated | public static boolean isEntryReplicated(byte version)(Code) | | true if the replicated bit is set. |
isNodeType | public static boolean isNodeType(byte typeNum, byte version)(Code) | | |
isNodeType | public boolean isNodeType()(Code) | | |
isTransactional | public boolean isTransactional()(Code) | | Return true if this log entry has transactional information in it,
like a commit or abort record, or a transactional LN.
|
isTypeReplicated | public boolean isTypeReplicated()(Code) | | Return true if this log entry should be transmitted to other
sites if the environment is part of a replication group.
|
isValidType | static boolean isValidType(byte typeNum)(Code) | | true if type number is valid. |
marshallOutsideLatch | public boolean marshallOutsideLatch()(Code) | | Return true if this log entry should be marshalled into a buffer
outside the log write latch. Currently, only the FileSummaryLN needs
to be logged inside the log write latch.
|
setEntryProvisional | static byte setEntryProvisional(byte version)(Code) | | Set the provisional bit.
|
setEntryReplicated | static byte setEntryReplicated(byte version)(Code) | | Set the replicated bit
|
|
|
|