#include "rgw_pubsub_push.h"
#include "rgw_notify_event_type.h"
#include "rgw_perf_counters.h"
-#ifdef WITH_RADOSGW_AMQP_ENDPOINT
-#include "rgw_amqp.h"
-#endif
-#ifdef WITH_RADOSGW_KAFKA_ENDPOINT
-#include "rgw_kafka.h"
-#endif
#include <boost/algorithm/hex.hpp>
#include <boost/asio/yield.hpp>
} else {
effective_conf.decode_json(&p);
}
-#ifdef WITH_RADOSGW_AMQP_ENDPOINT
- if (!rgw::amqp::init(cct)) {
- ldout(cct, 1) << "ERROR: failed to initialize AMQP manager in pubsub sync module" << dendl;
- }
-#endif
-#ifdef WITH_RADOSGW_KAFKA_ENDPOINT
- if (!rgw::kafka::init(cct)) {
- ldout(cct, 1) << "ERROR: failed to initialize Kafka manager in pubsub sync module" << dendl;
- }
-#endif
-}
-
-RGWPSSyncModuleInstance::~RGWPSSyncModuleInstance() {
-#ifdef WITH_RADOSGW_AMQP_ENDPOINT
- rgw::amqp::shutdown();
-#endif
-#ifdef WITH_RADOSGW_KAFKA_ENDPOINT
- rgw::kafka::shutdown();
-#endif
}
RGWDataSyncModule *RGWPSSyncModuleInstance::get_data_handler()