Interface ConnectedVertexTrigger

  • All Known Implementing Classes:
    ManagedTePath

    public interface ConnectedVertexTrigger
    Connected Vertex Trigger class aims to trigger action when major modification(s) takes place on a Vertex. Once trigger registered (see ConnectedVertex interface), the verifyVertex() method is called in order to determine if some corrections should be executed.

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

    This class allows to implement close loop against modification on the Connected Graph e.g. Segment Routing SIDs change on this Vertex which imposes to adjust SR path description that belongs to this Vertex.

    Author:
    Olivier Dugeon
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean verifyVertex​(@Nullable ConnectedVertex next, @Nullable Vertex current)
      This method verifies the next Vertex attribute 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 Detail

      • verifyVertex

        boolean verifyVertex​(@Nullable ConnectedVertex next,
                             @Nullable Vertex current)
        This method verifies the next Vertex attribute 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 Vertex is null, this means that the Connected Vertex will be added in the Connected Graph. If next Connected Vertex is null, this means that the Connect Vertex will be deleted from the Connected Graph. Otherwise, this is an update of Vertex attributes.

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