c

com.digitalasset.canton.topology.client

CachingTopologySnapshot

class CachingTopologySnapshot extends TopologySnapshotLoader with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CachingTopologySnapshot
  2. TopologySnapshotLoader
  3. NamedLogging
  4. SynchronizerGovernanceSnapshotLoader
  5. VettedPackagesSnapshotLoader
  6. VettedPackagesLoader
  7. KeyTopologySnapshotClientLoader
  8. ParticipantTopologySnapshotLoader
  9. PartyTopologySnapshotLoader
  10. PartyTopologySnapshotBaseClient
  11. TopologySnapshot
  12. PartyKeyTopologySnapshotClient
  13. MembersTopologySnapshotClient
  14. SynchronizerGovernanceSnapshotClient
  15. SequencerSynchronizerStateClient
  16. MediatorSynchronizerStateClient
  17. VettedPackagesSnapshotClient
  18. KeyTopologySnapshotClient
  19. ParticipantTopologySnapshotClient
  20. BaseTopologySnapshotClient
  21. PartyTopologySnapshotClient
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CachingTopologySnapshot(parent: TopologySnapshotLoader, cachingConfigs: CachingConfigs, batchingConfig: BatchingConfig, loggerFactory: NamedLoggerFactory, futureSupervisor: FutureSupervisor)(implicit executionContext: ExecutionContext)

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. final def activeParticipantsOf(party: LfPartyId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[ParticipantId, ParticipantAttributes]]

    Returns the set of active participants the given party is represented by as of the snapshot timestamp

    Returns the set of active participants the given party is represented by as of the snapshot timestamp

    Should never return a PartyParticipantRelationship where ParticipantPermission is DISABLED.

    Definition Classes
    PartyTopologySnapshotLoader → PartyTopologySnapshotClient
  5. def activeParticipantsOfAll(parties: List[LfPartyId])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, Set[LfPartyId], Set[ParticipantId]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  6. final def activeParticipantsOfParties(parties: Seq[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[LfPartyId, Set[ParticipantId]]]

    Load the set of active participants for the given parties

    Load the set of active participants for the given parties

    Definition Classes
    PartyTopologySnapshotLoader → PartyTopologySnapshotClient
  7. final def activeParticipantsOfPartiesWithInfo(parties: Seq[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[LfPartyId, PartyInfo]]
    Definition Classes
    PartyTopologySnapshotLoader → PartyTopologySnapshotClient
  8. def allHaveActiveParticipants(parties: Set[LfPartyId], check: (ParticipantPermission) => Boolean = _ => true)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, Set[LfPartyId], Unit]
    Definition Classes
    PartyTopologySnapshotBaseClient
  9. def allHostedOn(partyIds: Set[LfPartyId], participantId: ParticipantId, permissionCheck: (ParticipantAttributes) => Boolean = _ => true)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]
    Definition Classes
    PartyTopologySnapshotBaseClient
  10. def allKeys(members: Seq[Member])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, KeyCollection]]
    Definition Classes
    CachingTopologySnapshot → KeyTopologySnapshotClientLoader
  11. def allKeys(owner: Member)(implicit traceContext: TraceContext): FutureUnlessShutdown[KeyCollection]

    abstract loading function used to obtain the full key collection for a key owner

    abstract loading function used to obtain the full key collection for a key owner

    Definition Classes
    CachingTopologySnapshot → KeyTopologySnapshotClientLoader
  12. def allMembers()(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[Member]]

    returns the set of all known members

    returns the set of all known members

    Definition Classes
    CachingTopologySnapshotMembersTopologySnapshotClient
  13. def areMembersKnown(members: Set[Member])(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[Member]]

    Convenience method to check isMemberKnown for several members.

    Convenience method to check isMemberKnown for several members.

    Definition Classes
    CachingTopologySnapshotMembersTopologySnapshotClient
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def canConfirm(participant: ParticipantId, parties: Set[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[LfPartyId]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  16. final def canNotSubmit(participant: ParticipantId, parties: Seq[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Iterable[LfPartyId]]

    Returns the subset of parties the given participant can NOT submit on behalf of

    Returns the subset of parties the given participant can NOT submit on behalf of

    Definition Classes
    PartyTopologySnapshotLoader → PartyTopologySnapshotClient
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  18. final def consortiumThresholds(parties: Set[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[LfPartyId, PositiveInt]]

    Returns the consortium thresholds (how many votes from different participants that host the consortium party are required for the confirmation to become valid).

    Returns the consortium thresholds (how many votes from different participants that host the consortium party are required for the confirmation to become valid). For normal parties returns 1.

    Definition Classes
    PartyTopologySnapshotLoader → PartyTopologySnapshotClient
  19. final def determinePackagesWithNoVettingEntry(participantId: ParticipantId, packageIds: Set[PackageId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[PackageId]]

    Checks the vetting state for the given packages and returns the packages that have no entry in the participant's VettedPackages topology transactions.

    Checks the vetting state for the given packages and returns the packages that have no entry in the participant's VettedPackages topology transactions. Note: this does not check the vetted packages for their validity period, but simply for their existence in the mapping.

    participantId

    the participant for which we want to check the package vettings

    packageIds

    the set of packages to check

    returns

    the packages that have no entry in the participant's VettedPackages mapping

    Definition Classes
    VettedPackagesSnapshotLoaderVettedPackagesSnapshotClient
  20. def encryptionKey(members: Seq[Member])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, EncryptionPublicKey]]

    returns the newest encryption public key

    returns the newest encryption public key

    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  21. def encryptionKey(owner: Member)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[EncryptionPublicKey]]

    returns newest encryption public key

    returns newest encryption public key

    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  22. def encryptionKeys(members: Seq[Member])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, Seq[EncryptionPublicKey]]]
    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  23. def encryptionKeys(owner: Member)(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[EncryptionPublicKey]]

    returns all encryption keys

    returns all encryption keys

    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  26. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  27. implicit val executionContext: ExecutionContext
  28. def findDynamicSequencingParameters()(implicit traceContext: TraceContext): FutureUnlessShutdown[Either[String, DynamicSequencingParametersWithValidity]]
  29. def findDynamicSynchronizerParameters()(implicit traceContext: TraceContext): FutureUnlessShutdown[Either[String, DynamicSynchronizerParametersWithValidity]]
  30. def findDynamicSynchronizerParametersOrDefault(protocolVersion: ProtocolVersion, warnOnUsingDefault: Boolean = true)(implicit traceContext: TraceContext): FutureUnlessShutdown[DynamicSynchronizerParameters]
  31. final def findParticipantState(participantId: ParticipantId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[ParticipantAttributes]]
    Definition Classes
    ParticipantTopologySnapshotLoader
  32. final def findUnvettedPackagesOrDependencies(participantId: ParticipantId, packages: Set[PackageId], ledgerTime: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[PackageId]]

    Returns the set of packages that are not vetted by the given participant

    Returns the set of packages that are not vetted by the given participant

    participantId

    the participant for which we want to check the package vettings

    packages

    the set of packages that should be vetted

    returns

    Right the set of unvetted packages (which is empty if all packages are vetted) Left if a package is missing locally such that we can not verify the vetting state of the package dependencies

    Definition Classes
    VettedPackagesSnapshotLoaderVettedPackagesSnapshotClient
  33. val futureSupervisor: FutureSupervisor
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  35. def hasNoConfirmer(parties: Set[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[LfPartyId]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  37. def hostedOn(partyIds: Set[LfPartyId], participantId: ParticipantId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[LfPartyId, ParticipantAttributes]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  38. def inspectKeys(filterOwner: String, filterOwnerType: Option[MemberCode], limit: Int)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, KeyCollection]]

    Returns a list of all known keys on this synchronizer

    Returns a list of all known keys on this synchronizer

    Definition Classes
    CachingTopologySnapshotKeyTopologySnapshotClient
  39. def inspectKnownParties(filterParty: String, filterParticipant: String)(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[PartyId]]

    Returns a list of all known parties on this synchronizer.

    Returns a list of all known parties on this synchronizer.

    Definition Classes
    CachingTopologySnapshotPartyTopologySnapshotClient
  40. def isHostedByAtLeastOneParticipantF(parties: Set[LfPartyId], check: (LfPartyId, ParticipantAttributes) => Boolean)(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[LfPartyId]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. def isMediatorActive(mediator: MediatorGroupRecipient)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]
  43. def isMediatorActive(mediatorId: MediatorId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]

    Returns true if

    Returns true if

    • the mediator is a member of a mediator group with num_active_sequencers >= threshold
    • the mediator has an OwnerToKeyMapping with at least 1 signing key
    Definition Classes
    MediatorSynchronizerStateClient
  44. def isMemberKnown(member: Member)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]

    Determines if a member is known on the synchronizer (through a SynchronizerTrustCertificate, MediatorSynchronizerState, or SequencerSynchronizerState).

    Determines if a member is known on the synchronizer (through a SynchronizerTrustCertificate, MediatorSynchronizerState, or SequencerSynchronizerState). Note that a "known" member is not necessarily authorized to use the synchronizer.

    Definition Classes
    CachingTopologySnapshotMembersTopologySnapshotClient
  45. def isParticipantActive(participantId: ParticipantId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]

    Checks whether the provided participant exists and is active.

    Checks whether the provided participant exists and is active. Active means:

    1. The participant has a SynchronizerTrustCertificate. 2. The synchronizer is either unrestricted or there is a ParticipantSynchronizerPermission for the participant. 3. The participant has an OwnerToKeyMapping with signing and encryption keys.
    Definition Classes
    ParticipantTopologySnapshotLoader → ParticipantTopologySnapshotClient
  46. def isParticipantActiveAndCanLoginAt(participantId: ParticipantId, timestamp: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]

    Checks whether the provided participant exists, is active and can login at the given point in time

    Checks whether the provided participant exists, is active and can login at the given point in time

    (loginAfter is before timestamp)

    Definition Classes
    ParticipantTopologySnapshotLoader → ParticipantTopologySnapshotClient
  47. def isSequencerActive(sequencerId: SequencerId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]

    Returns true if

    Returns true if

    • the sequencer is a member of the sequencer group
    • the sequencer has an OwnerToKeyMapping with at least 1 signing key
    Definition Classes
    SequencerSynchronizerStateClient
  48. def listDynamicSynchronizerParametersChanges()(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[DynamicSynchronizerParametersWithValidity]]

    List all the dynamic synchronizer parameters (past and current)

    List all the dynamic synchronizer parameters (past and current)

    Definition Classes
    CachingTopologySnapshotSynchronizerGovernanceSnapshotClient
  49. def loadActiveParticipantsOf(party: PartyId, participantStates: (Seq[ParticipantId]) => FutureUnlessShutdown[Map[ParticipantId, ParticipantAttributes]])(implicit traceContext: TraceContext): FutureUnlessShutdown[PartyInfo]
    Definition Classes
    CachingTopologySnapshot → PartyTopologySnapshotLoader
  50. def loadParticipantStates(participants: Seq[ParticipantId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[ParticipantId, ParticipantAttributes]]

    Loads the participant state for the given set of participant ids.

    Loads the participant state for the given set of participant ids. The result covers only active participants, i.e., only participants with SynchronizerTrustCertificates, ParticipantSynchronizerPermission (if the synchronizer is restricted), and signing and encryption keys.

    Definition Classes
    CachingTopologySnapshot → ParticipantTopologySnapshotLoader
  51. def loadVettedPackages(participants: Seq[ParticipantId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[ParticipantId, Map[PackageId, VettedPackage]]]
  52. def loadVettedPackages(participant: ParticipantId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[PackageId, VettedPackage]]
  53. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  54. val loggerFactory: NamedLoggerFactory
  55. def mediatorGroup(index: MediatorGroupIndex)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[MediatorGroup]]
  56. def mediatorGroups()(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[MediatorGroup]]

    returns the list of currently known mediators

    returns the list of currently known mediators

    Definition Classes
    CachingTopologySnapshotMediatorSynchronizerStateClient
  57. def mediatorGroupsOfAll(groups: Seq[MediatorGroupIndex])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, Seq[MediatorGroupIndex], Seq[MediatorGroup]]
  58. def memberFirstKnownAt(member: Member)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[(SequencedTime, EffectiveTime)]]
  59. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  60. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  61. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  62. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  63. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  64. def partyAuthorization(party: PartyId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[PartyAuthorizationInfo]]

    returns authorization information for the party, including signing keys and threshold

    returns authorization information for the party, including signing keys and threshold

    Definition Classes
    CachingTopologySnapshotPartyKeyTopologySnapshotClient
  65. def referenceTime: CantonTimestamp

    Internally used reference time (representing when the last change happened that affected this snapshot)

    Internally used reference time (representing when the last change happened that affected this snapshot)

    Definition Classes
    BaseTopologySnapshotClient
  66. def sequencerGroup()(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[SequencerGroup]]

    returns the sequencer group if known

    returns the sequencer group if known

    Definition Classes
    CachingTopologySnapshotSequencerSynchronizerStateClient
  67. def signingKeys(members: Seq[Member], filterUsage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, Seq[SigningPublicKey]]]
    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  68. def signingKeys(owner: Member, filterUsage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[SigningPublicKey]]

    Retrieves the signing keys for a given owner, filtering them based on the provided usage set.

    Retrieves the signing keys for a given owner, filtering them based on the provided usage set.

    owner

    The owner whose signing keys are being queried.

    filterUsage

    A non-empty set of usages to filter the signing keys by. At least one usage from this set must match with the key's usage.

    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  69. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  70. def timestamp: CantonTimestamp

    The official timestamp corresponding to this snapshot

    The official timestamp corresponding to this snapshot

    Definition Classes
    CachingTopologySnapshotBaseTopologySnapshotClient
  71. def toString(): String
    Definition Classes
    AnyRef → Any
  72. def trafficControlParameters(protocolVersion: ProtocolVersion, warnOnUsingDefault: Boolean = true)(implicit tc: TraceContext): FutureUnlessShutdown[Option[TrafficControlParameters]]
  73. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  75. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 TopologySnapshotLoader

Inherited from NamedLogging

Inherited from VettedPackagesLoader

Inherited from KeyTopologySnapshotClientLoader

Inherited from ParticipantTopologySnapshotLoader

Inherited from PartyTopologySnapshotLoader

Inherited from PartyTopologySnapshotBaseClient

Inherited from TopologySnapshot

Inherited from AnyRef

Inherited from Any

Ungrouped