c

com.digitalasset.canton.participant.sync

SyncPersistentStateManager

class SyncPersistentStateManager extends SyncPersistentStateLookup with StaticSynchronizerParametersGetter with AutoCloseable with NamedLogging

Manages participant-relevant state for a synchronizer that needs to survive reconnects

Factory for com.digitalasset.canton.participant.store.SyncPersistentState. Tries to discover existing persistent states or create new ones and checks consistency of synchronizer parameters and unique contract key synchronizers

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SyncPersistentStateManager
  2. NamedLogging
  3. AutoCloseable
  4. StaticSynchronizerParametersGetter
  5. SyncPersistentStateLookup
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SyncPersistentStateManager(participantId: ParticipantId, aliasResolution: SynchronizerAliasResolution, storage: Storage, indexedStringStore: IndexedStringStore, acsCounterParticipantConfigStore: AcsCounterParticipantConfigStore, parameters: ParticipantNodeParameters, synchronizerConnectionConfigStore: SynchronizerConnectionConfigStore, synchronizerCryptoFactory: (StaticSynchronizerParameters) => SynchronizerCrypto, clock: Clock, packageDependencyResolver: PackageDependencyResolver, ledgerApiStore: Eval[LedgerApiStore], contractStore: Eval[ContractStore], futureSupervisor: FutureSupervisor, loggerFactory: NamedLoggerFactory)(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. def acsCommitmentStore(synchronizerId: SynchronizerId): Option[AcsCommitmentStore]
  5. def acsCommitmentStore(synchronizerAlias: SynchronizerAlias): Option[AcsCommitmentStore]
    Definition Classes
    SyncPersistentStateLookup
  6. def acsInspection(synchronizerId: SynchronizerId): Option[AcsInspection]
  7. def acsInspection(synchronizerAlias: SynchronizerAlias): Option[AcsInspection]
    Definition Classes
    SyncPersistentStateLookup
  8. def activeContractStore(synchronizerId: SynchronizerId): Option[ActiveContractStore]
  9. def activeContractStore(synchronizerAlias: SynchronizerAlias): Option[ActiveContractStore]
    Definition Classes
    SyncPersistentStateLookup
  10. def aliasForSynchronizerId(synchronizerId: SynchronizerId): Option[SynchronizerAlias]
  11. def allKnownLSIds: Set[SynchronizerId]
    Definition Classes
    SyncPersistentStateLookup
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  14. def close(): Unit
    Definition Classes
    SyncPersistentStateManager → AutoCloseable
  15. def connectionConfig(psid: PhysicalSynchronizerId): Option[StoredSynchronizerConnectionConfig]
  16. val contractStore: Eval[ContractStore]
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  20. def get(psid: PhysicalSynchronizerId): Option[SyncPersistentState]
  21. def getAll: Map[PhysicalSynchronizerId, SyncPersistentState]
  22. def getAllFor(id: SynchronizerId): Seq[SyncPersistentState]
  23. def getAllLatest: Map[SynchronizerId, SyncPersistentState]

    Return the latest com.digitalasset.canton.participant.store.SyncPersistentState (wrt to com.digitalasset.canton.topology.PhysicalSynchronizerId) for each com.digitalasset.canton.topology.SynchronizerId

  24. def getAllLogical: Map[SynchronizerId, LogicalSyncPersistentState]

    Return the com.digitalasset.canton.participant.store.LogicalSyncPersistentState for all com.digitalasset.canton.topology.SynchronizerId

  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  26. def getLatest(synchronizerAlias: SynchronizerAlias): Option[SyncPersistentState]

    Return the latest com.digitalasset.canton.participant.store.SyncPersistentState (wrt to com.digitalasset.canton.topology.PhysicalSynchronizerId) for synchronizerAlias

  27. def getPhysicalSynchronizerIdx(synchronizerId: PhysicalSynchronizerId): FutureUnlessShutdown[IndexedPhysicalSynchronizer]
  28. def getSynchronizerIdx(synchronizerId: SynchronizerId): FutureUnlessShutdown[IndexedSynchronizer]
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  30. val indexedStringStore: IndexedStringStore
  31. def initializePersistentStates()(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    Creates com.digitalasset.canton.participant.store.SyncPersistentStates for all known synchronizer aliases provided that the synchronizer parameters and a sequencer offset are known.

    Creates com.digitalasset.canton.participant.store.SyncPersistentStates for all known synchronizer aliases provided that the synchronizer parameters and a sequencer offset are known. Does not check for unique contract key synchronizer constraints. Must not be called concurrently with itself or other methods of this class.

  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def latestKnownPSId(synchronizerId: SynchronizerId): Option[PhysicalSynchronizerId]

    Return the latest com.digitalasset.canton.topology.PhysicalSynchronizerId known for the given com.digitalasset.canton.topology.SynchronizerId.

    Return the latest com.digitalasset.canton.topology.PhysicalSynchronizerId known for the given com.digitalasset.canton.topology.SynchronizerId.

    Use cases are:

    • submission of a transaction (phase 1)
    • repair service
    • inspection services
    Definition Classes
    SyncPersistentStateManagerStaticSynchronizerParametersGetterSyncPersistentStateLookup
  34. def latestKnownProtocolVersion(synchronizerId: SynchronizerId): Option[ProtocolVersion]

    Return the latest com.digitalasset.canton.version.ProtocolVersion known for the given com.digitalasset.canton.topology.SynchronizerId.

    Return the latest com.digitalasset.canton.version.ProtocolVersion known for the given com.digitalasset.canton.topology.SynchronizerId.

    Use cases are:

    • submission of a transaction (phase 1)
    • repair service
    • inspection services
    Definition Classes
    StaticSynchronizerParametersGetter
  35. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  36. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    SyncPersistentStateManagerNamedLogging
  37. def lookupOrCreatePersistentState(synchronizerAlias: SynchronizerAlias, physicalSynchronizerIdx: IndexedPhysicalSynchronizer, synchronizerIdx: IndexedSynchronizer, synchronizerParameters: StaticSynchronizerParameters)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SynchronizerRegistryError, SyncPersistentState]

    Retrieves the com.digitalasset.canton.participant.store.SyncPersistentState from the com.digitalasset.canton.participant.sync.SyncPersistentStateManager for the given synchronizer if there is one.

    Retrieves the com.digitalasset.canton.participant.store.SyncPersistentState from the com.digitalasset.canton.participant.sync.SyncPersistentStateManager for the given synchronizer if there is one. Otherwise creates a new com.digitalasset.canton.participant.store.SyncPersistentState for the synchronizer and registers it with the com.digitalasset.canton.participant.sync.SyncPersistentStateManager. Checks that the com.digitalasset.canton.protocol.StaticSynchronizerParameters are the same as what has been persisted (if so) and enforces the unique contract key synchronizer constraints.

    Must not be called concurrently with itself or other methods of this class.

  38. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  43. def reassignmentStore(synchronizerId: SynchronizerId): Option[ReassignmentStore]
  44. def reassignmentStore(synchronizerAlias: SynchronizerAlias): Option[ReassignmentStore]
    Definition Classes
    SyncPersistentStateLookup
  45. def staticSynchronizerParameters(synchronizerId: PhysicalSynchronizerId): Option[StaticSynchronizerParameters]
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def synchronizerIdForAlias(synchronizerAlias: SynchronizerAlias): Option[SynchronizerId]
  48. def synchronizerIdsForAlias(synchronizerAlias: SynchronizerAlias): Option[NonEmpty[Set[PhysicalSynchronizerId]]]
  49. def synchronizerTopologyStateInitFor(synchronizerId: PhysicalSynchronizerId, participantId: ParticipantId)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SynchronizerRegistryError, Option[SynchronizerTopologyInitializationCallback]]
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. def topologyFactoryFor(psid: PhysicalSynchronizerId): Option[TopologyComponentFactory]
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. 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 NamedLogging

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped