Liking cljdoc? Tell your friends :D

onyx.peer.coordinator


barrier-periodclj

(barrier-period job-config peer-config)
source

check-peer-timeout!clj

(check-peer-timeout! {:keys [messenger subscriber-liveness-timeout] :as state})
source

checkpoint-complete?clj

(checkpoint-complete? {:keys [initiated? epoch] :as checkpoint} status)
source

complete-jobclj

(complete-job {:keys [tenancy-id log job-id messenger checkpoint group-ch
                      curr-replica]
               :as state})
source

completed-checkpointclj

(completed-checkpoint
  {:keys [checkpoint messenger job-id tenancy-id log curr-replica] :as state})
source

Coordinatorcljprotocol

next-stateclj

(next-state this old-replica new-replica)

startclj

(start this)

started?clj

(started? this)

stopclj

(stop this scheduler-event)
source

coordinator-backoff-msclj

source

coordinator-iterationclj

(coordinator-iteration {:keys [messenger checkpoint last-heartbeat-time
                               allocation-ch shutdown-ch barrier job job-id
                               curr-replica subscriber-liveness-timeout]
                        :as state}
                       coordinator-max-sleep-ns
                       barrier-period-ns
                       heartbeat-ns)
source

emit-replicaclj

(emit-replica {:keys [allocation-ch] :as coordinator} replica)
source

emit-seal-barrierclj

(emit-seal-barrier state)
source

evict-peer!clj

(evict-peer! {:keys [group-ch evicted curr-replica] :as state} peer-id)
source

initialise-stateclj

(initialise-state {:keys [log messenger job-id tenancy-id curr-replica]
                   :as state})
source

input-publicationsclj

(input-publications {:keys [peer-sites message-short-ids] :as replica}
                    peer-config
                    peer-id
                    job-id)
source

make-task-dataclj

(make-task-data replica job-id)
source

merged-statusesclj

(merged-statuses messenger)
source

new-peer-coordinatorclj

(new-peer-coordinator workflow
                      resume-point
                      log
                      messenger-group
                      monitoring
                      peer-config
                      job-config
                      peer-id
                      job-id
                      group-ch)
source

next-replicaclj

(next-replica {:keys [log job-id peer-id messenger curr-replica tenancy-id
                      peer-config]
               :as state}
              barrier-period-ns
              new-replica)
source

offer-barriersclj

(offer-barriers {:keys [messenger barrier] :as state})
source

offer-heartbeatsclj

(offer-heartbeats {:keys [messenger] :as state})
source

periodic-barrierclj

(periodic-barrier {:keys [tenancy-id workflow-depth log curr-replica job-id
                          messenger barrier checkpoint]
                   :as state})
source

schedule-next-barrierclj

(schedule-next-barrier state barrier-period-ns)
source

shutdownclj

(shutdown {:keys [messenger peer-id] :as state})
source

start-coordinator!clj

(start-coordinator! {:keys [allocation-ch shutdown-ch peer-config job-config]
                     :as state})
source

start-messengerclj

(start-messenger messenger replica job-id)
source

stop-coordinator!clj

(stop-coordinator! {:keys [shutdown-ch allocation-ch peer-id]} scheduler-event)
source

write-coordinateclj

(write-coordinate curr-version log tenancy-id job-id coordinate)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close