c

com.digitalasset.canton.participant.sync

SyncPersistentStateManager

class SyncPersistentStateManager extends SyncPersistentStateLookup 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. SyncPersistentStateLookup
  5. AnyRef
  6. 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, crypto: Crypto, 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 aliasForSynchronizerId(synchronizerId: SynchronizerId): Option[SynchronizerAlias]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def close(): Unit
    Definition Classes
    SyncPersistentStateManager → AutoCloseable
  8. val contractStore: Eval[ContractStore]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  12. def get(synchronizerId: SynchronizerId): Option[SyncPersistentState]
  13. def getAll: Map[SynchronizerId, SyncPersistentState]
  14. def getByAlias(synchronizerAlias: SynchronizerAlias): Option[SyncPersistentState]
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. val indexedStringStore: IndexedStringStore
  18. def indexedSynchronizerId(synchronizerId: SynchronizerId): FutureUnlessShutdown[IndexedSynchronizer]
  19. 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.

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  22. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    SyncPersistentStateManagerNamedLogging
  23. def lookupOrCreatePersistentState(synchronizerAlias: SynchronizerAlias, indexedSynchronizer: 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.

  24. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  29. def protocolVersionFor(synchronizerId: SynchronizerId): Option[ProtocolVersion]
  30. def staticSynchronizerParameters(synchronizerId: SynchronizerId): Option[StaticSynchronizerParameters]
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def synchronizerIdForAlias(synchronizerAlias: SynchronizerAlias): Option[SynchronizerId]
  33. def synchronizerTopologyStateInitFor(synchronizerId: SynchronizerId, participantId: ParticipantId)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SynchronizerRegistryError, Option[SynchronizerTopologyInitializationCallback]]
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def topologyFactoryFor(synchronizerId: SynchronizerId, protocolVersion: ProtocolVersion): Option[TopologyComponentFactory]
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. 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