c

com.digitalasset.canton.topology.client

StoreBasedTopologySnapshot

class StoreBasedTopologySnapshot extends TopologySnapshotLoader with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StoreBasedTopologySnapshot
  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 StoreBasedTopologySnapshot(timestamp: CantonTimestamp, store: TopologyStore[TopologyStoreId], packageDependencyResolver: PackageDependencyResolverUS, loggerFactory: NamedLoggerFactory)(implicit executionContext: ExecutionContext)

    timestamp

    the asOf timestamp to use

    store

    the db store to use

    packageDependencyResolver

    provides a way determine the direct and indirect package dependencies

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
    StoreBasedTopologySnapshot → 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
    StoreBasedTopologySnapshot → KeyTopologySnapshotClientLoader
  12. def allMembers()(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[Member]]

    Convenience method to determine all members with isMemberKnown.

    Convenience method to determine all members with isMemberKnown.

    Definition Classes
    StoreBasedTopologySnapshotMembersTopologySnapshotClient
  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
    StoreBasedTopologySnapshotMembersTopologySnapshotClient
  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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  34. def hasNoConfirmer(parties: Set[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[LfPartyId]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  36. def hostedOn(partyIds: Set[LfPartyId], participantId: ParticipantId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[LfPartyId, ParticipantAttributes]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  37. def inspectKeys(filterOwner: String, filterOwnerType: Option[MemberCode], limit: Int)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, KeyCollection]]

    Returns a list of owner's keys (at most limit)

    Returns a list of owner's keys (at most limit)

    Definition Classes
    StoreBasedTopologySnapshotKeyTopologySnapshotClient
  38. 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
    StoreBasedTopologySnapshotPartyTopologySnapshotClient
  39. def isHostedByAtLeastOneParticipantF(parties: Set[LfPartyId], check: (LfPartyId, ParticipantAttributes) => Boolean)(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[LfPartyId]]
    Definition Classes
    PartyTopologySnapshotBaseClient
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def isMediatorActive(mediator: MediatorGroupRecipient)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]
  42. 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
  43. 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
    StoreBasedTopologySnapshotMembersTopologySnapshotClient
  44. 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
  45. 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
  46. 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
  47. 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
    StoreBasedTopologySnapshotSynchronizerGovernanceSnapshotClient
  48. 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
    StoreBasedTopologySnapshot → ParticipantTopologySnapshotLoader
  49. def loadVettedPackages(participants: Seq[ParticipantId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[ParticipantId, Map[PackageId, VettedPackage]]]
  50. def loadVettedPackages(participant: ParticipantId)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[PackageId, VettedPackage]]
  51. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  52. val loggerFactory: NamedLoggerFactory
  53. def mediatorGroup(index: MediatorGroupIndex)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[MediatorGroup]]
  54. def mediatorGroups()(implicit traceContext: TraceContext): FutureUnlessShutdown[Seq[MediatorGroup]]

    returns the list of currently known mediator groups

    returns the list of currently known mediator groups

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

    returns party authorization info for a party

    returns party authorization info for a party

    Definition Classes
    StoreBasedTopologySnapshotPartyKeyTopologySnapshotClient
  63. 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
  64. def sequencerGroup()(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[SequencerGroup]]

    The returned sequencer group contains all sequencers that

    The returned sequencer group contains all sequencers that

    • are mentioned in the SequencerSynchronizerState topology transaction and
    • have at least 1 signing key
    Definition Classes
    StoreBasedTopologySnapshotSequencerSynchronizerStateClient
  65. def signingKeys(members: Seq[Member], filterUsage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[Member, Seq[SigningPublicKey]]]
    Definition Classes
    KeyTopologySnapshotClientLoader → KeyTopologySnapshotClient
  66. 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
  67. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  68. val timestamp: CantonTimestamp

    The official timestamp corresponding to this snapshot

    The official timestamp corresponding to this snapshot

    Definition Classes
    StoreBasedTopologySnapshotBaseTopologySnapshotClient
  69. def toString(): String
    Definition Classes
    AnyRef → Any
  70. def trafficControlParameters(protocolVersion: ProtocolVersion, warnOnUsingDefault: Boolean = true)(implicit tc: TraceContext): FutureUnlessShutdown[Option[TrafficControlParameters]]
  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  73. 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