Interface PcepSessionState
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
PcepSessionState
@Generated("mdsal-binding-generator")
public interface PcepSessionState
extends org.opendaylight.yangtools.binding.Grouping
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;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint16Return delegatedLspsCount, ornullif it is not present.Return localPref, ornullif it is not present.Return messages, ornullif it is not present.Return peerCapabilities, ornullif it is not present.Return peerPref, ornullif it is not present.Return sessionDuration, ornullif it is not present.Return synchronized, ornullif it is not present.@NonNull LocalPrefReturn localPref, or an empty instance if it is not present.@NonNull MessagesReturn messages, or an empty instance if it is not present.@NonNull PeerCapabilitiesReturn peerCapabilities, or an empty instance if it is not present.@NonNull PeerPrefReturn peerPref, or an empty instance if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint16Return delegatedLspsCount, guaranteed to be non-null.default @NonNull StringReturn sessionDuration, guaranteed to be non-null.default @NonNull BooleanReturn synchronized, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getSessionDuration
String getSessionDuration()Return sessionDuration, ornullif it is not present.Elapsed time (in d:H:m:s) from session-up until now.- Returns:
StringsessionDuration, ornullif it is not present.
-
requireSessionDuration
Return sessionDuration, guaranteed to be non-null.Elapsed time (in d:H:m:s) from session-up until now.- Returns:
StringsessionDuration, guaranteed to be non-null.- Throws:
NoSuchElementException- if sessionDuration is not present
-
getSynchronized
Boolean getSynchronized()Return synchronized, ornullif it is not present.Represents synchronization status.- Returns:
Booleansynchronized, ornullif it is not present.
-
requireSynchronized
Return synchronized, guaranteed to be non-null.Represents synchronization status.- Returns:
Booleansynchronized, guaranteed to be non-null.- Throws:
NoSuchElementException- if synchronized is not present
-
getPeerCapabilities
PeerCapabilities getPeerCapabilities()Return peerCapabilities, ornullif it is not present.Remote peer's (PCC) advertised capabilities.- Returns:
PeerCapabilitiespeerCapabilities, ornullif it is not present.
-
nonnullPeerCapabilities
@NonNull PeerCapabilities nonnullPeerCapabilities()Return peerCapabilities, or an empty instance if it is not present.- Returns:
PeerCapabilitiespeerCapabilities, or an empty instance if it is not present.
-
getMessages
Messages getMessages()Return messages, ornullif it is not present.The statistics of PCEP received/sent messages from the PCE point of view.- Returns:
Messagesmessages, ornullif it is not present.
-
nonnullMessages
@NonNull Messages nonnullMessages()Return messages, or an empty instance if it is not present.- Returns:
Messagesmessages, or an empty instance if it is not present.
-
getLocalPref
LocalPref getLocalPref()Return localPref, ornullif it is not present.The local (PCE) preferences.- Returns:
LocalPreflocalPref, ornullif it is not present.
-
nonnullLocalPref
@NonNull LocalPref nonnullLocalPref()Return localPref, or an empty instance if it is not present.- Returns:
LocalPreflocalPref, or an empty instance if it is not present.
-
getPeerPref
PeerPref getPeerPref()Return peerPref, ornullif it is not present.The remote peer (PCC) preferences.- Returns:
PeerPrefpeerPref, ornullif it is not present.
-
nonnullPeerPref
@NonNull PeerPref nonnullPeerPref()Return peerPref, or an empty instance if it is not present.- Returns:
PeerPrefpeerPref, or an empty instance if it is not present.
-
getDelegatedLspsCount
org.opendaylight.yangtools.yang.common.Uint16 getDelegatedLspsCount()Return delegatedLspsCount, ornullif it is not present.The number of delegated LSPs (tunnels) from PCC.- Returns:
Uint16delegatedLspsCount, ornullif 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:
Uint16delegatedLspsCount, guaranteed to be non-null.- Throws:
NoSuchElementException- if delegatedLspsCount is not present
-