クラス RQMessage
java.lang.Object
org.piax.gtrans.ov.ring.RequestMessage
org.piax.gtrans.ov.ring.rq.RQMessage
- すべての実装されたインタフェース:
Serializable
- 直系の既知のサブクラス:
BasicRQMessage,ChordSharpRQMessage
public abstract class RQMessage extends RequestMessage
an abstract 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).
- 関連項目:
- 直列化された形式
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 Set<Endpoint>failedLinksfailed links. this field is used for avoiding and repairing dead links.inthopshop counter for gathering statisticsQueryIdqidquery idObjectqueryRQReturnrqRetCollection<SubRange>subRangessubranges, split by the range query algorithmprotected Collection<SubRange>targetRangesthe target ranges, that is not modifiedクラスから継承されたフィールド org.piax.gtrans.ov.ring.RequestMessage
ackReceived, ackSent, isRecvdInstance, isRoot, msgframe, msgId, opts, readyToReceive, receiver, replyId, replySent, replyTo, sender, timeoutTask, timestamp -
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedRQMessage(MessagingFramework msgframe, boolean isRoot, Endpoint replyTo, int replyId, Collection<SubRange> subRanges, QueryId qid, Object query, int hops, TransOptions opts)create an instance of RQMessage. -
メソッドの概要
修飾子とタイプ メソッド 説明 voidaddFailedLinks(Collection<Endpoint> links)Collection<SubRange>adjustSubRangesForRetrans(Collection<SubRange> subRanges)protected abstract RQMessagecreateInstance(MessagingFramework sgmf, boolean isRoot, Endpoint replyTo, int replyId, Collection<SubRange> subRanges, TransOptions opts)ObjectgetQuery()abstract RQAlgorithmgetRangeQueryAlgorithm()Collection<SubRange>getTargetRanges()RQMessagenewChildInstance(Collection<SubRange> newSubRange)create a child RQMessage from this instance.RQMessagenewChildInstance(Collection<SubRange> newSubRange, boolean newIsRoot)create a child RQMessage from this instance.abstract RQReplyMessagenewRQReplyMessage(Collection<DKRangeRValue<?>> vals, boolean isFinal, Collection<MessagePath> paths, int hops)booleanonReceivingReply(ReplyMessage reply0)this method is called when a reply message is received at the sender node.voidonResponseTimeout()this method is called when the response message (ack/reply) for this message is timed-out.StringshortName()StringtoString()クラスから継承されたメソッド org.piax.gtrans.ov.ring.RequestMessage
dispose, execute, getManager, isAckTimedOut, mayReceiveReply, newAckMessage, responseReceived, send, sendAck
-
フィールド詳細
-
targetRanges
the target ranges, that is not modified -
subRanges
subranges, split by the range query algorithm -
qid
query id -
query
-
hops
public final int hopshop counter for gathering statistics -
rqRet
-
failedLinks
failed links. this field is used for avoiding and repairing dead links.
-
-
コンストラクタの詳細
-
RQMessage
protected RQMessage(MessagingFramework msgframe, boolean isRoot, Endpoint replyTo, int replyId, Collection<SubRange> subRanges, QueryId qid, Object query, int hops, TransOptions opts)create an instance of RQMessage.- パラメータ:
msgframe- the MessagingFramework instance managing this messageisRoot- true if this instance is used at the root nodereplyTo- the node that the reply message for this message should be sent toreplyId- the ID to distinguish queries at the replyTo nodesubRanges- set of query rangesqid- QueryId to uniquely distinguish this messagequery- an object sent to all the nodes within the query rangeshops- a hop count from the root nodeopts- the transport options.
-
-
メソッドの詳細
-
createInstance
protected abstract RQMessage createInstance(MessagingFramework sgmf, boolean isRoot, Endpoint replyTo, int replyId, Collection<SubRange> subRanges, TransOptions opts) -
getRangeQueryAlgorithm
-
newChildInstance
create a child RQMessage from this instance.this method is used at intermediate nodes.
- パラメータ:
newSubRange- new subrange for the child RQMessage- 戻り値:
- a instance of child RQMessage
-
newChildInstance
create a child RQMessage from this instance.this method is used both at intermediate nodes and at root node (in slow retransmission case)
- パラメータ:
newSubRange- new subrange for the child RQMessagenewIsRoot- true if you want a root message- 戻り値:
- a instance of child RQMessage
-
shortName
-
toString
-
addFailedLinks
-
getTargetRanges
-
getQuery
-
onReceivingReply
クラスからコピーされた説明:RequestMessagethis method is called when a reply message is received at the sender node.- 定義:
onReceivingReplyクラス内RequestMessage- パラメータ:
reply0- the reply message- 戻り値:
- true if this instance is no longer required at the sender node.
-
onResponseTimeout
public void onResponseTimeout()クラスからコピーされた説明:RequestMessagethis method is called when the response message (ack/reply) for this message is timed-out.- 定義:
onResponseTimeoutクラス内RequestMessage
-
adjustSubRangesForRetrans
-
newRQReplyMessage
public abstract RQReplyMessage newRQReplyMessage(Collection<DKRangeRValue<?>> vals, boolean isFinal, Collection<MessagePath> paths, int hops)
-