Class JsonRpcEndpoint
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.opendaylight.ovsdb.lib.jsonrpc.JsonRpcEndpoint
-
-
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
Constructors Constructor Description JsonRpcEndpoint(io.netty.channel.Channel channel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<Response>
cancel(String id)
void
channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
void
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
static void
close()
com.google.common.util.concurrent.ListenableFuture<List<String>>
echo()
com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode>
get_schema(List<String> dbNames)
com.google.common.util.concurrent.ListenableFuture<List<String>>
list_dbs()
com.google.common.util.concurrent.ListenableFuture<Object>
lock(List<String> id)
com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode>
monitor(Params equest)
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>
steal(List<String> id)
com.google.common.util.concurrent.ListenableFuture<List<com.fasterxml.jackson.databind.JsonNode>>
transact(TransactBuilder transact)
com.google.common.util.concurrent.ListenableFuture<Object>
unlock(List<String> id)
-
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
-
-
-
-
Method Detail
-
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
-
monitor
public com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode> monitor(Params equest)
-
transact
public com.google.common.util.concurrent.ListenableFuture<List<com.fasterxml.jackson.databind.JsonNode>> transact(TransactBuilder transact)
-
monitor_cancel
public com.google.common.util.concurrent.ListenableFuture<com.fasterxml.jackson.databind.JsonNode> monitor_cancel(Params jsonValue)
- Specified by:
monitor_cancel
in interfaceOvsdbRPC
-
registerCallback
public boolean registerCallback(OvsdbRPC.Callback callback)
- Specified by:
registerCallback
in interfaceOvsdbRPC
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
- 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
-
-