Interface PcepSessionState

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    PcepSessionState
    All Known Implementing Classes:
    SessionStateImpl

    @Generated("mdsal-binding-generator")
    public interface PcepSessionState
    extends org.opendaylight.yangtools.yang.binding.DataObject
    PCEP session statistics.

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

     grouping pcep-session-state {
       leaf session-duration {
         type string;
       }
       leaf synchronized {
         type boolean;
         default false;
       }
       container peer-capabilities {
       }
       container messages {
         uses reply-time-grouping;
         leaf received-msg-count {
           type uint32;
           default 0;
         }
         leaf sent-msg-count {
           type uint32;
           default 0;
         }
         leaf last-sent-msg-timestamp {
           type uint32;
           default 0;
         }
         leaf unknown-msg-received {
           type uint16;
           default 0;
         }
         uses error-messages-grouping;
       }
       container local-pref {
         uses preferences;
       }
       container peer-pref {
         uses preferences;
       }
       leaf delegated-lsps-count {
         type uint16;
         default 0;
       }
     }
     
    The schema path to identify an instance is pcep-session-statspcep-session-state
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

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

        String getSessionDuration()
        Return sessionDuration, or null if it is not present.
             
                 Elapsed time (in d:H:m:s) from session-up until now.
             
         
        Returns:
        String sessionDuration, or null if it is not present.
      • requireSessionDuration

        default @NonNull String requireSessionDuration()
        Return sessionDuration, guaranteed to be non-null.
             
                 Elapsed time (in d:H:m:s) from session-up until now.
             
         
        Returns:
        String sessionDuration, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if sessionDuration is not present
      • getSynchronized

        Boolean getSynchronized()
        Return synchronized, or null if it is not present.
             
                 Represents synchronization status.
             
         
        Returns:
        Boolean synchronized, or null if it is not present.
      • requireSynchronized

        default @NonNull Boolean requireSynchronized()
        Return synchronized, guaranteed to be non-null.
             
                 Represents synchronization status.
             
         
        Returns:
        Boolean synchronized, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if synchronized is not present
      • getPeerCapabilities

        PeerCapabilities getPeerCapabilities()
        Return peerCapabilities, or null if it is not present.
             
                 Remote peer's (PCC) advertised capabilities.
             
         
        Returns:
        PeerCapabilities peerCapabilities, or null if it is not present.
      • getMessages

        Messages getMessages()
        Return messages, or null if it is not present.
             
                 The statistics of PCEP received/sent messages from the PCE point of view.
             
         
        Returns:
        Messages messages, or null if it is not present.
      • getLocalPref

        LocalPref getLocalPref()
        Return localPref, or null if it is not present.
             
                 The local (PCE) preferences.
             
         
        Returns:
        LocalPref localPref, or null if it is not present.
      • getPeerPref

        PeerPref getPeerPref()
        Return peerPref, or null if it is not present.
             
                 The remote peer (PCC) preferences.
             
         
        Returns:
        PeerPref peerPref, or null if it is not present.
      • getDelegatedLspsCount

        org.opendaylight.yangtools.yang.common.Uint16 getDelegatedLspsCount()
        Return delegatedLspsCount, or null if it is not present.
             
                 The number of delegated LSPs (tunnels) from PCC.
             
         
        Returns:
        Uint16 delegatedLspsCount, or null if it is not present.
      • requireDelegatedLspsCount

        default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireDelegatedLspsCount()
        Return delegatedLspsCount, guaranteed to be non-null.
             
                 The number of delegated LSPs (tunnels) from PCC.
             
         
        Returns:
        Uint16 delegatedLspsCount, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if delegatedLspsCount is not present