Interface Tunnel

  • All Known Implementing Classes:
    DefaultTunnel

    public interface Tunnel
    Tunnel interface.
    • Method Detail

      • id

        String id()
        Returns the tunnel ID.
        Returns:
        tunnel ID
      • labelIds

        List<Integer> labelIds()
        Returns Segment IDs for the tunnel including source and destination.
        Returns:
        List of Node ID
      • groupId

        int groupId()
        Returns the group ID for the tunnel.
        Returns:
        group ID
      • setGroupId

        void setGroupId​(int groupId)
        Sets group ID for the tunnel.
        Parameters:
        groupId - group identifier
      • allowToRemoveGroup

        void allowToRemoveGroup​(boolean ok)
        Sets the flag to allow to remove the group or not.
        Parameters:
        ok - the flag; true - allow to remove
      • isAllowedToRemoveGroup

        boolean isAllowedToRemoveGroup()
        Checks if it is allowed to remove the group for the tunnel.
        Returns:
        true if allowed, false otherwise