public class PCEPSessionImpl extends io.netty.channel.SimpleChannelInboundHandler<Message> implements PCEPSession
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastMessageSentAt
System.nanoTime value about when was sent the last message Protected to be updated also in tests.
|
QNAME| 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 |
endOfInput() |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Integer |
getDeadTimerValue() |
Class<? extends org.opendaylight.yangtools.yang.binding.DataContainer> |
getImplementedInterface() |
Integer |
getKeepAliveTimerValue() |
LocalPref |
getLocalPref()
The local (PCE) preferences.
|
Messages |
getMessages()
The statistics of PCEP received/sent messages from the PCE point of view.
|
PeerPref |
getPeerPref()
The remote peer (PCC) preferences.
|
InetAddress |
getRemoteAddress() |
Tlvs |
getRemoteTlvs() |
void |
handleMalformedMessage(PCEPErrors error)
The fact, that a message is malformed, comes from parser.
|
void |
handleMessage(Message msg)
Handles incoming message.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
boolean |
isClosed() |
Tlvs |
localSessionCharacteristics()
Returns session characteristics of the local PCEP Speaker
|
void |
resetStats() |
io.netty.util.concurrent.Future<Void> |
sendMessage(Message msg)
Sends message to serialization.
|
String |
toString() |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredprotected volatile long lastMessageSentAt
public 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()
getRemoteTlvs in interface PCEPSessionpublic InetAddress getRemoteAddress()
getRemoteAddress in interface PCEPSessionpublic void endOfInput()
public void handleMalformedMessage(PCEPErrors error)
error - documented error in RFC5440 or draftpublic void handleMessage(Message msg)
msg - incoming messagepublic Messages getMessages()
PcepSessionStategetMessages in interface PcepSessionStateorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.Messages messages, or null if not presentpublic LocalPref getLocalPref()
PcepSessionStategetLocalPref in interface PcepSessionStateorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.LocalPref localPref, or null if not presentpublic PeerPref getPeerPref()
PcepSessionStategetPeerPref in interface PcepSessionStateorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.PeerPref peerPref, or null if not presentpublic Class<? extends org.opendaylight.yangtools.yang.binding.DataContainer> getImplementedInterface()
getImplementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainerpublic void resetStats()
resetStats in interface PCEPSessionpublic 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 localSessionCharacteristics()
PCEPSessionlocalSessionCharacteristics in interface PCEPSessionCopyright © 2018 OpenDaylight. All rights reserved.