Class JsonRpcEndpoint
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.opendaylight.ovsdb.lib.jsonrpc.JsonRpcEndpoint
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,OvsdbRPC
public class JsonRpcEndpoint
extends io.netty.channel.ChannelInboundHandlerAdapter
implements OvsdbRPC
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
Nested classes/interfaces inherited from interface org.opendaylight.ovsdb.lib.message.OvsdbRPC
OvsdbRPC.Callback
-
Field Summary
Fields inherited from interface org.opendaylight.ovsdb.lib.message.OvsdbRPC
REGISTER_CALLBACK_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Response>
void
channelRead
(io.netty.channel.ChannelHandlerContext ctx, Object msg) void
channelReadComplete
(io.netty.channel.ChannelHandlerContext ctx) static void
close()
echo()
com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode>
get_schema
(List<String> dbNames) list_dbs()
com.google.common.util.concurrent.ListenableFuture<Object>
com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode>
com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode>
monitor_cancel
(Params jsonValue) boolean
registerCallback
(OvsdbRPC.Callback callback) static void
setReaperInterval
(int interval) com.google.common.util.concurrent.ListenableFuture<Object>
com.google.common.util.concurrent.ListenableFuture<List<com.fasterxml.jackson.databind.JsonNode>>
transact
(TransactBuilder transact) com.google.common.util.concurrent.ListenableFuture<Object>
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
JsonRpcEndpoint
public JsonRpcEndpoint(io.netty.channel.Channel channel)
-
-
Method Details
-
setReaperInterval
public static void setReaperInterval(int interval) -
close
public static void close() -
get_schema
public com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode> get_schema(List<String> dbNames) - Specified by:
get_schema
in interfaceOvsdbRPC
-
echo
-
monitor
public com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode> monitor(Params equest) -
list_dbs
-
transact
public com.google.common.util.concurrent.ListenableFuture<List<com.fasterxml.jackson.databind.JsonNode>> transact(TransactBuilder transact) -
cancel
-
monitor_cancel
public com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode> monitor_cancel(Params jsonValue) - Specified by:
monitor_cancel
in interfaceOvsdbRPC
-
lock
-
steal
-
unlock
-
registerCallback
- Specified by:
registerCallback
in interfaceOvsdbRPC
-
channelRead
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelReadComplete
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelReadComplete
in classio.netty.channel.ChannelInboundHandlerAdapter
-