com.sleepycat.je.log
Class DbOpReplicationContext

java.lang.Object
  extended by com.sleepycat.je.log.ReplicationContext
      extended by 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.


Field Summary
static DbOpReplicationContext NO_REPLICATE
           
 
Fields inherited from class com.sleepycat.je.log.ReplicationContext
MASTER
 
Constructor Summary
DbOpReplicationContext(boolean inReplicationStream, DbOperationType opType)
          Create a replication context for logging a database operation NameLN on the master.
DbOpReplicationContext(VLSN vlsn, NameLNLogEntry nameLNEntry)
          Create a repContext for executing a databaseOperation on the client.
 
Method Summary
 ReplicatedDatabaseConfig getCreateConfig()
           
 DbOperationType getDbOperationType()
           
 DatabaseId getTruncateOldDbId()
           
 void setCreateConfig(ReplicatedDatabaseConfig createConfig)
           
 void setTruncateOldDbId(DatabaseId truncateOldDbId)
           
 String toString()
           
 
Methods inherited from class com.sleepycat.je.log.ReplicationContext
getClientVLSN, inReplicationStream, mustGenerateVLSN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_REPLICATE

public static DbOpReplicationContext NO_REPLICATE
Constructor Detail

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.

Method Detail

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.