Create a new messenger, with whatever implementation is appropriate.
Signed-off-by: Sage Weil <sage@newdream.net>
mon/MonCaps.cc \
mon/MonClient.cc \
mon/MonMap.cc \
+ msg/Messenger.cc \
os/hobject.cc \
osd/OSDMap.cc \
osd/osd_types.cc \
--- /dev/null
+
+#include "include/types.h"
+#include "Messenger.h"
+
+#include "SimpleMessenger.h"
+
+Messenger *Messenger::create(CephContext *cct,
+ entity_name_t name,
+ uint64_t nonce)
+{
+ return new SimpleMessenger(cct, name, nonce);
+}
*/
virtual void set_policy_throttler(int type, Throttle *t) = 0;
+ /**
+ * create a new messenger
+ *
+ * Create a new messenger instance, with whatever implementation is
+ * available or specified via the configuration in cct.
+ *
+ * @param cct context
+ * @param name entity name to register
+ * @param nonce nonce value to uniquely identify this instance on the current host
+ */
+ static Messenger *create(CephContext *cct,
+ entity_name_t name,
+ uint64_t nonce);
};