00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _ManagementExchange_
00022 #define _ManagementExchange_
00023
00024 #include "qpid/broker/TopicExchange.h"
00025 #include "ManagementBroker.h"
00026
00027 namespace qpid {
00028 namespace broker {
00029
00030 class ManagementExchange : public virtual TopicExchange
00031 {
00032 private:
00033 management::ManagementBroker* managementAgent;
00034
00035 public:
00036 static const std::string typeName;
00037
00038 ManagementExchange (const string& name, Manageable* _parent = 0);
00039 ManagementExchange (const string& _name, bool _durable,
00040 const qpid::framing::FieldTable& _args,
00041 Manageable* _parent = 0);
00042
00043 virtual std::string getType() const { return typeName; }
00044
00045 virtual void route (Deliverable& msg,
00046 const string& routingKey,
00047 const qpid::framing::FieldTable* args);
00048
00049 virtual bool bind (Queue::shared_ptr queue,
00050 const string& routingKey,
00051 const qpid::framing::FieldTable* args);
00052
00053 void setManagmentAgent (management::ManagementBroker* agent);
00054
00055 virtual ~ManagementExchange();
00056 };
00057
00058
00059 }
00060 }
00061
00062 #endif