com.sleepycat.je.rep.utilint
Class BinaryProtocol.RejectMessage

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.utilint.BinaryProtocol.RejectMessage
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Direct Known Subclasses:
BinaryProtocol.IncompatibleVersion, BinaryProtocol.ProtocolError, Protocol.DbMismatch, Protocol.DuplicateNodeReject, Protocol.Error, Protocol.JEVersionsReject, Protocol.NodeGroupInfoReject
Enclosing class:
BinaryProtocol

public abstract class BinaryProtocol.RejectMessage
extends BinaryProtocol.SimpleMessage

The base class for reject responses to requests


Field Summary
protected  String errorMessage
           
 
Constructor Summary
  BinaryProtocol.RejectMessage(ByteBuffer buffer)
           
protected BinaryProtocol.RejectMessage(String errorMessage)
           
 
Method Summary
 String getErrorMessage()
           
 String toString()
           
 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, getOp, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorMessage

protected String errorMessage
Constructor Detail

BinaryProtocol.RejectMessage

protected BinaryProtocol.RejectMessage(String errorMessage)

BinaryProtocol.RejectMessage

public BinaryProtocol.RejectMessage(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

getErrorMessage

public String getErrorMessage()

toString

public String toString()
Overrides:
toString in class BinaryProtocol.Message


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