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 |
|---|---|
<T extends PeerConstraint> |
addDecoderConstraint(Class<T> constraintClass,
T constraint)
Add peer constraint to session pipeline decoder.
|
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 |
closeWithoutMessage()
Close peer session without sending Notification message.
|
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.
|
GracefulRestartCapability |
getAdvertisedGracefulRestartCapability()
Return advertised graceful capability containing the list of tables which the peer has advertised to support,
restart time and restarting flags.
|
LlGracefulRestartCapability |
getAdvertisedLlGracefulRestartCapability()
Return advertised long-lived graceful capability containing the list of tables with stale time 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.
|
io.netty.util.concurrent.ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit)
Schedule a task to be executed in the context of the session handling thread.
|
void |
setChannelExtMsgCoder(Open remoteOpen)
Set the extend message coder for current channel.
|
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)
public void close()
close in interface AutoCloseablepublic void closeWithoutMessage()
BGPSessioncloseWithoutMessage in interface BGPSessionprotected 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 GracefulRestartCapability getAdvertisedGracefulRestartCapability()
BGPSessiongetAdvertisedGracefulRestartCapability in interface BGPSessionpublic LlGracefulRestartCapability getAdvertisedLlGracefulRestartCapability()
BGPSessiongetAdvertisedLlGracefulRestartCapability 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)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected 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 - BGPMessagesListenerpublic <T extends PeerConstraint> void addDecoderConstraint(Class<T> constraintClass, T constraint)
BGPSessionaddDecoderConstraint in interface BGPSessionpublic io.netty.util.concurrent.ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
BGPSessionschedule in interface BGPSessioncommand - the task to executedelay - the time from now to delay executionunit - the time unit of the delay parameterCopyright © 2020 OpenDaylight. All rights reserved.