public class BGPSessionImpl extends io.netty.channel.SimpleChannelInboundHandler<org.opendaylight.yangtools.yang.binding.Notification> implements BGPSession, BGPSessionStateProvider, AutoCloseable
| Constructor and Description |
|---|
BGPSessionImpl(BGPSessionListener listener,
io.netty.channel.Channel channel,
Open remoteOpen,
BGPSessionPreferences localPreferences,
BGPPeerRegistry peerRegistry) |
BGPSessionImpl(BGPSessionListener listener,
io.netty.channel.Channel channel,
Open remoteOpen,
int localHoldTimer,
BGPPeerRegistry peerRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
org.opendaylight.yangtools.yang.binding.Notification msg) |
void |
close() |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
List<AddressFamilies> |
getAdvertisedAddPathTableTypes()
Return a list with Add Path tables supported advertised and corresponding SendReceive mode.
|
List<BgpTableType> |
getAdvertisedGracefulRestartTableTypes()
Return the list of tables which the peer has advertised to support.
|
Set<BgpTableType> |
getAdvertisedTableTypes()
Return the list of tables which the peer has advertised to support.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber |
getAsNumber()
Return the AS number which the peer advertises.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address |
getBgpId()
Return the BGP router ID advertised by the peer.
|
BGPSessionState |
getBGPSessionState()
BGP Operational Session State.
|
BGPTimersState |
getBGPTimersState()
BGP Operational Timers State.
|
BGPTransportState |
getBGPTransportState()
BGP Operational Transport State.
|
ChannelOutputLimiter |
getLimiter() |
State |
getState() |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
registerMessagesCounter(BGPMessagesListener bgpMessagesListener)
Register BGP Operational Messages State Listener.
|
void |
setChannelExtMsgCoder(Open remoteOpen)
Set the extend message coder for current channel
The reason for separating this part from constructor is, in #channel.pipeline().replace(..), the
invokeChannelRead() will be invoked after the original message coder handler got removed.
|
String |
toString() |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic BGPSessionImpl(BGPSessionListener listener, io.netty.channel.Channel channel, Open remoteOpen, BGPSessionPreferences localPreferences, BGPPeerRegistry peerRegistry)
public BGPSessionImpl(BGPSessionListener listener, io.netty.channel.Channel channel, Open remoteOpen, int localHoldTimer, BGPPeerRegistry peerRegistry)
public void setChannelExtMsgCoder(Open remoteOpen)
remoteOpen - public void close()
close in interface AutoCloseableprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
public Set<BgpTableType> getAdvertisedTableTypes()
BGPSessiongetAdvertisedTableTypes in interface BGPSessionpublic List<AddressFamilies> getAdvertisedAddPathTableTypes()
BGPSessiongetAdvertisedAddPathTableTypes in interface BGPSessionpublic List<BgpTableType> getAdvertisedGracefulRestartTableTypes()
BGPSessiongetAdvertisedGracefulRestartTableTypes in interface BGPSessionpublic State getState()
public final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address getBgpId()
BGPSessiongetBgpId in interface BGPSessionpublic final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getAsNumber()
BGPSessiongetAsNumber in interface BGPSessionpublic ChannelOutputLimiter getLimiter()
public final void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterprotected final void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
org.opendaylight.yangtools.yang.binding.Notification msg)
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<org.opendaylight.yangtools.yang.binding.Notification>public final void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic BGPSessionState getBGPSessionState()
BGPSessionStateProvidergetBGPSessionState in interface BGPSessionStateProviderpublic BGPTimersState getBGPTimersState()
BGPSessionStateProvidergetBGPTimersState in interface BGPSessionStateProviderpublic BGPTransportState getBGPTransportState()
BGPSessionStateProvidergetBGPTransportState in interface BGPSessionStateProviderpublic void registerMessagesCounter(BGPMessagesListener bgpMessagesListener)
BGPSessionStateProviderregisterMessagesCounter in interface BGPSessionStateProviderbgpMessagesListener - BGPMessagesListenerCopyright © 2019 OpenDaylight. All rights reserved.