com.sleepycat.je.rep.impl
Class TextProtocol.ResponseMessage

java.lang.Object
  extended by com.sleepycat.je.rep.impl.TextProtocol.Message
      extended by com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
All Implemented Interfaces:
TextProtocol.WireFormatable
Direct Known Subclasses:
NodeStateProtocol.NodeStateResponse, Protocol.Accepted, Protocol.Promise, Protocol.Reject, RepGroupProtocol.GroupResponse, TextProtocol.Fail, TextProtocol.OK, TextProtocol.ProtocolError
Enclosing class:
TextProtocol

public abstract class TextProtocol.ResponseMessage
extends TextProtocol.Message

Base classes for response messages.


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
messagePrefixNocheck, sendVersion
 
Constructor Summary
protected TextProtocol.ResponseMessage()
           
protected TextProtocol.ResponseMessage(String line, String[] tokens)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
protected  String wireFormatPrefix()
          Returns the version id and Op concatenation that starts every message.
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
getCurrentTokenPosition, getMessagePrefix, getOp, getProtocol, getSenderId, getSendVersion, nextPayloadToken, setSendVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sleepycat.je.rep.impl.TextProtocol.WireFormatable
wireFormat
 

Constructor Detail

TextProtocol.ResponseMessage

protected TextProtocol.ResponseMessage()

TextProtocol.ResponseMessage

protected TextProtocol.ResponseMessage(String line,
                                       String[] tokens)
                                throws TextProtocol.InvalidMessageException
Throws:
TextProtocol.InvalidMessageException
Method Detail

wireFormatPrefix

protected String wireFormatPrefix()
Returns the version id and Op concatenation that starts every message.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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