Package foundation.omni.cli
Class ConsensusCLI
java.lang.Object
org.consensusj.jsonrpc.cli.BaseJsonRpcTool
org.consensusj.bitcoin.cli.BitcoinCLITool
foundation.omni.cli.ConsensusCLI
- All Implemented Interfaces:
ToolProvider
Tool to fetch Omni and optionally compare consensus data from Omni Core and/or Omniwallet.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.consensusj.bitcoin.cli.BitcoinCLITool
BitcoinCLITool.BitcoinCLICallNested classes/interfaces inherited from class org.consensusj.jsonrpc.cli.BaseJsonRpcTool
BaseJsonRpcTool.CommonsCLICall -
Field Summary
FieldsFields inherited from class org.consensusj.jsonrpc.cli.BaseJsonRpcTool
defaultUri, formatter, jsonRpcVersion, outputObject, outputStyle, usage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefault JsonRpcClientTool.CallcreateCall(PrintStream arg0, PrintStream arg1, String... arg2) createCall(PrintWriter out, PrintWriter err, String... args) static voidname()org.apache.commons.cli.Optionsoptions()voidrun(OmniCoreCLICall call) default intrun(PrintWriter arg0, PrintWriter arg1, String... arg2) voidrun(JsonRpcClientTool.Call call) usage()default PrintWriterwriterFromStream(PrintStream arg0) Methods inherited from class org.consensusj.jsonrpc.cli.BaseJsonRpcTool
printError, printHelp, runMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.spi.ToolProvider
description, run
-
Field Details
-
commandName
- See Also:
-
commandUsage
- See Also:
-
-
Constructor Details
-
ConsensusCLI
public ConsensusCLI()
-
-
Method Details
-
name
- Specified by:
namein interfaceToolProvider- Overrides:
namein classBitcoinCLITool
-
usage
- Overrides:
usagein classBaseJsonRpcTool
-
options
public org.apache.commons.cli.Options options()- Overrides:
optionsin classBitcoinCLITool
-
main
-
createCall
- Overrides:
createCallin classBitcoinCLITool
-
run
- Overrides:
runin classBaseJsonRpcTool
-
run
-
run
- Specified by:
runin interfaceToolProvider
-
createCall
-
writerFromStream
-