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 SummaryConstructors Constructor Description BGPSessionStateImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvertizeCapabilities(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.PortNumbergetLocalPort()Local Port.longgetNegotiatedHoldTime()Negotiated Hold Time.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZonegetRemoteAddress()Remote Address.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumbergetRemotePort()Remote Port.StategetSessionState()Internal session state.longgetUpTime()The time (MILLISECONDS) for how long session has been up or on idle state.booleanisAddPathCapabilitySupported()Additional Path capability.booleanisAsn32CapabilitySupported()AS 4 Bytes capability.booleanisGracefulRestartCapabilitySupported()Graceful Restart.booleanisMultiProtocolCapabilitySupported()Multiprotocol capability.booleanisRouterRefreshCapabilitySupported()Router Refresh Capability.voidmessageReceived(org.opendaylight.yangtools.yang.binding.Notification<?> msg)Fired when message is received.voidmessageSent(org.opendaylight.yangtools.yang.binding.Notification<?> msg)Fired when message is sent.voidregisterMessagesCounter(BGPMessagesListener bgpMessagesListener)voidsetSessionState(State state)Fired when session state changes.
 
- 
- 
- 
Method Detail- 
messageSentpublic void messageSent(org.opendaylight.yangtools.yang.binding.Notification<?> msg) Description copied from interface:BGPMessagesListenerFired when message is sent.- Specified by:
- messageSentin interface- BGPMessagesListener
- Parameters:
- msg- message
 
 - 
messageReceivedpublic void messageReceived(org.opendaylight.yangtools.yang.binding.Notification<?> msg) Description copied from interface:BGPMessagesListenerFired when message is received.- Specified by:
- messageReceivedin interface- BGPMessagesListener
- Parameters:
- msg- message
 
 - 
advertizeCapabilitiespublic void advertizeCapabilities(int newHoldTimerValue, SocketAddress newRemoteAddress, SocketAddress localAddress, Set<BgpTableType> tableTypes, List<BgpParameters> bgpParameters)Description copied from interface:BGPSessionStateListenerAdvertize Session capabilities.- Specified by:
- advertizeCapabilitiesin interface- BGPSessionStateListener
- Parameters:
- newHoldTimerValue- hold Timer
- newRemoteAddress- remote Address
- localAddress- local Address
- tableTypes- supported families
- bgpParameters- bgp capabilities
 
 - 
getSessionStatepublic State getSessionState() Description copied from interface:BGPSessionStateInternal session state.- Specified by:
- getSessionStatein interface- BGPSessionState
- Returns:
- Internal session state
 
 - 
setSessionStatepublic void setSessionState(State state) Description copied from interface:BGPSessionStateListenerFired when session state changes.- Specified by:
- setSessionStatein interface- BGPSessionStateListener
- Parameters:
- state- session state
 
 - 
isAddPathCapabilitySupportedpublic boolean isAddPathCapabilitySupported() Description copied from interface:BGPSessionStateAdditional Path capability.- Specified by:
- isAddPathCapabilitySupportedin interface- BGPSessionState
- Returns:
- true if supported
 
 - 
isAsn32CapabilitySupportedpublic boolean isAsn32CapabilitySupported() Description copied from interface:BGPSessionStateAS 4 Bytes capability.- Specified by:
- isAsn32CapabilitySupportedin interface- BGPSessionState
- Returns:
- true if supported
 
 - 
isGracefulRestartCapabilitySupportedpublic boolean isGracefulRestartCapabilitySupported() Description copied from interface:BGPSessionStateGraceful Restart.- Specified by:
- isGracefulRestartCapabilitySupportedin interface- BGPSessionState
- Returns:
- true if supported
 
 - 
isMultiProtocolCapabilitySupportedpublic boolean isMultiProtocolCapabilitySupported() Description copied from interface:BGPSessionStateMultiprotocol capability.- Specified by:
- isMultiProtocolCapabilitySupportedin interface- BGPSessionState
- Returns:
- true if supported
 
 - 
isRouterRefreshCapabilitySupportedpublic boolean isRouterRefreshCapabilitySupported() Description copied from interface:BGPSessionStateRouter Refresh Capability.- Specified by:
- isRouterRefreshCapabilitySupportedin interface- BGPSessionState
- Returns:
- true if supported
 
 - 
getLocalPortpublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getLocalPort() Description copied from interface:BGPTransportStateLocal Port.- Specified by:
- getLocalPortin interface- BGPTransportState
- Returns:
- port
 
 - 
getRemoteAddresspublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getRemoteAddress() Description copied from interface:BGPTransportStateRemote Address.- Specified by:
- getRemoteAddressin interface- BGPTransportState
- Returns:
- IpAddress
 
 - 
getRemotePortpublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getRemotePort() Description copied from interface:BGPTransportStateRemote Port.- Specified by:
- getRemotePortin interface- BGPTransportState
- Returns:
- port
 
 - 
getNegotiatedHoldTimepublic long getNegotiatedHoldTime() Description copied from interface:BGPTimersStateNegotiated Hold Time.- Specified by:
- getNegotiatedHoldTimein interface- BGPTimersState
- Returns:
- Hold Time
 
 - 
getUpTimepublic long getUpTime() Description copied from interface:BGPTimersStateThe time (MILLISECONDS) for how long session has been up or on idle state.- Specified by:
- getUpTimein interface- BGPTimersState
- Returns:
- time
 
 - 
registerMessagesCounterpublic void registerMessagesCounter(BGPMessagesListener bgpMessagesListener) 
 
- 
 
-