com.sleepycat.je.rep.impl.networkRestore
Class Protocol
java.lang.Object
com.sleepycat.je.rep.utilint.BinaryProtocol
com.sleepycat.je.rep.impl.networkRestore.Protocol
public class Protocol
- extends BinaryProtocol
The protocol used to obtain backup files from a LF Feeder. The message
exchange is always initiated by the client.
The following describes the request/response messages exchanged between the
two nodes:
FeederInfoReq -> FeederInfoResp
FileListReq -> FileListResp
FileInfoReq -> FileInfoResp
FileReq -> FileStart FileEnd
Done
So a complete sequence of successful request messages looks like:
FeederInfoReq FileListReq [[FileInfoReq] [FileReq] ]+ Done
A response sequence would look like:
FeederInfoResp FileListResp [[FileInfoResp] [FileStart FileEnd] ]+
The client may abandon its interaction with the server if it decides the
server is overloaded.
The client tries to minimize the number of files it actually requests based
upon its current state.
Fields inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol |
CLIENT_VERSION, codeVersion, configuredVersion, envImpl, formatter, header, INCOMPATIBLE_VERSION, logger, MESSAGE_HEADER_SIZE, nameIdPair, nBytesRead, nBytesWritten, nMessagesRead, nMessagesWritten, nReadNanos, nWriteNanos, PROTOCOL_ERROR, SERVER_VERSION, stats |
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol |
getPredefinedMessageCount, getStats, getString, getVersion, initializeMessageOps, messageCount, putString, read, read, resetStats, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
FEEDER_INFO_REQ
public final BinaryProtocol.MessageOp FEEDER_INFO_REQ
FEEDER_INFO_RESP
public final BinaryProtocol.MessageOp FEEDER_INFO_RESP
FILE_LIST_REQ
public final BinaryProtocol.MessageOp FILE_LIST_REQ
FILE_LIST_RESP
public final BinaryProtocol.MessageOp FILE_LIST_RESP
FILE_REQ
public final BinaryProtocol.MessageOp FILE_REQ
FILE_START
public final BinaryProtocol.MessageOp FILE_START
FILE_END
public final BinaryProtocol.MessageOp FILE_END
FILE_INFO_REQ
public final BinaryProtocol.MessageOp FILE_INFO_REQ
FILE_INFO_RESP
public final BinaryProtocol.MessageOp FILE_INFO_RESP
DONE
public final BinaryProtocol.MessageOp DONE
Protocol
public Protocol(NameIdPair nameIdPair,
int configuredVersion,
EnvironmentImpl envImpl)
Copyright (c) 2004-2010 Oracle. All rights reserved.