Class LocalReplica

    • Constructor Detail

      • LocalReplica

        public LocalReplica​(KetchLeader leader,
                            String name,
                            ReplicaConfig cfg)
        Configure a local replica.
        Parameters:
        leader - instance this replica follows.
        name - unique-ish name identifying this replica for debugging.
        cfg - how Ketch should treat the local system.
    • Method Detail

      • describeForLog

        protected String describeForLog()
        Get description of this replica for error/debug logging purposes.
        Overrides:
        describeForLog in class KetchReplica
        Returns:
        description of this replica for error/debug logging purposes.
      • startPush

        protected void startPush​(ReplicaPushRequest req)
        Begin executing a single push.

        This method must move processing onto another thread. Called with KetchLeader.lock held by caller.

        Specified by:
        startPush in class KetchReplica
        Parameters:
        req - the request to send to the replica.