com.sleepycat.je.rep.impl
Class RepGroupProtocol.Fail

java.lang.Object
  extended by com.sleepycat.je.rep.impl.TextProtocol.Message
      extended by com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
          extended by com.sleepycat.je.rep.impl.TextProtocol.Fail
              extended by com.sleepycat.je.rep.impl.RepGroupProtocol.Fail
All Implemented Interfaces:
TextProtocol.WireFormatable
Enclosing class:
RepGroupProtocol

public class RepGroupProtocol.Fail
extends TextProtocol.Fail

Extends the class Fail, adding a reason code to distinguish amongst different types of failures.


Field Summary
(package private)  RepGroupProtocol.FailReason reason
           
 
Fields inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
messagePrefixNocheck, sendVersion
 
Constructor Summary
RepGroupProtocol.Fail(RepGroupProtocol.FailReason reason, String message)
           
RepGroupProtocol.Fail(String line, String[] tokens)
           
 
Method Summary
 TextProtocol.MessageOp getOp()
           
 RepGroupProtocol.FailReason getReason()
           
 String wireFormat()
           
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.Fail
equals, getMessage, getMessagePrefix, hashCode
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
wireFormatPrefix
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
getCurrentTokenPosition, getProtocol, getSenderId, getSendVersion, nextPayloadToken, setSendVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reason

final RepGroupProtocol.FailReason reason
Constructor Detail

RepGroupProtocol.Fail

public RepGroupProtocol.Fail(RepGroupProtocol.FailReason reason,
                             String message)

RepGroupProtocol.Fail

public RepGroupProtocol.Fail(String line,
                             String[] tokens)
                      throws TextProtocol.InvalidMessageException
Throws:
TextProtocol.InvalidMessageException
Method Detail

getOp

public TextProtocol.MessageOp getOp()
Overrides:
getOp in class TextProtocol.Fail

wireFormat

public String wireFormat()
Specified by:
wireFormat in interface TextProtocol.WireFormatable
Overrides:
wireFormat in class TextProtocol.Fail

getReason

public RepGroupProtocol.FailReason getReason()


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