org.objectweb.cjdbc.controller.virtualdatabase.protocol
Class ReplicateLogEntries

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.virtualdatabase.protocol.ReplicateLogEntries
All Implemented Interfaces:
java.io.Serializable

public class ReplicateLogEntries
extends java.lang.Object
implements java.io.Serializable

This message is used both to prepare the sending of a set of log entries to a remote controller's vdb recovery log (intialization) and to terminate it (termination). Initialization is the second step of the process to rebuild the remote recovery log from a live one, termination is the final step of the process. The process is as such so that eventually the remote vdb backends can be restored from dumps. Upon reception of this message for the initialisation phase (identified by a null dumpCheckpointName), the remote recovery log is cleared from the beginning upto the 'now' checkpoint. Subsequently, CopyLogEntry messages are sent and log entries are inserted 'as are' into the remote recovery log. Then, upon reception of this message for the termination phase (non-null dumpCheckpointName), the remote recovery log makes the dumpCheckpointName available for restore operations.

Version:
1.0
Author:
CopyLogEntry, Serialized Form

Field Summary
private  long checkpointId
           
private  java.lang.String checkpointName
           
private  java.lang.String dumpCheckpointName
           
private static long serialVersionUID
           
 
Constructor Summary
ReplicateLogEntries(java.lang.String checkpointName, java.lang.String dumpCheckpointName, long checkpointId)
          Creates a new ReplicateLogEntries message
 
Method Summary
 long getCheckpointId()
          Returns the Checkpoint id.
 java.lang.String getCheckpointName()
          Returns the checkpointName value.
 java.lang.String getDumpCheckpointName()
          Returns the dump checkpoint name .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

checkpointName

private java.lang.String checkpointName

dumpCheckpointName

private java.lang.String dumpCheckpointName

checkpointId

private long checkpointId
Constructor Detail

ReplicateLogEntries

public ReplicateLogEntries(java.lang.String checkpointName,
                           java.lang.String dumpCheckpointName,
                           long checkpointId)
Creates a new ReplicateLogEntries message

Parameters:
checkpointName - The checkpoint (aka now checkpoint) before wich entries are to be replaced.
checkpointId - The id associated to checkpoint THIS ID SHOULD BE HIDDEN
dumpCheckpointName - The dump checkoint from wich entries are to be replaced.
Method Detail

getCheckpointName

public java.lang.String getCheckpointName()
Returns the checkpointName value.

Returns:
Returns the 'now' checkpointName.

getDumpCheckpointName

public java.lang.String getDumpCheckpointName()
Returns the dump checkpoint name .

Returns:
Returns the dump CheckpointName.

getCheckpointId

public long getCheckpointId()
Returns the Checkpoint id.

Returns:
the Checkpoint id


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.