Packages

c

com.digitalasset.canton.console.commands

LocalParticipantPruningAdministrationGroup

class LocalParticipantPruningAdministrationGroup extends ParticipantPruningAdministrationGroup with NoTracing

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalParticipantPruningAdministrationGroup
  2. NoTracing
  3. ParticipantPruningAdministrationGroup
  4. FeatureFlagFilter
  5. NamedLogging
  6. PruningSchedulerAdministration
  7. Helpful
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LocalParticipantPruningAdministrationGroup(runner: AdminCommandRunner with LedgerApiCommandRunner with BaseInspection[ParticipantNode], consoleEnvironment: ConsoleEnvironment, loggerFactory: NamedLoggerFactory)

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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cantonConfig: CantonConfig
    Attributes
    protected
    Definition Classes
    FeatureFlagFilter
  6. def check[T](flag: FeatureFlag)(command: => T): T
    Attributes
    protected
    Definition Classes
    FeatureFlagFilter
  7. def clear_schedule(): Unit
    Definition Classes
    PruningSchedulerAdministration
    Annotations
    @Summary(s = "Deactivate automatic pruning.", flag = console.this.Help.Summary.<init>$default$2)
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. val consoleEnvironment: ConsoleEnvironment
    Attributes
    protected
    Definition Classes
    PruningSchedulerAdministration
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  13. def find_safe_offset(beforeOrAt: Instant = Instant.now()): Option[LedgerOffset]
    Annotations
    @Summary(s = "Return the highest participant ledger offset whose record time is before or at the given one (if any) at which pruning is safely possible", flag = FeatureFlag.Preview)
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def get_offset_by_time(upToInclusive: Instant): Option[LedgerOffset]
    Definition Classes
    ParticipantPruningAdministrationGroup
    Annotations
    @Summary(s = "Identify the participant ledger offset to prune up to based on the specified timestamp.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """Return the largest participant ledger offset that has been processed before or at the specified timestamp.
    |The time is measured on the participant's local clock at some point while the participant has processed the
    |the event. Returns ``None`` if no such offset exists.
    """
    )
  16. def get_schedule(): Option[PruningSchedule]
    Definition Classes
    PruningSchedulerAdministration
    Annotations
    @Summary(s = "Inspect the automatic pruning schedule.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """The schedule consists of a "cron" expression and "max_duration" and "retention" durations. The cron string
    |indicates the points in time at which pruning should begin in the GMT time zone, and the maximum duration
    |indicates how long from the start time pruning is allowed to run as long as pruning has not finished pruning
    |up to the specified retention period.
    |Returns `None` if no schedule has been configured via `set_schedule` or if `clear_schedule` has been invoked.
    """
    )
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def help(methodName: String)(implicit consoleEnvironment: ConsoleEnvironment): Unit
    Definition Classes
    Helpful
    Annotations
    @Summary(s = "Help for specific commands (use help() or help(\"method\") for more information)", flag = console.this.Help.Summary.<init>$default$2) @Topic(t = Seq("Top-level Commands"))
  19. def help()(implicit consoleEnvironment: ConsoleEnvironment): Unit
    Definition Classes
    Helpful
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def locate_offset(n: Long): LedgerOffset
    Definition Classes
    ParticipantPruningAdministrationGroup
    Annotations
    @Summary(s = "Identify the participant ledger offset to prune up to.", flag = FeatureFlag.Preview) @Description(s = """Return the participant ledger offset that corresponds to pruning "n" number of transactions
    |from the beginning of the ledger. Errors if the ledger holds less than "n" transactions. Specifying "n" of 1
    |returns the offset of the first transaction (if the ledger is non-empty).
    """
    )
  22. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  23. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    PruningSchedulerAdministration
  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
    @native() @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. def prune(pruneUpTo: LedgerOffset): Unit
    Definition Classes
    ParticipantPruningAdministrationGroup
    Annotations
    @Summary(s = "Prune the ledger up to the specified offset inclusively.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """Prunes the participant ledger up to the specified offset inclusively returning ``Unit`` if the ledger has been
    |successfully pruned.
    |Note that upon successful pruning, subsequent attempts to read transactions via ``ledger_api.transactions.flat`` or
    |``ledger_api.transactions.trees`` or command completions via ``ledger_api.completions.list`` by specifying a begin offset
    |lower than the returned pruning offset will result in a ``NOT_FOUND`` error.
    |In the Enterprise Edition, ``prune`` performs a "full prune" freeing up significantly more space and also
    |performs additional safety checks returning a ``NOT_FOUND`` error if ``pruneUpTo`` is higher than the
    |offset returned by ``find_safe_offset`` on any domain with events preceding the pruning offset."""
    )
  30. def prune_internally(pruneUpTo: LedgerOffset): Unit
    Definition Classes
    ParticipantPruningAdministrationGroup
    Annotations
    @Summary(s = "Prune only internal ledger state up to the specified offset inclusively.", flag = FeatureFlag.Preview) @Description(s = """Special-purpose variant of the ``prune`` command only available in the Enterprise Edition that prunes only partial,
    |internal participant ledger state freeing up space not needed for serving ``ledger_api.transactions``
    |and ``ledger_api.completions`` requests. In conjunction with ``prune``, ``prune_internally`` enables pruning
    |internal ledger state more aggressively than externally observable data via the ledger api. In most use cases
    |``prune`` should be used instead. Unlike ``prune``, ``prune_internally`` has no visible effect on the Ledger API.
    |The command returns ``Unit`` if the ledger has been successfully pruned or an error if the timestamp
    |performs additional safety checks returning a ``NOT_FOUND`` error if ``pruneUpTo`` is higher than the
    |offset returned by ``find_safe_offset`` on any domain with events preceding the pruning offset."""
    )
  31. def set_cron(cron: String): Unit
    Definition Classes
    PruningSchedulerAdministration
    Annotations
    @Summary(s = "Modify the cron used by automatic pruning.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """The schedule is specified in cron format and refers to pruning start times in the GMT time zone.
    |This call returns an error if no schedule has been configured via `set_schedule` or if automatic
    |pruning has been disabled via `clear_schedule`. Additionally if at the time of this modification, pruning is
    |actively running, a best effort is made to pause pruning and restart according to the new schedule. This
    |allows for the case that the new schedule no longer allows pruning at the current time.
    """
    )
  32. def set_max_duration(maxDuration: PositiveDurationSeconds): Unit
    Definition Classes
    PruningSchedulerAdministration
    Annotations
    @Summary(s = "Modify the maximum duration used by automatic pruning.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """The `maxDuration` is specified as a positive duration and has at most per-second granularity.
    |This call returns an error if no schedule has been configured via `set_schedule` or if automatic
    |pruning has been disabled via `clear_schedule`. Additionally if at the time of this modification, pruning is
    |actively running, a best effort is made to pause pruning and restart according to the new schedule. This
    |allows for the case that the new schedule no longer allows pruning at the current time.
    """
    )
  33. def set_retention(retention: PositiveDurationSeconds): Unit
    Definition Classes
    PruningSchedulerAdministration
    Annotations
    @Summary(s = "Update the pruning retention used by automatic pruning.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """The `retention` is specified as a positive duration and has at most per-second granularity.
    |This call returns an error if no schedule has been configured via `set_schedule` or if automatic
    |pruning has been disabled via `clear_schedule`. Additionally if at the time of this update, pruning is
    |actively running, a best effort is made to pause pruning and restart with the newly specified retention.
    |This allows for the case that the new retention mandates retaining more data than previously.
    """
    )
  34. def set_schedule(cron: String, maxDuration: PositiveDurationSeconds, retention: PositiveDurationSeconds): Unit
    Definition Classes
    PruningSchedulerAdministration
    Annotations
    @Summary(s = "Activate automatic pruning according to the specified schedule.", flag = console.this.Help.Summary.<init>$default$2) @Description(s = """The schedule is specified in cron format and "max_duration" and "retention" durations. The cron string indicates
    |the points in time at which pruning should begin in the GMT time zone, and the maximum duration indicates how
    |long from the start time pruning is allowed to run as long as pruning has not finished pruning up to the
    |specified retention period.
    """
    )
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. implicit def traceContext: TraceContext
    Attributes
    protected
    Definition Classes
    NoTracing
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. 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

Inherited from NoTracing

Inherited from FeatureFlagFilter

Inherited from NamedLogging

Inherited from Helpful

Inherited from AnyRef

Inherited from Any

Ungrouped