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.Uint16
getDelegatedLspsCount()
The number of delegated LSPs (tunnels) from PCC.LocalPref
getLocalPref()
The local (PCE) preferences.Messages
getMessages()
The statistics of PCEP received/sent messages from the PCE point of view.PeerCapabilities
getPeerCapabilities()
Remote peer's (PCC) advertised capabilities.PeerPref
getPeerPref()
The remote peer (PCC) preferences.String
getSessionDuration()
Elapsed time (in d:H:m:s) from session-up until now.Class<PcepSessionState>
implementedInterface()
void
init(PCEPSessionState session)
Boolean
isSynchronized()
Represents synchronization status.void
processRequestStats(long duration)
void
updateLastReceivedRptMsg()
void
updateStatefulSentMsg(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:PcepSessionState
Elapsed time (in d:H:m:s) from session-up until now.- Specified by:
getSessionDuration
in interfacePcepSessionState
- Returns:
java.lang.String
sessionDuration
, ornull
if not present
-
isSynchronized
public Boolean isSynchronized()
Description copied from interface:PcepSessionState
Represents synchronization status.- Specified by:
isSynchronized
in interfacePcepSessionState
- Returns:
java.lang.Boolean
synchronized
, ornull
if not present
-
getPeerCapabilities
public PeerCapabilities getPeerCapabilities()
Description copied from interface:PcepSessionState
Remote peer's (PCC) advertised capabilities.- Specified by:
getPeerCapabilities
in interfacePcepSessionState
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.PeerCapabilities
peerCapabilities
, ornull
if not present
-
getMessages
public Messages getMessages()
Description copied from interface:PcepSessionState
The statistics of PCEP received/sent messages from the PCE point of view.- Specified by:
getMessages
in interfacePcepSessionState
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.Messages
messages
, ornull
if not present
-
getLocalPref
public LocalPref getLocalPref()
Description copied from interface:PcepSessionState
The local (PCE) preferences.- Specified by:
getLocalPref
in interfacePcepSessionState
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.LocalPref
localPref
, ornull
if not present
-
getPeerPref
public PeerPref getPeerPref()
Description copied from interface:PcepSessionState
The remote peer (PCC) preferences.- Specified by:
getPeerPref
in interfacePcepSessionState
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.PeerPref
peerPref
, ornull
if not present
-
getDelegatedLspsCount
public org.opendaylight.yangtools.yang.common.Uint16 getDelegatedLspsCount()
Description copied from interface:PcepSessionState
The number of delegated LSPs (tunnels) from PCC.- Specified by:
getDelegatedLspsCount
in interfacePcepSessionState
- Returns:
org.opendaylight.yangtools.yang.common.Uint16
delegatedLspsCount
, ornull
if not present
-
implementedInterface
public Class<PcepSessionState> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfacePcepSessionState
-
-