Interface ConnectedEdgeTrigger

All Known Implementing Classes:
ManagedTePath

public interface ConnectedEdgeTrigger
Connected Edge Trigger class aims to trigger action when major modification(s) take place on an Edge. Once trigger registered (see ConnectedEdge interface), the verifyEdge() method is called in order to determine if some corrections should be executed.

verifyEdge() method must be provided by the class which registered the trigger.

This class allows to implement close loop against Edge modification on the Connected Graph e.g. delay attributes goes upper a certain threshold which imposes to re-route all paths that belongs to this Edge.

Author:
Olivier Dugeon
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    verifyEdge(@Nullable ConnectedEdge next, @Nullable Edge current)
    This method verifies the next Edge attributes against the current one to determine if is necessary to launch correction which are left at the discretion of the class which implements this method.
  • Method Details

    • verifyEdge

      boolean verifyEdge(@Nullable ConnectedEdge next, @Nullable Edge current)
      This method verifies the next Edge attributes against the current one to determine if is necessary to launch correction which are left at the discretion of the class which implements this method.

      If current Edge is null, this means that the Connected Edge will be added in the Connected Graph. If next Edge is null, this means that the Connected Edge will be deleted from the Connected Graph. Otherwise, this is an update of Edge attributes.

      Parameters:
      next - Next Connected Edge to be installed in the Connected Graph
      current - Current Edge attributes in the Connected Graph
      Returns:
      True if the Edge need attention, false otherwise