Class BGPSessionStateImpl
java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.state.BGPSessionStateImpl
- All Implemented Interfaces:
BGPMessagesListener
,BGPSessionStateListener
,BGPSessionState
,BGPTimersState
,BGPTransportState
public final class BGPSessionStateImpl
extends Object
implements BGPSessionState, BGPTimersState, BGPTransportState, BGPSessionStateListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advertizeCapabilities
(int newHoldTimerValue, SocketAddress newRemoteAddress, 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
Local Port.long
Negotiated Hold Time.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
Remote Address.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber
Remote Port.Internal session state.long
The time (MILLISECONDS) for how long session has been up or on idle state.boolean
Additional Path capability.boolean
AS 4 Bytes capability.boolean
Graceful Restart.boolean
Multiprotocol capability.boolean
Router Refresh Capability.void
messageReceived
(org.opendaylight.yangtools.binding.Notification<?> msg) Fired when message is received.void
messageSent
(org.opendaylight.yangtools.binding.Notification<?> msg) Fired when message is sent.void
registerMessagesCounter
(BGPMessagesListener bgpMessagesListener) void
setSessionState
(State state) Fired when session state changes.
-
Constructor Details
-
BGPSessionStateImpl
public BGPSessionStateImpl()
-
-
Method Details
-
messageSent
public void messageSent(org.opendaylight.yangtools.binding.Notification<?> msg) Description copied from interface:BGPMessagesListener
Fired when message is sent.- Specified by:
messageSent
in interfaceBGPMessagesListener
- Parameters:
msg
- message
-
messageReceived
public void messageReceived(org.opendaylight.yangtools.binding.Notification<?> msg) Description copied from interface:BGPMessagesListener
Fired when message is received.- Specified by:
messageReceived
in interfaceBGPMessagesListener
- Parameters:
msg
- message
-
advertizeCapabilities
public void advertizeCapabilities(int newHoldTimerValue, SocketAddress newRemoteAddress, SocketAddress localAddress, Set<BgpTableType> tableTypes, List<BgpParameters> bgpParameters) Description copied from interface:BGPSessionStateListener
Advertize Session capabilities.- Specified by:
advertizeCapabilities
in interfaceBGPSessionStateListener
- Parameters:
newHoldTimerValue
- hold TimernewRemoteAddress
- remote AddresslocalAddress
- local AddresstableTypes
- supported familiesbgpParameters
- bgp capabilities
-
getSessionState
Description copied from interface:BGPSessionState
Internal session state.- Specified by:
getSessionState
in interfaceBGPSessionState
- Returns:
- Internal session state
-
setSessionState
Description copied from interface:BGPSessionStateListener
Fired when session state changes.- Specified by:
setSessionState
in interfaceBGPSessionStateListener
- Parameters:
state
- session state
-
isAddPathCapabilitySupported
public boolean isAddPathCapabilitySupported()Description copied from interface:BGPSessionState
Additional Path capability.- Specified by:
isAddPathCapabilitySupported
in interfaceBGPSessionState
- Returns:
- true if supported
-
isAsn32CapabilitySupported
public boolean isAsn32CapabilitySupported()Description copied from interface:BGPSessionState
AS 4 Bytes capability.- Specified by:
isAsn32CapabilitySupported
in interfaceBGPSessionState
- Returns:
- true if supported
-
isGracefulRestartCapabilitySupported
public boolean isGracefulRestartCapabilitySupported()Description copied from interface:BGPSessionState
Graceful Restart.- Specified by:
isGracefulRestartCapabilitySupported
in interfaceBGPSessionState
- Returns:
- true if supported
-
isMultiProtocolCapabilitySupported
public boolean isMultiProtocolCapabilitySupported()Description copied from interface:BGPSessionState
Multiprotocol capability.- Specified by:
isMultiProtocolCapabilitySupported
in interfaceBGPSessionState
- Returns:
- true if supported
-
isRouterRefreshCapabilitySupported
public boolean isRouterRefreshCapabilitySupported()Description copied from interface:BGPSessionState
Router Refresh Capability.- Specified by:
isRouterRefreshCapabilitySupported
in interfaceBGPSessionState
- Returns:
- true if supported
-
getLocalPort
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getLocalPort()Description copied from interface:BGPTransportState
Local Port.- Specified by:
getLocalPort
in interfaceBGPTransportState
- Returns:
- port
-
getRemoteAddress
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getRemoteAddress()Description copied from interface:BGPTransportState
Remote Address.- Specified by:
getRemoteAddress
in interfaceBGPTransportState
- Returns:
- IpAddress
-
getRemotePort
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getRemotePort()Description copied from interface:BGPTransportState
Remote Port.- Specified by:
getRemotePort
in interfaceBGPTransportState
- Returns:
- port
-
getNegotiatedHoldTime
public long getNegotiatedHoldTime()Description copied from interface:BGPTimersState
Negotiated Hold Time.- Specified by:
getNegotiatedHoldTime
in interfaceBGPTimersState
- Returns:
- Hold Time
-
getUpTime
public long getUpTime()Description copied from interface:BGPTimersState
The time (MILLISECONDS) for how long session has been up or on idle state.- Specified by:
getUpTime
in interfaceBGPTimersState
- Returns:
- time
-
registerMessagesCounter
-