public class ChordSharpRQMessage extends RQMessage
failedLinks, hops, qid, query, rqRet, subRanges, targetRangesackReceived, ackSent, isRecvdInstance, isRoot, msgframe, msgId, opts, readyToReceive, receiver, replyId, replySent, replyTo, sender, timeoutTask, timestamp| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
ChordSharpRQMessage(MessagingFramework msgframe,
boolean isRoot,
Endpoint replyTo,
int replyId,
Collection<SubRange> subRanges,
QueryId qid,
Object query,
int hops,
TransOptions opts) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Collection<SubRange> |
adjustSubRangesForRetrans(Collection<SubRange> subRanges) |
protected ChordSharpRQMessage |
createInstance(MessagingFramework sgmf,
boolean isRoot,
Endpoint replyTo,
int replyId,
Collection<SubRange> subRanges,
TransOptions opts) |
void |
execute(RingManager<?> rm)
this method is called when this message is received at the receiver
node.
|
protected ChordSharp<?> |
getManager() |
RQAlgorithm |
getRangeQueryAlgorithm() |
AckMessage |
newAckMessage() |
static RQMessage |
newRQMessage4Root(MessagingFramework msgframe,
Collection<SubRange> subRanges,
QueryId qid,
Object query,
TransOptions opts)
create an instance of RQMessage used for a root node.
|
RQReplyMessage |
newRQReplyMessage(Collection<DKRangeRValue<?>> vals,
boolean isFinal,
Collection<MessagePath> paths,
int hops) |
void |
onResponseTimeout()
this method is called when the response message (ack/reply) for this
message is timed-out.
|
protected void |
responseReceived(ResponseMessage resp)
ack or reply message is received for this RequestMessage.
|
String |
shortName() |
String |
toString() |
addFailedLinks, getQuery, getTargetRanges, newChildInstance, newChildInstance, onReceivingReplydispose, isAckTimedOut, mayReceiveReply, send, sendAckprotected ChordSharpRQMessage(MessagingFramework msgframe, boolean isRoot, Endpoint replyTo, int replyId, Collection<SubRange> subRanges, QueryId qid, Object query, int hops, TransOptions opts)
public static RQMessage newRQMessage4Root(MessagingFramework msgframe, Collection<SubRange> subRanges, QueryId qid, Object query, TransOptions opts)
this instance is used only for creating child RQMessage and never receive any reply message.
msgframe - the messaging frameworksubRanges - the subranges.qid - the query id.query - the query object.opts - the transport options.protected ChordSharp<?> getManager()
getManager クラス内 RequestMessagepublic RQAlgorithm getRangeQueryAlgorithm()
getRangeQueryAlgorithm クラス内 RQMessageprotected ChordSharpRQMessage createInstance(MessagingFramework sgmf, boolean isRoot, Endpoint replyTo, int replyId, Collection<SubRange> subRanges, TransOptions opts)
createInstance クラス内 RQMessagepublic void execute(RingManager<?> rm)
RequestMessageexecute クラス内 RequestMessagerm - an instance of Ringpublic void onResponseTimeout()
RequestMessageonResponseTimeout クラス内 RQMessagepublic AckMessage newAckMessage()
newAckMessage クラス内 RequestMessagepublic RQReplyMessage newRQReplyMessage(Collection<DKRangeRValue<?>> vals, boolean isFinal, Collection<MessagePath> paths, int hops)
newRQReplyMessage クラス内 RQMessageprotected void responseReceived(ResponseMessage resp)
RequestMessageChordSharpRQMessage
overrides this method.responseReceived クラス内 RequestMessageresp - the response message.public Collection<SubRange> adjustSubRangesForRetrans(Collection<SubRange> subRanges)
adjustSubRangesForRetrans クラス内 RQMessageCopyright © 2017. All rights reserved.