Packages

final case class CantonConfig(sequencers: Map[InstanceName, SequencerNodeConfig] = Map.empty, mediators: Map[InstanceName, MediatorNodeConfig] = Map.empty, participants: Map[InstanceName, ParticipantNodeConfig] = Map.empty, remoteSequencers: Map[InstanceName, RemoteSequencerConfig] = Map.empty, remoteMediators: Map[InstanceName, RemoteMediatorConfig] = Map.empty, remoteParticipants: Map[InstanceName, RemoteParticipantConfig] = Map.empty, monitoring: MonitoringConfig = MonitoringConfig(), parameters: CantonParameters = CantonParameters(), features: CantonFeatures = CantonFeatures()) extends UniformCantonConfigValidation with ConfigDefaults[DefaultPorts, CantonConfig] with Product with Serializable

Root configuration parameters for a single Canton process.

sequencers

All locally running sequencers that this Canton process can connect and operate on.

mediators

All locally running mediators that this Canton process can connect and operate on.

participants

All locally running participants that this Canton process can connect and operate on.

remoteSequencers

All remotely running sequencers that this Canton process can connect and operate on.

remoteMediators

All remotely running mediators that this Canton process can connect and operate on.

remoteParticipants

All remotely running participants to which the console can connect and operate on.

monitoring

determines how this Canton process can be monitored

parameters

per-environment parameters to control enabled features and set testing parameters

features

control which features are enabled

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CantonConfig
  2. Serializable
  3. Product
  4. Equals
  5. ConfigDefaults
  6. UniformCantonConfigValidation
  7. CustomCantonConfigValidation
  8. CantonConfigValidation
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CantonConfig(sequencers: Map[InstanceName, SequencerNodeConfig] = Map.empty, mediators: Map[InstanceName, MediatorNodeConfig] = Map.empty, participants: Map[InstanceName, ParticipantNodeConfig] = Map.empty, remoteSequencers: Map[InstanceName, RemoteSequencerConfig] = Map.empty, remoteMediators: Map[InstanceName, RemoteMediatorConfig] = Map.empty, remoteParticipants: Map[InstanceName, RemoteParticipantConfig] = Map.empty, monitoring: MonitoringConfig = MonitoringConfig(), parameters: CantonParameters = CantonParameters(), features: CantonFeatures = CantonFeatures())

    sequencers

    All locally running sequencers that this Canton process can connect and operate on.

    mediators

    All locally running mediators that this Canton process can connect and operate on.

    participants

    All locally running participants that this Canton process can connect and operate on.

    remoteSequencers

    All remotely running sequencers that this Canton process can connect and operate on.

    remoteMediators

    All remotely running mediators that this Canton process can connect and operate on.

    remoteParticipants

    All remotely running participants to which the console can connect and operate on.

    monitoring

    determines how this Canton process can be monitored

    parameters

    per-environment parameters to control enabled features and set testing parameters

    features

    control which features are enabled

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def allNodes: Map[InstanceName, LocalNodeConfig]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asSingleNode(instanceName: InstanceName): CantonConfig

    reduces the configuration into a single node configuration (used for external testing)

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def doValidate(edition: CantonEdition): Seq[CantonConfigValidationError]

    Returns all validation errors that are specific to this Canton configuration class.

    Returns all validation errors that are specific to this Canton configuration class. Successful validation should return an empty sequence.

    Validation errors of subconfigurations should not be reported by this method, but via the type class derivation.

    Attributes
    protected
    Definition Classes
    UniformCantonConfigValidationCustomCantonConfigValidation
  9. def dumpString: String

    renders the config as a string (used for dumping config for diagnostic purposes)

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val features: CantonFeatures
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val mediators: Map[InstanceName, MediatorNodeConfig]
  15. def mediatorsByString: Map[String, MediatorNodeConfig]

    Use mediators instead!

  16. def mergeDynamicChanges(newConfig: CantonConfig): CantonConfig
  17. val monitoring: MonitoringConfig
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def nodeParametersFor[A](cachedNodeParameters: Map[InstanceName, A], kind: String, name: InstanceName): A
    Attributes
    protected
  20. def nodePortsDescription(nodeName: InstanceName, portDescriptions: Seq[String]): String
    Attributes
    protected
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. val parameters: CantonParameters
  24. val participants: Map[InstanceName, ParticipantNodeConfig]
  25. def participantsByString: Map[String, ParticipantNodeConfig]

    Use participants instead!

  26. lazy val portDescription: String

    Produces a message in the structure "da:admin-api=1,public-api=2;participant1:admin-api=3,ledger-api=4".

    Produces a message in the structure "da:admin-api=1,public-api=2;participant1:admin-api=3,ledger-api=4". Helpful for diagnosing port already bound issues during tests. Allows any config value to be be null (can happen with invalid configs or config stubbed in tests)

  27. def portDescriptionFromConfig[C](config: C)(apiNamesAndExtractors: Seq[(String, (C) => ServerConfig)]): Seq[String]
    Attributes
    protected
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val remoteMediators: Map[InstanceName, RemoteMediatorConfig]
  30. def remoteMediatorsByString: Map[String, RemoteMediatorConfig]

    Use remoteMediators instead!

  31. val remoteParticipants: Map[InstanceName, RemoteParticipantConfig]
  32. def remoteParticipantsByString: Map[String, RemoteParticipantConfig]

    Use remoteParticipants instead!

  33. val remoteSequencers: Map[InstanceName, RemoteSequencerConfig]
  34. def remoteSequencersByString: Map[String, RemoteSequencerConfig]

    Use remoteSequencers instead!

  35. val sequencers: Map[InstanceName, SequencerNodeConfig]
  36. def sequencersByString: Map[String, SequencerNodeConfig]

    Use sequencers instead!

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def validate(edition: CantonEdition): Validated[NonEmpty[Seq[String]], Unit]

    run a validation on the current config and return possible warning messages

  39. final def validate[T >: CantonConfig.this.type](edition: CantonEdition)(implicit validator: CantonConfigValidator[T]): Either[NonEmpty[Seq[CantonConfigValidationError]], Unit]
    Definition Classes
    CantonConfigValidation
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. def withDefaults(defaults: DefaultPorts, edition: CantonEdition): CantonConfig

    Returns this configuration with defaults set for the given edition if necessary.

    Returns this configuration with defaults set for the given edition if necessary.

    Definition Classes
    CantonConfigConfigDefaults

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CantonConfigValidation

Inherited from AnyRef

Inherited from Any

Ungrouped