com.sleepycat.je.rep.stream
Class Protocol.RestoreResponse
java.lang.Object
com.sleepycat.je.rep.utilint.BinaryProtocol.Message
com.sleepycat.je.rep.utilint.BinaryProtocol.SimpleMessage
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.
Protocol.RestoreResponse
public Protocol.RestoreResponse(VLSN cbvlsn,
RepNodeImpl[] logProviders)
Protocol.RestoreResponse
public Protocol.RestoreResponse(ByteBuffer buffer)
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.