00001
00002 #ifndef _MANAGEMENT_BRIDGE_
00003 #define _MANAGEMENT_BRIDGE_
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "qpid/management/ManagementObject.h"
00028 #include "qpid/framing/Uuid.h"
00029
00030 namespace qpid {
00031 namespace management {
00032
00033 class Bridge : public ManagementObject
00034 {
00035 private:
00036
00037 static std::string packageName;
00038 static std::string className;
00039 static uint8_t md5Sum[16];
00040
00041
00042 uint64_t linkRef;
00043 uint16_t channelId;
00044 std::string src;
00045 std::string dest;
00046 std::string key;
00047 uint8_t src_is_queue;
00048 uint8_t src_is_local;
00049
00050
00051
00052
00053 static void writeSchema (qpid::framing::Buffer& buf);
00054 void writeConfig (qpid::framing::Buffer& buf);
00055 void writeInstrumentation (qpid::framing::Buffer& buf,
00056 bool skipHeaders = false);
00057 void doMethod (std::string methodName,
00058 qpid::framing::Buffer& inBuf,
00059 qpid::framing::Buffer& outBuf);
00060 writeSchemaCall_t getWriteSchemaCall (void) { return writeSchema; }
00061
00062
00063 bool getInstChanged (void) { return false; }
00064
00065 public:
00066
00067 friend class PackageQpid;
00068 typedef boost::shared_ptr<Bridge> shared_ptr;
00069
00070 Bridge (Manageable* coreObject, Manageable* _parent, uint16_t _channelId, std::string _src, std::string _dest, std::string _key, uint8_t _src_is_queue, uint8_t _src_is_local);
00071 ~Bridge (void);
00072
00073 std::string getPackageName (void) { return packageName; }
00074 std::string getClassName (void) { return className; }
00075 uint8_t* getMd5Sum (void) { return md5Sum; }
00076
00077
00078 static const uint32_t METHOD_CLOSE = 1;
00079
00080
00081
00082 };
00083
00084 }}
00085
00086
00087 #endif