パッケージ org.piax.gtrans.ov.sg
クラス RQMessage<E extends Endpoint>
java.lang.Object
org.piax.gtrans.ov.sg.SGMessagingFramework.SGRequestMessage<E>
org.piax.gtrans.ov.sg.RQMessage<E>
- すべての実装されたインタフェース:
Serializable
public class RQMessage<E extends Endpoint> extends SGMessagingFramework.SGRequestMessage<E>
a class representing a message used for propagating range queries.
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).
- 作成者:
- k-abe
- 関連項目:
- 直列化された形式
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classRQMessage.RQReplyMessage<E extends Endpoint>a class representing a reply message againstRQMessage, containing range query results. -
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static booleanTRACEtrue if you want to record all the intermediate nodes -
メソッドの概要
修飾子とタイプ メソッド 説明 voidexecute(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>
RQMessage<E>newRQMessage4Root(SGMessagingFramework<E> sgmf, Collection<Range<DdllKey>> subRanges, org.piax.gtrans.ov.sg.SkipGraph.QueryId qid, Object query, int expire, TransOptions opts)booleanonReceivingReply(SkipGraph<E> sg, SGMessagingFramework.SGReplyMessage<E> reply0)this method is called when a reply message is received at the sender node.voidonTimeOut(SkipGraph<E> sg)this method is called when the ack for this message is timed out.StringtoString()クラスから継承されたメソッド org.piax.gtrans.ov.sg.SGMessagingFramework.SGRequestMessage
isAckTimedOut, mayReceiveReply, prepareReceivingReply, send
-
フィールド詳細
-
メソッドの詳細
-
newRQMessage4Root
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) -
newInstanceSubrangesChanged
create an instance of RQMessage whose subRange is replaced.- パラメータ:
newSubRanges- new subranges to be replaced to- 戻り値:
- an instance of RQMessage
-
newChildInstance
create a child RQMessage from this instance.this method is used at intermediate nodes.
- パラメータ:
newSubRange- new subrange for the child RQMessagereason- commentary string for debugging- 戻り値:
- a instance of child RQMessage
-
toString
-
execute
クラスからコピーされた説明:SGMessagingFramework.SGRequestMessagethis method is called when this message is received at the receiver node.- 定義:
executeクラス内SGMessagingFramework.SGRequestMessage<E extends Endpoint>- パラメータ:
sg- an instance of SkipGraph
-
onReceivingReply
クラスからコピーされた説明:SGMessagingFramework.SGRequestMessagethis method is called when a reply message is received at the sender node.- 定義:
onReceivingReplyクラス内SGMessagingFramework.SGRequestMessage<E extends Endpoint>- パラメータ:
sg- an instance of SkipGraphreply0- the reply message- 戻り値:
- true if this instance is no longer required at the sender node.
-
onTimeOut
クラスからコピーされた説明:SGMessagingFramework.SGRequestMessagethis method is called when the ack for this message is timed out.- 定義:
onTimeOutクラス内SGMessagingFramework.SGRequestMessage<E extends Endpoint>- パラメータ:
sg- an instance of SkipGraph
-