|
|||||||||
| 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.
| 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()
|
protected String |
nextPayloadToken()
Returns the next token in the payload. |
| 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 |
| 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 errors| Method Detail |
|---|
public int getSenderId()
protected String getMessagePrefix()
public abstract TextProtocol.MessageOp getOp()
public TextProtocol getProtocol()
protected String nextPayloadToken()
throws TextProtocol.InvalidMessageException
TextProtocol.InvalidMessageExceptionprotected int getCurrentTokenPosition()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||