Interface ExecutionContext


public interface ExecutionContext
Temporary interface to be able to test the leader based replication in the simulator, which implements fakes objects. It gives access to the changelog and the data state of the replica.
  • Field Details

    • EMPTY_EXECUTION_CONTEXT

      static final ExecutionContext EMPTY_EXECUTION_CONTEXT
      An empty execution context.
  • Method Details

    • getChangelog

      ReplicaChangelog getChangelog()
      Returns the changelog of the replica.
      Returns:
      the changelog of the replica
    • replicaId

      ReplicaId replicaId()
      Returns the replica id of the replica.
      Returns:
      the replica id of the replica
    • newReplicatedDomain

      ReplicatedDomain newReplicatedDomain(Dn baseDn)
      Creates a new replicated domain with the given base DN.
      Parameters:
      baseDn - the base DN of the domain
      Returns:
      the new replicated domain