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, channelRead
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
localSessionCharacteristics
public final Integer getKeepAliveTimerValue()
public final Integer getDeadTimerValue()
public io.netty.util.concurrent.Future<Void> sendMessage(Message msg)
sendMessage
in interface PCEPSession
msg
- to be sentpublic boolean isClosed()
public void close()
close
in interface AutoCloseable
public void close(TerminationReason reason)
close
in interface PCEPSession
public Tlvs getRemoteTlvs()
PCEPSession
getRemoteTlvs
in interface PCEPSession
public InetAddress getRemoteAddress()
PCEPSession
getRemoteAddress
in interface PCEPSession
public void handleMessage(Message msg)
msg
- incoming messagepublic Messages getMessages()
PCEPSessionState
getMessages
in interface PCEPSessionState
public LocalPref getLocalPref()
PCEPSessionState
getLocalPref
in interface PCEPSessionState
public PeerPref getPeerPref()
PCEPSessionState
getPeerPref
in interface PCEPSessionState
public Open getLocalOpen()
PCEPSessionState
getLocalOpen
in interface PCEPSessionState
public final void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
protected 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.ChannelHandler
handlerAdded
in class io.netty.channel.ChannelHandlerAdapter
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
public Tlvs getLocalTlvs()
PCEPSession
getLocalTlvs
in interface PCEPSession
Copyright © 2019 OpenDaylight. All rights reserved.