object CantonConfig extends Serializable
- Alphabetic
- By Inheritance
- CantonConfig
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class ConfigWriters extends AnyRef
writers
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val cantonConfigCantonConfigValidator: CantonConfigValidator[CantonConfig]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- lazy val defaultConfigRenderer: ConfigRenderOptions
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadAndValidate(config: Config, edition: CantonEdition)(implicit elc: ErrorLoggingContext = elc): Either[CantonConfigError, CantonConfig]
Will load a case class configuration (defined by template args) from the configuration object.
Will load a case class configuration (defined by template args) from the configuration object. Any configuration errors encountered will be returned (but not logged).
- returns
scala.Right of type CantonConfig if parsing was successful.
- def loadOrExit(config: Config, edition: CantonEdition)(implicit elc: ErrorLoggingContext = elc): CantonConfig
Will load a case class configuration (defined by template args) from the configuration object.
Will load a case class configuration (defined by template args) from the configuration object. If any configuration errors are encountered, they will be logged and the JVM will exit with code 1.
- def makeConfidentialString(config: CantonConfig): String
- def mergeConfigs(configs: NonEmpty[Seq[Config]]): Config
Merge a number of com.typesafe.config.Config instances into a single com.typesafe.config.Config.
Merge a number of com.typesafe.config.Config instances into a single com.typesafe.config.Config. If the same key is included in multiple configurations, then the last definition has highest precedence.
- def mergeConfigs(firstConfig: Config, otherConfigs: Seq[Config]): Config
Merge a number of com.typesafe.config.Config instances into a single com.typesafe.config.Config.
Merge a number of com.typesafe.config.Config instances into a single com.typesafe.config.Config. If the same key is included in multiple configurations, then the last definition has highest precedence.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parseAndLoad(files: Seq[File], edition: CantonEdition)(implicit elc: ErrorLoggingContext): Either[CantonConfigError, CantonConfig]
Parses the provided files to generate a com.typesafe.config.Config, then attempts to load the com.typesafe.config.Config based on the given ClassTag.
Parses the provided files to generate a com.typesafe.config.Config, then attempts to load the com.typesafe.config.Config based on the given ClassTag. Will return an error (but not log anything) if any steps fails.
- files
config files to read, parse and merge
- returns
scala.Right of type
ConfClass
(e.g. CantonConfig)) if parsing was successful.
- def parseAndLoadOrExit(files: Seq[File], edition: CantonEdition)(implicit elc: ErrorLoggingContext = elc): CantonConfig
Parses the provided files to generate a com.typesafe.config.Config, then attempts to load the com.typesafe.config.Config based on the given ClassTag.
Parses the provided files to generate a com.typesafe.config.Config, then attempts to load the com.typesafe.config.Config based on the given ClassTag. Will log the error and exit with code 1, if any error is encountered. *
- files
config files to read - must be a non-empty Seq
- returns
scala.Right of type
ClassTag
(e.g. CantonConfig)) if parsing was successful.
- Exceptions thrown
java.lang.IllegalArgumentException
iffiles
is empty
- def parseAndMergeJustCLIConfigs(files: NonEmpty[Seq[File]])(implicit elc: ErrorLoggingContext): Either[CantonConfigError, Config]
Parses and merges the provided configuration files into a single com.typesafe.config.Config.
Parses and merges the provided configuration files into a single com.typesafe.config.Config. Does not load and merge the default config (as defined by the Lightbend config library) with the provided configuration files. Only use this if you explicitly know that you don't want to load and merge the default config.
- files
config files to read, parse and merge
- returns
scala.Right com.typesafe.config.Config if parsing was successful.
- implicit def preventAllUnknownKeys[T]: ProductHint[T]
- def renderForLoggingOnStartup(config: Config): String
Renders a configuration file such that we can write it to the log-file on startup
- def save(config: CantonConfig, filename: String, removeConfigPaths: Set[(String, Option[(String, Any)])] = Set.empty): Unit
- implicit def serverConfigProductHint[SC <: ServerConfig]: ProductHint[SC]
In the external config we use
port
for an optionally set port, while internally we store it asinternalPort
- implicit val storageConfigTypeHint: FieldCoproductHint[StorageConfig]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object ConfigReaders