public class PCEPSessionImpl
extends io.netty.channel.SimpleChannelInboundHandler<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message>
implements org.opendaylight.protocol.pcep.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg) |
void |
close()
Closes PCEP session without sending a Close message, as the channel is no longer active.
|
void |
close(org.opendaylight.protocol.pcep.TerminationReason reason)
Closes PCEP session, cancels all timers, returns to state Idle, sends the Close Message.
|
void |
endOfInput() |
Integer |
getDeadTimerValue() |
Class<? extends org.opendaylight.yangtools.yang.binding.DataContainer> |
getImplementedInterface() |
Integer |
getKeepAliveTimerValue() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.LocalPref |
getLocalPref() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.Messages |
getMessages() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.PeerPref |
getPeerPref() |
InetAddress |
getRemoteAddress() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.open.Tlvs |
getRemoteTlvs() |
protected Queue<Long> |
getUnknownMessagesTimes() |
void |
handleMalformedMessage(org.opendaylight.protocol.pcep.spi.PCEPErrors error)
The fact, that a message is malformed, comes from parser.
|
void |
handleMessage(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg)
Handles incoming message.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
boolean |
isClosed() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.open.Tlvs |
localSessionCharacteristics() |
void |
resetStats() |
io.netty.util.concurrent.Future<Void> |
sendMessage(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg)
Sends message to serialization.
|
void |
sessionUp() |
String |
toString() |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredprotected volatile long lastMessageSentAt
public final Integer getKeepAliveTimerValue()
public final Integer getDeadTimerValue()
public io.netty.util.concurrent.Future<Void> sendMessage(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg)
sendMessage in interface org.opendaylight.protocol.pcep.PCEPSessionmsg - to be sentpublic boolean isClosed()
public void close()
close in interface AutoCloseablepublic void close(org.opendaylight.protocol.pcep.TerminationReason reason)
close in interface org.opendaylight.protocol.pcep.PCEPSessionpublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.open.Tlvs getRemoteTlvs()
getRemoteTlvs in interface org.opendaylight.protocol.pcep.PCEPSessionpublic InetAddress getRemoteAddress()
getRemoteAddress in interface org.opendaylight.protocol.pcep.PCEPSessionpublic void endOfInput()
public void handleMalformedMessage(org.opendaylight.protocol.pcep.spi.PCEPErrors error)
error - documented error in RFC5440 or draftpublic void handleMessage(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg)
msg - incoming messagepublic void sessionUp()
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.Messages getMessages()
getMessages in interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.PcepSessionStatepublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.LocalPref getLocalPref()
getLocalPref in interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.PcepSessionStatepublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.pcep.session.state.PeerPref getPeerPref()
getPeerPref in interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.PcepSessionStatepublic Class<? extends org.opendaylight.yangtools.yang.binding.DataContainer> getImplementedInterface()
getImplementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainerpublic void resetStats()
resetStats in interface org.opendaylight.protocol.pcep.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,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg)
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message>public final void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterpublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.open.Tlvs localSessionCharacteristics()
localSessionCharacteristics in interface org.opendaylight.protocol.pcep.PCEPSessionCopyright © 2017 OpenDaylight. All rights reserved.