|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.impl.TextProtocol.Message
public abstract class TextProtocol.Message
Base message class for all messages exchanged in the protocol.
Field Summary | |
---|---|
protected String |
messagePrefixNocheck
|
protected String |
sendVersion
|
Constructor Summary | |
---|---|
protected |
TextProtocol.Message()
The constructor used for the original non-serialized instance of the message, which does not use the line or tokens. |
protected |
TextProtocol.Message(String line,
String[] tokens)
Every message must define a constructor of this form so that it can be de-serialized. |
Method Summary | |
---|---|
protected int |
getCurrentTokenPosition()
Returns the current token position in the payload. |
protected String |
getMessagePrefix()
|
abstract TextProtocol.MessageOp |
getOp()
|
TextProtocol |
getProtocol()
Returns the protocol associated with this message |
int |
getSenderId()
|
String |
getSendVersion()
|
protected String |
nextPayloadToken()
Returns the next token in the payload. |
void |
setSendVersion(String version)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sleepycat.je.rep.impl.TextProtocol.WireFormatable |
---|
wireFormat |
Field Detail |
---|
protected String sendVersion
protected String messagePrefixNocheck
Constructor Detail |
---|
protected TextProtocol.Message()
protected TextProtocol.Message(String line, String[] tokens) throws TextProtocol.InvalidMessageException
line
- the line constituting the messagetokens
- the line in token form
TextProtocol.InvalidMessageException
EnvironmentFailureException
- on format errorsMethod Detail |
---|
public int getSenderId()
public void setSendVersion(String version)
public String getSendVersion()
protected String getMessagePrefix()
public abstract TextProtocol.MessageOp getOp()
public TextProtocol getProtocol()
protected String nextPayloadToken() throws TextProtocol.InvalidMessageException
TextProtocol.InvalidMessageException
protected int getCurrentTokenPosition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |