public class PCEPSessionImpl extends io.netty.channel.SimpleChannelInboundHandler<Message> implements PCEPSession
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Message msg) |
void |
close()
Closes PCEP session without sending a Close message, as the channel is no longer active.
|
void |
close(TerminationReason reason)
Closes PCEP session, cancels all timers, returns to state Idle, sends the Close Message.
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Integer |
getDeadTimerValue() |
Integer |
getKeepAliveTimerValue() |
Open |
getLocalOpen()
The local (PCE) Open Message.
|
LocalPref |
getLocalPref()
The local (PCE) preferences.
|
Tlvs |
getLocalTlvs()
Returns session characteristics of the local PCEP Speaker.
|
Messages |
getMessages()
The statistics of PCEP received/sent messages from the PCE point of view.
|
PeerPref |
getPeerPref()
The remote peer (PCC) preferences.
|
InetAddress |
getRemoteAddress()
Returns remote address.
|
Tlvs |
getRemoteTlvs()
Returns session characteristics of the remote PCEP Speaker.
|
void |
handleMessage(Message msg)
Handles incoming message.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
boolean |
isClosed() |
io.netty.util.concurrent.Future<Void> |
sendMessage(Message msg)
Sends message to serialization.
|
String |
toString() |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlocalSessionCharacteristicspublic final Integer getKeepAliveTimerValue()
public final Integer getDeadTimerValue()
public io.netty.util.concurrent.Future<Void> sendMessage(Message msg)
sendMessage in interface PCEPSessionmsg - to be sentpublic boolean isClosed()
public void close()
close in interface AutoCloseablepublic void close(TerminationReason reason)
close in interface PCEPSessionpublic Tlvs getRemoteTlvs()
PCEPSessiongetRemoteTlvs in interface PCEPSessionpublic InetAddress getRemoteAddress()
PCEPSessiongetRemoteAddress in interface PCEPSessionpublic void handleMessage(Message msg)
msg - incoming messagepublic Messages getMessages()
PCEPSessionStategetMessages in interface PCEPSessionStatepublic LocalPref getLocalPref()
PCEPSessionStategetLocalPref in interface PCEPSessionStatepublic PeerPref getPeerPref()
PCEPSessionStategetPeerPref in interface PCEPSessionStatepublic Open getLocalOpen()
PCEPSessionStategetLocalOpen in interface PCEPSessionStatepublic 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,
Message msg)
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<Message>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 Tlvs getLocalTlvs()
PCEPSessiongetLocalTlvs in interface PCEPSessionCopyright © 2019 OpenDaylight. All rights reserved.