com.digitalasset.canton.participant.admin.inspection
SyncStateInspection
Companion object SyncStateInspection
final class SyncStateInspection extends NamedLogging
Implements inspection functions for the sync state of a participant node
- Alphabetic
- By Inheritance
- SyncStateInspection
- NamedLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SyncStateInspection(syncPersistentStateManager: SyncPersistentStateManager, participantNodePersistentState: Eval[ParticipantNodePersistentState], timeouts: ProcessingTimeout, journalCleaningControl: JournalGarbageCollectorControl, connectedSynchronizersLookup: ConnectedSynchronizersLookup, syncCrypto: SyncCryptoApiParticipantProvider, participantId: ParticipantId, futureSupervisor: FutureSupervisor, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def acceptedTransactionCount(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Int
- def acsPruningStatus(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Option[PruningStatus]
- Annotations
- @VisibleForTesting()
- def activeContractsStakeholdersFilter(synchronizerId: SynchronizerId, toc: TimeOfChange, parties: Set[LfPartyId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Set[(SerializableContract, ReassignmentCounter)]]
- def addOrUpdateConfigsForSlowCounterParticipants(configs: Seq[ConfigForSlowCounterParticipants], thresholds: Seq[ConfigForSynchronizerThresholds])(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]
- def allProtocolVersions: Map[SynchronizerId, ProtocolVersion]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bufferedCommitments(synchronizerAlias: SynchronizerAlias, endAtOrBefore: CantonTimestamp)(implicit traceContext: TraceContext): Iterable[AcsCommitment]
- def cleanSequencedEventStoreAboveCleanSynchronizerIndex(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def contractCount(implicit traceContext: TraceContext): FutureUnlessShutdown[Int]
- def contractCountInAcs(synchronizerAlias: SynchronizerAlias, timestamp: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[Int]]
- def countInFlight(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, String, InFlightCount]
- def crossSynchronizerReceivedCommitmentMessages(synchronizerPeriods: Seq[SynchronizerSearchCommitmentPeriod], counterParticipants: Seq[ParticipantId], states: Seq[CommitmentPeriodState], verbose: Boolean)(implicit traceContext: TraceContext): Either[String, Iterable[ReceivedAcsCommitment]]
- def crossSynchronizerSentCommitmentMessages(synchronizerPeriods: Seq[SynchronizerSearchCommitmentPeriod], counterParticipants: Seq[ParticipantId], states: Seq[CommitmentPeriodState], verbose: Boolean)(implicit traceContext: TraceContext): Either[String, Iterable[SentAcsCommitment]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- def exportAcsDumpActiveContracts(outputStream: OutputStream, filterSynchronizerId: (SynchronizerId) => Boolean, parties: Set[LfPartyId], timestamp: Option[CantonTimestamp], contractSynchronizerRenames: Map[SynchronizerId, (SynchronizerId, ProtocolVersion)], skipCleanTimestampCheck: Boolean, partiesOffboarding: Boolean)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, AcsInspectionError, Unit]
- def findAcs(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SyncStateInspectionError, Map[LfContractId, (TimeOfChange, ReassignmentCounter)]]
Returns the potentially large ACS of a given synchronizer containing a map of contract IDs to tuples containing the latest activation timestamp and the contract reassignment counter
- def findAllKnownParticipants(synchronizerFilter: Seq[SynchronizerId] = Seq.empty, participantFilter: Seq[ParticipantId] = Seq.empty)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[SynchronizerId, Set[ParticipantId]]]
- def findComputedCommitments(synchronizerAlias: SynchronizerAlias, start: CantonTimestamp, end: CantonTimestamp, counterParticipant: Option[ParticipantId] = None)(implicit traceContext: TraceContext): Iterable[(CommitmentPeriod, ParticipantId, HashedCommitmentType)]
- def findContractPayloads(synchronizerId: SynchronizerId, contractIds: Seq[LfContractId], limit: Int)(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[LfContractId, SerializableContract]]
- def findContracts(synchronizerAlias: SynchronizerAlias, exactId: Option[String], filterPackage: Option[String], filterTemplate: Option[String], limit: Int)(implicit traceContext: TraceContext): List[(Boolean, SerializableContract)]
searches the pcs and returns the contract and activeness flag
- def findLastComputedAndSent(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Option[CantonTimestampSecond]
- def findMessage(synchronizerAlias: SynchronizerAlias, criterion: SearchCriterion)(implicit traceContext: TraceContext): Option[ParsingResult[PossiblyIgnoredProtocolEvent]]
- Annotations
- @VisibleForTesting()
- def findMessages(synchronizerAlias: SynchronizerAlias, from: Option[Instant], to: Option[Instant], limit: Option[Int])(implicit traceContext: TraceContext): Seq[ParsingResult[PossiblyIgnoredProtocolEvent]]
- def findReceivedCommitments(synchronizerAlias: SynchronizerAlias, start: CantonTimestamp, end: CantonTimestamp, counterParticipant: Option[ParticipantId] = None)(implicit traceContext: TraceContext): Iterable[SignedProtocolMessage[AcsCommitment]]
- def getAcsInspection(synchronizerId: SynchronizerId): Option[AcsInspection]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getConfigsForSlowCounterParticipants()(implicit traceContext: TraceContext): FutureUnlessShutdown[(Seq[ConfigForSlowCounterParticipants], Seq[ConfigForSynchronizerThresholds])]
- def getIntervalsBehindForParticipants(synchronizers: Seq[SynchronizerId], participants: Seq[ParticipantId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Iterable[CounterParticipantIntervalsBehind]]
- def getOffsetByTime(pruneUpTo: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[Long]]
- def getProtocolVersion(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): FutureUnlessShutdown[ProtocolVersion]
- def getSequencerChannelClient(synchronizerId: SynchronizerId): Option[SequencerChannelClient]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastSynchronizerOffset(synchronizerId: SynchronizerId)(implicit traceContext: TraceContext): Option[SynchronizerOffset]
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- SyncStateInspection → NamedLogging
- def lookupCleanSequencerCounter(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Either[String, FutureUnlessShutdown[Option[SequencerCounter]]]
- def lookupCleanSynchronizerIndex(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Either[String, FutureUnlessShutdown[Option[SynchronizerIndex]]]
- def lookupCleanTimeOfRequest(synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Either[String, FutureUnlessShutdown[Option[TimeOfRequest]]]
Returns the last clean time of request of the specified synchronizer from the indexer's point of view.
Returns the last clean time of request of the specified synchronizer from the indexer's point of view.
- Annotations
- @VisibleForTesting()
- def lookupContractSynchronizers(contractIds: Set[LfContractId])(implicit traceContext: TraceContext): FutureUnlessShutdown[Map[SynchronizerId, SortedMap[LfContractId, Seq[(CantonTimestamp, ActivenessChangeDetail)]]]]
Look up all unpruned state changes of a set of contracts on all synchronizers.
Look up all unpruned state changes of a set of contracts on all synchronizers. If a contract is not found in an available ACS it will be omitted from the response.
- def lookupPublicationTime(ledgerOffset: Long)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, String, CantonTimestamp]
- def lookupReassignmentIds(targetSynchronizerId: SynchronizerId, sourceSynchronizerId: SynchronizerId, contractIds: Seq[LfContractId], minUnassignmentTs: Option[CantonTimestamp] = None, minCompletionTs: Option[CantonTimestamp] = None)(implicit traceContext: TraceContext): Map[LfContractId, Seq[ReassignmentId]]
- implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noOutstandingCommitmentsTs(synchronizerAlias: SynchronizerAlias, beforeOrAt: CantonTimestamp)(implicit traceContext: TraceContext): Option[CantonTimestamp]
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def onlyForTestingMoveLedgerEndBackToScratch()(implicit traceContext: TraceContext): Unit
- def outstandingCommitments(synchronizerAlias: SynchronizerAlias, start: CantonTimestamp, end: CantonTimestamp, counterParticipant: Option[ParticipantId])(implicit traceContext: TraceContext): Iterable[(CommitmentPeriod, ParticipantId, CommitmentPeriodState)]
- def prunedUptoOffset(implicit traceContext: TraceContext): Option[Offset]
- def requestJournalSize(synchronizerAlias: SynchronizerAlias, start: CantonTimestamp = CantonTimestamp.Epoch, end: Option[CantonTimestamp] = None)(implicit traceContext: TraceContext): Option[UnlessShutdown[Int]]
- def requestStateInJournal(rc: RequestCounter, synchronizerAlias: SynchronizerAlias)(implicit traceContext: TraceContext): Either[String, FutureUnlessShutdown[Option[RequestData]]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifyLapiStoreIntegrity()(implicit traceContext: TraceContext): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])