com.sleepycat.je.rep.elections
Class Protocol.Accept
java.lang.Object
com.sleepycat.je.rep.impl.TextProtocol.Message
com.sleepycat.je.rep.impl.TextProtocol.RequestMessage
com.sleepycat.je.rep.elections.Protocol.Propose
com.sleepycat.je.rep.elections.Protocol.Accept
- All Implemented Interfaces:
- TextProtocol.WireFormatable
- Direct Known Subclasses:
- Protocol.Result
- Enclosing class:
- Protocol
public class Protocol.Accept
- extends Protocol.Propose
Accept request issued in Phase 2 of paxos.
Protocol.Accept
Protocol.Accept(Proposer.Proposal proposal,
Protocol.Value value)
Protocol.Accept
public Protocol.Accept(String requestLine,
String[] tokens)
throws TextProtocol.InvalidMessageException
- Throws:
TextProtocol.InvalidMessageException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Protocol.Propose
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Protocol.Propose
getOp
public TextProtocol.MessageOp getOp()
- Overrides:
getOp
in class Protocol.Propose
wireFormat
public String wireFormat()
- Specified by:
wireFormat
in interface TextProtocol.WireFormatable
- Overrides:
wireFormat
in class Protocol.Propose
getValue
Protocol.Value getValue()
Copyright (c) 2004-2012 Oracle. All rights reserved.