com.sleepycat.je.log
Class DbOpReplicationContext
java.lang.Object
com.sleepycat.je.log.ReplicationContext
com.sleepycat.je.log.DbOpReplicationContext
public class DbOpReplicationContext
- extends ReplicationContext
This subclass of ReplicationContext adds information specific to database
operations to the replication context passed from operation-aware code down
the the logging layer. It's a way to transport enough information though the
NameLNLogEntry to logically replicate database operations.
NO_REPLICATE
public static DbOpReplicationContext NO_REPLICATE
DbOpReplicationContext
public DbOpReplicationContext(boolean inReplicationStream,
DbOperationType opType)
- Create a replication context for logging a database operation NameLN on
the master.
DbOpReplicationContext
public DbOpReplicationContext(VLSN vlsn,
NameLNLogEntry nameLNEntry)
- Create a repContext for executing a databaseOperation on the client.
getDbOperationType
public DbOperationType getDbOperationType()
- Overrides:
getDbOperationType
in class ReplicationContext
- Returns:
- the type of database operation in progress. For the default
case, we return DbOperationType.NONE.
setCreateConfig
public void setCreateConfig(ReplicatedDatabaseConfig createConfig)
getCreateConfig
public ReplicatedDatabaseConfig getCreateConfig()
setTruncateOldDbId
public void setTruncateOldDbId(DatabaseId truncateOldDbId)
getTruncateOldDbId
public DatabaseId getTruncateOldDbId()
toString
public String toString()
- Overrides:
toString
in class ReplicationContext
Copyright (c) 2004-2012 Oracle. All rights reserved.