パッケージ org.piax.gtrans.ov.ddll

インタフェース NodeObserver

既知の実装クラスのリスト:
ChordSharpVNode, RingVNode, RQVNode, SGNode

public interface NodeObserver
an interface for observing certain events occurred in a DDLL node.
  • メソッドの詳細

    • onRightNodeChange

      void onRightNodeChange​(Link prevRight, Link newRight, Object payload)
      called when the right link is changed by receiving a SetR message.
      パラメータ:
      prevRight - the previous right link
      newRight - the new right link
      payload - an Object passed with SetR message.
      関連項目:
      Node.setR(Link, int, Link, Link, LinkSeq, int, Object)
    • payloadNotSent

      void payloadNotSent​(Object payload)
      called when the payload given via Node.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

      boolean onNodeFailure​(Collection<Link> failedLinks)
      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

      List<Link> suppplyLeftCandidatesForFix()