com.sleepycat.je.rep.stream
Class Protocol.RestoreResponse

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.BinaryProtocol.Message
      extended by com.sleepycat.je.rep.utilint.BinaryProtocol.SimpleMessage
          extended by com.sleepycat.je.rep.stream.Protocol.RestoreResponse
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Enclosing class:
Protocol

public class Protocol.RestoreResponse
extends BinaryProtocol.SimpleMessage

Response when the replica needs information to instigate a network restore. The message contains two pieces of information. One is a set of nodes that could be used as the basis for a NetworkBackup so that the request node can become current again. The second is a suitable low vlsn for the replica, which will be registered as this replica's local CBVLSN. This will contribute to the global CBVLSN calculation. The feeder when sending this response must, if it is also the master, update the membership table to set the local CBVLSN for the requesting node thus ensuring that it can continue the replication stream at this VLSN (or higher) when it retries the syncup operation.


Constructor Summary
Protocol.RestoreResponse(ByteBuffer buffer)
           
Protocol.RestoreResponse(VLSN cbvlsn, RepNodeImpl[] logProviders)
           
 
Method Summary
(package private)  VLSN getCBVLSN()
           
(package private)  RepNodeImpl[] getLogProviders()
           
 BinaryProtocol.MessageOp getOp()
           
 ByteBuffer wireFormat()
          The default message consists of the operation enum and just a 0 length size.
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.SimpleMessage
getBoolean, getByteArray, getEnum, getRepNodeImplArray, getStringArray, getVLSN, wireFormat
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.Message
allocateInitializedBuffer, match, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Protocol.RestoreResponse

public Protocol.RestoreResponse(VLSN cbvlsn,
                                RepNodeImpl[] logProviders)

Protocol.RestoreResponse

public Protocol.RestoreResponse(ByteBuffer buffer)
Method Detail

wireFormat

public ByteBuffer wireFormat()
Description copied from class: BinaryProtocol.Message
The default message consists of the operation enum and just a 0 length size.

Specified by:
wireFormat in interface BinaryProtocol.WireFormatable
Overrides:
wireFormat in class BinaryProtocol.Message

getOp

public BinaryProtocol.MessageOp getOp()
Specified by:
getOp in class BinaryProtocol.Message

getLogProviders

RepNodeImpl[] getLogProviders()

getCBVLSN

VLSN getCBVLSN()


Copyright (c) 2004-2010 Oracle. All rights reserved.