Package org.consensusj.jsonrpc.daemon
Class EchoJsonRpcService
java.lang.Object
org.consensusj.jsonrpc.introspection.AbstractJsonRpcService
org.consensusj.jsonrpc.daemon.EchoJsonRpcService
- All Implemented Interfaces:
Closeable
,AutoCloseable
,JsonRpcServiceWrapper
,JsonRpcService
Simple Echo JSON-RPC Service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
help()
void
onShutdown
(io.micronaut.runtime.server.event.ServerShutdownEvent event) void
onStartup
(io.micronaut.runtime.server.event.ServerStartupEvent event) stop()
Initiate server shutdown.Methods inherited from class org.consensusj.jsonrpc.introspection.AbstractJsonRpcService
exception, getMethod, getServiceObject, result
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.consensusj.jsonrpc.introspection.JsonRpcServiceWrapper
call
-
Constructor Details
-
EchoJsonRpcService
public EchoJsonRpcService()
-
-
Method Details
-
onStartup
-
onShutdown
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
echo
-
help
-
stop
Initiate server shutdown. This is a JSON-RPC method and will initiate but not complete server-shutdown because it must return a response to the client.- Returns:
- A status string indicating the server is stopping
-