Packages

package pruning

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class AcsCommitmentProcessor extends AcsChangeListener with FlagCloseable with NamedLogging

    Computes, sends, receives and compares ACS commitments

    Computes, sends, receives and compares ACS commitments

    In more detail:

    • The class computes the participant's ACS commitments (for each of the participant's "counter-participants", i.e., participants who host a stakeholder of some contract in participant's ACS). The commitments are computed at specified (sequencer) times that are configured by the domain and are uniform for all participants connected to the domain. We refer to them as "commitment ticks". The commitments must be computed "online", i.e., after the the state of the ACS at a commitment tick becomes known.
    • After the commitments for a tick are computed, they should be distributed to the counter-participants; but this is best-effort.
    • The class processes the ACS commitments from counter-participants (method processBatch):
    • it checks that the commitments are properly signed
    • it checks that they match the locally computed ACS commitments
    • The class must define crash recovery points, such that the class itself combined with startup procedures of the node jointly ensure that the participant doesn't neglect to send its ACS commitments or process the remote ones. We allow the participant to send the same commitments multiple times in case of a crash, and we do allow the participant to not send some commitments in some edge cases due to crashes.
    • Finally, the class supports pruning: it computes the safe timestamps for participant pruning, such that, after pruning, non-repudiation still holds for any contract in the ACS

    The first four pieces of class functionality must be appropriately synchronized:

    • ACS commitments for a tick cannot be completely processed before the local commitment for that tick is computed. Note that the class cannot make many assumptions on the received commitments: the counter-participants can send them in any order, and they can either precede or lag behind the local commitment computations.
    • The recovery points must be chosen such that the participant computes its local commitments correctly, and never misses to compute a local commitment for every tick. Otherwise, the participant will start raising false alarms when remote commitments are received (either because it computes the wrong thing, or because it doesn't compute anything at all and thus doesn't expect to receive anything).

    Additionally, the startup procedure must ensure that:

    Finally, the class requires the reconciliation interval to be a multiple of 1 second.

    The commitmentPeriodObserver is called whenever a commitment is computed for a period, except if the participant crashes. If publish is called multiple times for the same timestamp (once before a crash and once after the recovery), the observer may also be called twice for the same period.

    When a participant's ACS commitment processor falls behind some counter participants' processors, the participant has the option to enter a so-called "catch-up mode". In catch-up mode, the participant skips sending and checking commitments for some reconciliation intervals. The parameter governing catch-up mode is:

    Annotations
    @SuppressWarnings()
  2. class ParticipantPruningSchedulerImpl extends EnterpriseScheduler with ParticipantPruningScheduler with HasPruningSchedulerStore with UpdatePruningMetric
  3. trait PruningProcessor extends AutoCloseable
  4. class PruningProcessorImpl extends PruningProcessor with NamedLogging with FlagCloseable with HasCloseContext

    The pruning processor coordinates the pruning of all participant node stores

  5. final case class SortedReconciliationIntervals extends Product with Serializable

    Reconciliation intervals, with their validity intervals, sorted by validFrom in decreasing order.

    Reconciliation intervals, with their validity intervals, sorted by validFrom in decreasing order. Note: the factory method ensures that the intervals are pairwise disjoint.

  6. class SortedReconciliationIntervalsProvider extends NamedLogging
  7. class SortedReconciliationIntervalsProviderFactory extends NamedLogging

Ungrouped