@ThreadSafe public final class BGPSessionStateImpl extends Object implements BGPSessionState, BGPTimersState, BGPTransportState, BGPSessionStateListener
| Constructor and Description |
|---|
BGPSessionStateImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
advertizeCapabilities(int holdTimerValue,
SocketAddress remoteAddress,
SocketAddress localAddress,
Set<BgpTableType> tableTypes,
List<BgpParameters> bgpParameters)
Advertize Session capabilities
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getLocalPort()
Local Port.
|
long |
getNegotiatedHoldTime()
Negotiated Hold Time.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getRemoteAddress()
Remote Address.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getRemotePort()
Remote Port.
|
State |
getSessionState()
Internal session state.
|
long |
getUpTime()
The time (MILLISECONDS) for how long session has been up or on idle state.
|
boolean |
isAddPathCapabilitySupported()
Additional Path capability.
|
boolean |
isAsn32CapabilitySupported()
AS 4 Bytes capability.
|
boolean |
isGracefulRestartCapabilitySupported()
Graceful Restart.
|
boolean |
isMultiProtocolCapabilitySupported()
Multiprotocol capability.
|
boolean |
isRouterRefreshCapabilitySupported()
Router Refresh Capability.
|
void |
messageReceived(org.opendaylight.yangtools.yang.binding.Notification msg)
Fired when message is received.
|
void |
messageSent(org.opendaylight.yangtools.yang.binding.Notification msg)
Fired when message is sent.
|
void |
registerMessagesCounter(BGPMessagesListener bgpMessagesListener) |
void |
setSessionState(State state)
Fired when session state changes
|
public void messageSent(org.opendaylight.yangtools.yang.binding.Notification msg)
BGPMessagesListenermessageSent in interface BGPMessagesListenermsg - messagepublic void messageReceived(org.opendaylight.yangtools.yang.binding.Notification msg)
BGPMessagesListenermessageReceived in interface BGPMessagesListenermsg - messagepublic void advertizeCapabilities(int holdTimerValue,
SocketAddress remoteAddress,
SocketAddress localAddress,
Set<BgpTableType> tableTypes,
List<BgpParameters> bgpParameters)
BGPSessionStateListeneradvertizeCapabilities in interface BGPSessionStateListenerholdTimerValue - hold TimerremoteAddress - remote AddresslocalAddress - local AddresstableTypes - supported familiesbgpParameters - bgp capabilitiespublic State getSessionState()
BGPSessionStategetSessionState in interface BGPSessionStatepublic void setSessionState(@Nonnull State state)
BGPSessionStateListenersetSessionState in interface BGPSessionStateListenerstate - session statepublic boolean isAddPathCapabilitySupported()
BGPSessionStateisAddPathCapabilitySupported in interface BGPSessionStatepublic boolean isAsn32CapabilitySupported()
BGPSessionStateisAsn32CapabilitySupported in interface BGPSessionStatepublic boolean isGracefulRestartCapabilitySupported()
BGPSessionStateisGracefulRestartCapabilitySupported in interface BGPSessionStatepublic boolean isMultiProtocolCapabilitySupported()
BGPSessionStateisMultiProtocolCapabilitySupported in interface BGPSessionStatepublic boolean isRouterRefreshCapabilitySupported()
BGPSessionStateisRouterRefreshCapabilitySupported in interface BGPSessionStatepublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getLocalPort()
BGPTransportStategetLocalPort in interface BGPTransportStatepublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getRemoteAddress()
BGPTransportStategetRemoteAddress in interface BGPTransportState@Nonnull public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getRemotePort()
BGPTransportStategetRemotePort in interface BGPTransportStatepublic long getNegotiatedHoldTime()
BGPTimersStategetNegotiatedHoldTime in interface BGPTimersStatepublic long getUpTime()
BGPTimersStategetUpTime in interface BGPTimersStatepublic void registerMessagesCounter(BGPMessagesListener bgpMessagesListener)
Copyright © 2019 OpenDaylight. All rights reserved.