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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint16getDelegatedLspsCount()The number of delegated LSPs (tunnels) from PCC.LocalPrefgetLocalPref()The local (PCE) preferences.MessagesgetMessages()The statistics of PCEP received/sent messages from the PCE point of view.PeerCapabilitiesgetPeerCapabilities()Remote peer's (PCC) advertised capabilities.PeerPrefgetPeerPref()The remote peer (PCC) preferences.StringgetSessionDuration()Elapsed time (in d:H:m:s) from session-up until now.Class<PcepSessionState>implementedInterface()voidinit(PCEPSessionState session)BooleanisSynchronized()Represents synchronization status.voidprocessRequestStats(long duration)voidupdateLastReceivedRptMsg()voidupdateStatefulSentMsg(Message msg)
-
-
-
Constructor Detail
-
SessionStateImpl
public SessionStateImpl(TopologySessionStats topologySessionStats)
-
-
Method Detail
-
init
public void init(PCEPSessionState session)
-
processRequestStats
public void processRequestStats(long duration)
-
updateLastReceivedRptMsg
public void updateLastReceivedRptMsg()
-
updateStatefulSentMsg
public void updateStatefulSentMsg(Message msg)
-
getSessionDuration
public String getSessionDuration()
Description copied from interface:PcepSessionStateElapsed time (in d:H:m:s) from session-up until now.- Specified by:
getSessionDurationin interfacePcepSessionState- Returns:
java.lang.StringsessionDuration, ornullif not present
-
isSynchronized
public Boolean isSynchronized()
Description copied from interface:PcepSessionStateRepresents synchronization status.- Specified by:
isSynchronizedin interfacePcepSessionState- Returns:
java.lang.Booleansynchronized, ornullif not present
-
getPeerCapabilities
public PeerCapabilities getPeerCapabilities()
Description copied from interface:PcepSessionStateRemote peer's (PCC) advertised capabilities.- Specified by:
getPeerCapabilitiesin interfacePcepSessionState- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.PeerCapabilitiespeerCapabilities, ornullif not present
-
getMessages
public Messages getMessages()
Description copied from interface:PcepSessionStateThe statistics of PCEP received/sent messages from the PCE point of view.- Specified by:
getMessagesin interfacePcepSessionState- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.Messagesmessages, ornullif not present
-
getLocalPref
public LocalPref getLocalPref()
Description copied from interface:PcepSessionStateThe local (PCE) preferences.- Specified by:
getLocalPrefin interfacePcepSessionState- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.LocalPreflocalPref, ornullif not present
-
getPeerPref
public PeerPref getPeerPref()
Description copied from interface:PcepSessionStateThe remote peer (PCC) preferences.- Specified by:
getPeerPrefin interfacePcepSessionState- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.PeerPrefpeerPref, ornullif not present
-
getDelegatedLspsCount
public org.opendaylight.yangtools.yang.common.Uint16 getDelegatedLspsCount()
Description copied from interface:PcepSessionStateThe number of delegated LSPs (tunnels) from PCC.- Specified by:
getDelegatedLspsCountin interfacePcepSessionState- Returns:
org.opendaylight.yangtools.yang.common.Uint16delegatedLspsCount, ornullif 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
-
-