Class JsonRpcConfigFile
java.lang.Object
org.consensusj.jsonrpc.cli.config.JsonRpcConfigFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Fileprotected final com.fasterxml.jackson.dataformat.toml.TomlMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()static JsonRpcConfigFilepath()Read one named JsonRpcServerConfigEntry after reading the file into a JsonNode
-
Field Details
-
configFile
-
mapper
-
-
Constructor Details
-
JsonRpcConfigFile
-
-
Method Details
-
fromDefaultConfigFile
-
path
-
exists
-
readDefault
-
readOne
Read one named JsonRpcServerConfigEntry after reading the file into a JsonNode- Parameters:
index- name of the consensus source to read- Returns:
- An object containing info on the consensus source
-