パッケージ org.piax.gtrans.ov.ddll
インタフェース NodeObserver
- 既知の実装クラスのリスト:
ChordSharpVNode,RingVNode,RQVNode,SGNode
public interface NodeObserver
an interface for observing certain events occurred in a DDLL node.
-
メソッドの概要
修飾子とタイプ メソッド 説明 booleanonNodeFailure(Collection<Link> failedLinks)called when node failure is detected by DDLL's node monitor.voidonRightNodeChange(Link prevRight, Link newRight, Object payload)called when the right link is changed by receiving a SetR message.voidpayloadNotSent(Object payload)called when the payload given viaNode.setR(Link, int, Link, Link, LinkSeq, int, Object)is not passed to the specified remote node.List<Link>suppplyLeftCandidatesForFix()
-
メソッドの詳細
-
onRightNodeChange
called when the right link is changed by receiving a SetR message.- パラメータ:
prevRight- the previous right linknewRight- the new right linkpayload- an Object passed with SetR message.- 関連項目:
Node.setR(Link, int, Link, Link, LinkSeq, int, Object)
-
payloadNotSent
called when the payload given viaNode.setR(Link, int, Link, Link, LinkSeq, int, Object)is not passed to the specified remote node. typically this happens when the SetR request fails.- パラメータ:
payload- the payload not has been sent
-
onNodeFailure
called when node failure is detected by DDLL's node monitor. if this method returns true, the DDLL link fixing procedure is executed just after returning from this method. when false is returned, it is application's responsibility to repair the failed link.- パラメータ:
failedLinks- the collection of failed links.- 戻り値:
- true to execute DDLL's link fixing procedure
-
suppplyLeftCandidatesForFix
-