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.SharableNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Response>voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx) static voidclose()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) booleanregisterCallback(OvsdbRPC.Callback callback) static voidsetReaperInterval(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, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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_schemain 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_cancelin interfaceOvsdbRPC
-
lock
-
steal
-
unlock
-
registerCallback
- Specified by:
registerCallbackin interfaceOvsdbRPC
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelReadCompletein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadCompletein classio.netty.channel.ChannelInboundHandlerAdapter
-