public class RQMessage<E extends Endpoint> extends SGMessagingFramework.SGRequestMessage<E>
this class contains various data that are required to be transmitted to the target nodes. this class also contains failedLinks field, which represents a set of failed nodes that are found while processing the range query.
this class also manages (partial) results returned from child nodes ( rqRet).
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
RQMessage.RQReplyMessage<E extends Endpoint>
a class representing a reply message against
RQMessage,
containing range query results. |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static boolean |
TRACE
true if you want to record all the intermediate nodes
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
execute(SkipGraph<E> sg)
this method is called when this message is received at the receiver
node.
|
RQMessage<E> |
newChildInstance(Collection<Range<DdllKey>> newSubRange,
String reason)
create a child RQMessage from this instance.
|
RQMessage<E> |
newInstanceSubrangesChanged(Collection<Range<DdllKey>> newSubRanges)
create an instance of RQMessage whose subRange is replaced.
|
static <E extends Endpoint> |
newRQMessage4Root(SGMessagingFramework<E> sgmf,
Collection<Range<DdllKey>> subRanges,
org.piax.gtrans.ov.sg.SkipGraph.QueryId qid,
Object query,
int expire,
TransOptions opts) |
boolean |
onReceivingReply(SkipGraph<E> sg,
SGMessagingFramework.SGReplyMessage<E> reply0)
this method is called when a reply message is received at the sender
node.
|
void |
onTimeOut(SkipGraph<E> sg)
this method is called when the ack for this message is timed out.
|
String |
toString() |
isAckTimedOut, mayReceiveReply, prepareReceivingReply, sendpublic static final boolean TRACE
public static <E extends Endpoint> RQMessage<E> newRQMessage4Root(SGMessagingFramework<E> sgmf, Collection<Range<DdllKey>> subRanges, org.piax.gtrans.ov.sg.SkipGraph.QueryId qid, Object query, int expire, TransOptions opts)
public RQMessage<E> newInstanceSubrangesChanged(Collection<Range<DdllKey>> newSubRanges)
newSubRanges - new subranges to be replaced topublic RQMessage<E> newChildInstance(Collection<Range<DdllKey>> newSubRange, String reason)
this method is used at intermediate nodes.
newSubRange - new subrange for the child RQMessagereason - commentary string for debuggingpublic void execute(SkipGraph<E> sg)
SGMessagingFramework.SGRequestMessageexecute クラス内 SGMessagingFramework.SGRequestMessage<E extends Endpoint>sg - an instance of SkipGraphpublic boolean onReceivingReply(SkipGraph<E> sg, SGMessagingFramework.SGReplyMessage<E> reply0)
SGMessagingFramework.SGRequestMessageonReceivingReply クラス内 SGMessagingFramework.SGRequestMessage<E extends Endpoint>sg - an instance of SkipGraphreply0 - the reply messagepublic void onTimeOut(SkipGraph<E> sg)
SGMessagingFramework.SGRequestMessageonTimeOut クラス内 SGMessagingFramework.SGRequestMessage<E extends Endpoint>sg - an instance of SkipGraphCopyright © 2017. All rights reserved.