Interface Preferences

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    LocalPref, PeerPref

    @Generated("mdsal-binding-generator")
    public interface Preferences
    extends org.opendaylight.yangtools.yang.binding.DataObject

    This class represents the following YANG schema fragment defined in module pcep-session-stats

     grouping preferences {
       leaf keepalive {
         type uint8;
         default 0;
       }
       leaf deadtimer {
         type uint8;
         default 0;
       }
       leaf ip-address {
         type string;
         default "";
       }
       leaf session-id {
         type uint16;
         default 0;
       }
     }
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends Preferences> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getKeepalive

        org.opendaylight.yangtools.yang.common.Uint8 getKeepalive()
        Return keepalive, or null if it is not present.
             
                 Advertised keep-alive value.
             
         
        Returns:
        Uint8 keepalive, or null if it is not present.
      • requireKeepalive

        default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireKeepalive()
        Return keepalive, guaranteed to be non-null.
             
                 Advertised keep-alive value.
             
         
        Returns:
        Uint8 keepalive, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if keepalive is not present
      • getDeadtimer

        org.opendaylight.yangtools.yang.common.Uint8 getDeadtimer()
        Return deadtimer, or null if it is not present.
             
                 Advertised deadtimer value.
             
         
        Returns:
        Uint8 deadtimer, or null if it is not present.
      • requireDeadtimer

        default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireDeadtimer()
        Return deadtimer, guaranteed to be non-null.
             
                 Advertised deadtimer value.
             
         
        Returns:
        Uint8 deadtimer, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if deadtimer is not present
      • getIpAddress

        String getIpAddress()
        Return ipAddress, or null if it is not present.
             
                 Peer's IP address.
             
         
        Returns:
        String ipAddress, or null if it is not present.
      • requireIpAddress

        default @NonNull String requireIpAddress()
        Return ipAddress, guaranteed to be non-null.
             
                 Peer's IP address.
             
         
        Returns:
        String ipAddress, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if ipAddress is not present
      • getSessionId

        org.opendaylight.yangtools.yang.common.Uint16 getSessionId()
        Return sessionId, or null if it is not present.
             
                 Peer's session identifier.
             
         
        Returns:
        Uint16 sessionId, or null if it is not present.
      • requireSessionId

        default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireSessionId()
        Return sessionId, guaranteed to be non-null.
             
                 Peer's session identifier.
             
         
        Returns:
        Uint16 sessionId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if sessionId is not present