Class SessionStateImpl
- java.lang.Object
-
- org.opendaylight.bgpcep.pcep.topology.provider.session.stats.SessionStateImpl
-
- All Implemented Interfaces:
PcepSessionState,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
public final class SessionStateImpl extends Object implements PcepSessionState
-
-
Field Summary
-
Fields inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.PcepSessionState
QNAME
-
-
Constructor Summary
Constructors Constructor Description SessionStateImpl(TopologySessionStats topologySessionStats, PCEPSessionState session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint16getDelegatedLspsCount()Return delegatedLspsCount, ornullif it is not present.LocalPrefgetLocalPref()Return localPref, ornullif it is not present.MessagesgetMessages()Return messages, ornullif it is not present.PeerCapabilitiesgetPeerCapabilities()Return peerCapabilities, ornullif it is not present.PeerPrefgetPeerPref()Return peerPref, ornullif it is not present.StringgetSessionDuration()Return sessionDuration, ornullif it is not present.BooleangetSynchronized()Return synchronized, ornullif it is not present.Class<PcepSessionState>implementedInterface()voidprocessRequestStats(long durationMillis)voidupdateLastReceivedRptMsg()voidupdateStatefulSentMsg(Message msg)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.PcepSessionState
requireDelegatedLspsCount, requireSessionDuration, requireSynchronized
-
-
-
-
Constructor Detail
-
SessionStateImpl
public SessionStateImpl(TopologySessionStats topologySessionStats, PCEPSessionState session)
-
-
Method Detail
-
processRequestStats
public void processRequestStats(long durationMillis)
-
updateLastReceivedRptMsg
public void updateLastReceivedRptMsg()
-
updateStatefulSentMsg
public void updateStatefulSentMsg(Message msg)
-
getSessionDuration
public String getSessionDuration()
Description copied from interface:PcepSessionStateReturn sessionDuration, ornullif it is not present.Elapsed time (in d:H:m:s) from session-up until now.- Specified by:
getSessionDurationin interfacePcepSessionState- Returns:
StringsessionDuration, ornullif it is not present.
-
getSynchronized
public Boolean getSynchronized()
Description copied from interface:PcepSessionStateReturn synchronized, ornullif it is not present.Represents synchronization status.- Specified by:
getSynchronizedin interfacePcepSessionState- Returns:
Booleansynchronized, ornullif it is not present.
-
getPeerCapabilities
public PeerCapabilities getPeerCapabilities()
Description copied from interface:PcepSessionStateReturn peerCapabilities, ornullif it is not present.Remote peer's (PCC) advertised capabilities.- Specified by:
getPeerCapabilitiesin interfacePcepSessionState- Returns:
PeerCapabilitiespeerCapabilities, ornullif it is not present.
-
getMessages
public Messages getMessages()
Description copied from interface:PcepSessionStateReturn messages, ornullif it is not present.The statistics of PCEP received/sent messages from the PCE point of view.- Specified by:
getMessagesin interfacePcepSessionState- Returns:
Messagesmessages, ornullif it is not present.
-
getLocalPref
public LocalPref getLocalPref()
Description copied from interface:PcepSessionStateReturn localPref, ornullif it is not present.The local (PCE) preferences.- Specified by:
getLocalPrefin interfacePcepSessionState- Returns:
LocalPreflocalPref, ornullif it is not present.
-
getPeerPref
public PeerPref getPeerPref()
Description copied from interface:PcepSessionStateReturn peerPref, ornullif it is not present.The remote peer (PCC) preferences.- Specified by:
getPeerPrefin interfacePcepSessionState- Returns:
PeerPrefpeerPref, ornullif it is not present.
-
getDelegatedLspsCount
public org.opendaylight.yangtools.yang.common.Uint16 getDelegatedLspsCount()
Description copied from interface:PcepSessionStateReturn delegatedLspsCount, ornullif it is not present.The number of delegated LSPs (tunnels) from PCC.- Specified by:
getDelegatedLspsCountin interfacePcepSessionState- Returns:
Uint16delegatedLspsCount, ornullif it is not present.
-
implementedInterface
public Class<PcepSessionState> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject- Specified by:
implementedInterfacein interfacePcepSessionState
-
-