(ns onyx.messaging.dummy-messenger
  (:require [onyx.extensions :as extensions]))

(defmethod extensions/assign-site-resources :dummy-messenger
  [config peer-site peer-sites]
  {:port 1})

(defrecord DummyMessenger [peer-opts])

(defn dummy-messenger [peer-opts]
  (->DummyMessenger peer-opts))

(defmethod extensions/peer-site onyx.messaging.dummy_messenger.DummyMessenger
  [messenger]
  {:address 1})

(ns onyx.messaging.dummy-messenger
  (:require [onyx.extensions :as extensions]))

(defmethod extensions/assign-site-resources :dummy-messenger
  [config peer-site peer-sites]
  {:port 1})

(defmethod extensions/get-peer-site :dummy-messenger
  [replica peer]
  "localhost")

(defrecord DummyMessenger [peer-opts])

(defn dummy-messenger [peer-opts]
  (->DummyMessenger peer-opts))

(defmethod extensions/peer-site onyx.messaging.dummy_messenger.DummyMessenger
  [messenger]
  {:address 1})

Add get-peer-site for dummy messenger.
Add get-peer-site for dummy messenger.

dignati/onyx,iperdomo/onyx,Deraen/onyx,onyx-platform/onyx,tomasu82/onyx,intfrr/onyx,mccraigmccraig/onyx,vijaykiran/onyx,KevinGreene/onyx,ideal-knee/onyx