パッケージ org.piax.gtrans.ov.sg
クラス SGMessagingFramework<E extends Endpoint>
java.lang.Object
org.piax.gtrans.ov.sg.SGMessagingFramework<E>
public class SGMessagingFramework<E extends Endpoint> extends Object
message framework for skip graphs.
this class provides features to send a message, which is a subclass of
SGMessagingFramework.SGRequestMessage, to a remote node and get an ack and a reply
message, which is a subclass of SGMessagingFramework.SGReplyMessage. when a reply message
arrives, SGRequestMessage#onReceivingReply(SkipGraph, SGReplyMessage)
is called. if ack message timeouts,
SGRequestMessage#onTimeOut(SkipGraph) is called.
the destination of the ack message and the reply message may be different node.
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classSGMessagingFramework.SGReplyMessage<E extends Endpoint>a base class for a reply message.static classSGMessagingFramework.SGRequestMessage<E extends Endpoint>a base class for a request message. -
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static intACK_TIMEOUT_THRESstatic intACK_TIMEOUT_TIMERstatic intDUMMY_MSGIDstatic intMSGSTORE_EXPIRATION_TASK_PERIOD -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 SGMessagingFramework(SkipGraph<E> sg) -
メソッドの概要
修飾子とタイプ メソッド 説明 voidackReceived(int msgId)voidfin()voidreplyMsgReceived(SGMessagingFramework.SGReplyMessage<E> repl)voidrequestMsgReceived(SGMessagingFramework.SGRequestMessage<E> req)
-
フィールド詳細
-
DUMMY_MSGID
public static final int DUMMY_MSGID- 関連項目:
- 定数フィールド値
-
ACK_TIMEOUT_THRES
public static int ACK_TIMEOUT_THRES -
ACK_TIMEOUT_TIMER
public static int ACK_TIMEOUT_TIMER -
MSGSTORE_EXPIRATION_TASK_PERIOD
public static int MSGSTORE_EXPIRATION_TASK_PERIOD
-
-
コンストラクタの詳細
-
メソッドの詳細
-
fin
public void fin() -
requestMsgReceived
-
ackReceived
public void ackReceived(int msgId) -
replyMsgReceived
-