com.sleepycat.je.rep.impl
Class BinaryNodeStateProtocol

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.BinaryProtocol
      extended by com.sleepycat.je.rep.impl.BinaryNodeStateProtocol

public class BinaryNodeStateProtocol
extends BinaryProtocol

Defines the protocol used in support of node state querying. Because this protocol has to transfer byte array between two nodes, so instead of using the former NodeStateProtocol, we introduce this new protocol which inherits from BinaryProtocol. Note: once we support active version update, we can use one protocol only. The message request sequence: NODE_STATE_REQ -> NODE_STATE_RESP


Nested Class Summary
 class BinaryNodeStateProtocol.BinaryNodeStateRequest
           
 class BinaryNodeStateProtocol.BinaryNodeStateResponse
           
 
Nested classes/interfaces inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol
BinaryProtocol.ClientVersion, BinaryProtocol.IncompatibleVersion, BinaryProtocol.Message, BinaryProtocol.MessageOp, BinaryProtocol.ProtocolError, BinaryProtocol.ProtocolException, BinaryProtocol.RejectMessage, BinaryProtocol.ServerVersion, BinaryProtocol.SimpleMessage
 
Field Summary
static BinaryProtocol.MessageOp BIN_NODE_STATE_REQ
           
static BinaryProtocol.MessageOp BIN_NODE_STATE_RESP
           
static int VERSION
           
 
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
 
Constructor Summary
BinaryNodeStateProtocol(NameIdPair nameIdPair, RepImpl repImpl)
           
 
Method Summary
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol
getPredefinedMessageCount, getStats, getString, getVersion, initializeMessageOps, messageCount, putString, read, read, resetStats, stringSize, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final int VERSION
See Also:
Constant Field Values

BIN_NODE_STATE_REQ

public static final BinaryProtocol.MessageOp BIN_NODE_STATE_REQ

BIN_NODE_STATE_RESP

public static final BinaryProtocol.MessageOp BIN_NODE_STATE_RESP
Constructor Detail

BinaryNodeStateProtocol

public BinaryNodeStateProtocol(NameIdPair nameIdPair,
                               RepImpl repImpl)


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