Liking cljdoc? Tell your friends :D

kafka-clj.metadata

All functions are concerned with retreiving metadata and offsets from kafka brokers part of this task requires blacklisting of brokers that do not response and retrying on connection errors

All functions are concerned with retreiving metadata and offsets from kafka brokers
part of this task requires blacklisting of brokers that do not response and retrying on connection errors
raw docstring

blacklisted?clj

(blacklisted? {:keys [driver] :as st} host-address)

closeclj

(close {:keys [driver]})

connectorclj

(connector bootstrap-brokers conf)

Creates a tcp pool and initiate for all brokers

Creates a tcp pool and initiate for all brokers
raw docstring

get-cached-brokersclj

(get-cached-brokers metadata-connector)
(get-cached-brokers metadata-connector topic)

Return the current registered brokers in the metadata cache

Return the current registered brokers in the metadata cache
raw docstring

get-cached-metadataclj

(get-cached-metadata metadata-connector topic)
(get-cached-metadata metadata-connector topic partition)

from the metadata connector, reads the metadata in the metadata-ref

Just calling metadata without a partition returns ;;[{:host "localhost", :port 50738, :isr [{:host "localhost", :port 50738}] specifying a partition returns the corresponding entry

from the metadata connector, reads the metadata in the metadata-ref

Just calling metadata without a partition returns ;;[{:host "localhost", :port 50738, :isr [{:host "localhost", :port 50738}]
specifying a partition returns the corresponding entry
raw docstring

get-metadataclj

(get-metadata {:keys [driver]} conf)

Return metadata in the form ;;validates metadata responses like {"abc" [{:host "localhost", :port 50738, :isr [{:host "localhost", :port 50738}], :id 0, :error-code 0}]}

Return metadata in the form ;;validates metadata responses like {"abc" [{:host "localhost", :port 50738, :isr [{:host "localhost", :port 50738}], :id 0, :error-code 0}]}

raw docstring

META-RESP-SCHEMAclj


safe-nthclj

(safe-nth coll i)

send-recv-metadata-requestclj

(send-recv-metadata-request conn conf)

Writes out a metadata request to the producer con

Writes out a metadata request to the producer con
raw docstring

update-metadata!clj

(update-metadata! {:keys [brokers-ref metadata-ref] :as connector} conf)

Updates the borkers-ref, metadata-ref and add/remove hosts as per the metadata from the driver if meta is nil, any updates are skipped

Updates the borkers-ref, metadata-ref and add/remove hosts as per the metadata from the driver
if meta is nil, any updates are skipped
raw docstring

write-metadata-requestclj

(write-metadata-request buff
                        {:keys [correlation-id client-id]
                         :or {correlation-id 1 client-id "1"}})

see http://kafka.apache.org/protocol.html RequestMessage => ApiKey ApiVersion CorrelationId ClientId RequestMessage ApiKey => int16 ApiVersion => int16 CorrelationId => int32 ClientId => string MetadataRequest => [TopicName] TopicName => string

see http://kafka.apache.org/protocol.html
RequestMessage => ApiKey ApiVersion CorrelationId ClientId RequestMessage
 ApiKey => int16
 ApiVersion => int16
 CorrelationId => int32
 ClientId => string
 MetadataRequest => [TopicName]
    TopicName => string
raw docstring

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

× close