/usr/share/cruisecontrol-bin-2.6.1/projects/qpid-trunk/cpp/src/gen/qpid/management/Link.h

00001 
00002 #ifndef _MANAGEMENT_LINK_
00003 #define _MANAGEMENT_LINK_
00004 
00005 //
00006 // Licensed to the Apache Software Foundation (ASF) under one
00007 // or more contributor license agreements.  See the NOTICE file
00008 // distributed with this work for additional information
00009 // regarding copyright ownership.  The ASF licenses this file
00010 // to you under the Apache License, Version 2.0 (the
00011 // "License"); you may not use this file except in compliance
00012 // with the License.  You may obtain a copy of the License at
00013 // 
00014 //   http://www.apache.org/licenses/LICENSE-2.0
00015 // 
00016 // Unless required by applicable law or agreed to in writing,
00017 // software distributed under the License is distributed on an
00018 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00019 // KIND, either express or implied.  See the License for the
00020 // specific language governing permissions and limitations
00021 // under the License.
00022 //
00023 
00024 // This source file was created by a code generator.
00025 // Please do not edit.
00026 
00027 #include "qpid/management/ManagementObject.h"
00028 #include "qpid/framing/Uuid.h"
00029 
00030 namespace qpid {
00031 namespace management {
00032 
00033 class Link : public ManagementObject
00034 {
00035   private:
00036 
00037     static std::string packageName;
00038     static std::string className;
00039     static uint8_t     md5Sum[16];
00040 
00041     // Configuration Elements
00042     uint64_t vhostRef;
00043     std::string address;
00044     std::string authIdentity;
00045 
00046     // Instrumentation Elements
00047     uint8_t  closing;
00048     uint64_t  framesFromPeer;
00049     uint64_t  framesToPeer;
00050     uint64_t  bytesFromPeer;
00051     uint64_t  bytesToPeer;
00052 
00053     // Private Methods
00054     static void writeSchema   (qpid::framing::Buffer& buf);
00055     void writeConfig          (qpid::framing::Buffer& buf);
00056     void writeInstrumentation (qpid::framing::Buffer& buf,
00057                                bool skipHeaders = false);
00058     void doMethod             (std::string            methodName,
00059                                qpid::framing::Buffer& inBuf,
00060                                qpid::framing::Buffer& outBuf);
00061     writeSchemaCall_t getWriteSchemaCall (void) { return writeSchema; }
00062 
00063 
00064   public:
00065 
00066     friend class PackageQpid;
00067     typedef boost::shared_ptr<Link> shared_ptr;
00068 
00069     Link (Manageable* coreObject, Manageable* _parent, std::string _address);
00070     ~Link (void);
00071 
00072     std::string getPackageName (void) { return packageName; }
00073     std::string getClassName   (void) { return className; }
00074     uint8_t*    getMd5Sum      (void) { return md5Sum; }
00075 
00076     // Method IDs
00077     static const uint32_t METHOD_CLOSE = 1;
00078     static const uint32_t METHOD_BRIDGE = 2;
00079 
00080     // Accessor Methods
00081     inline void set_authIdentity (std::string val){
00082         sys::RWlock::ScopedWlock writeLock (accessLock);
00083         authIdentity = val;
00084         configChanged = true;
00085     }
00086     inline void set_closing (uint8_t val){
00087         sys::RWlock::ScopedWlock writeLock (accessLock);
00088         closing = val;
00089         instChanged = true;
00090     }
00091     inline void inc_framesFromPeer (uint64_t by = 1){
00092         sys::RWlock::ScopedWlock writeLock (accessLock);
00093         framesFromPeer += by;
00094         instChanged = true;
00095     }
00096     inline void dec_framesFromPeer (uint64_t by = 1){
00097         sys::RWlock::ScopedWlock writeLock (accessLock);
00098         framesFromPeer -= by;
00099         instChanged = true;
00100     }
00101     inline void inc_framesToPeer (uint64_t by = 1){
00102         sys::RWlock::ScopedWlock writeLock (accessLock);
00103         framesToPeer += by;
00104         instChanged = true;
00105     }
00106     inline void dec_framesToPeer (uint64_t by = 1){
00107         sys::RWlock::ScopedWlock writeLock (accessLock);
00108         framesToPeer -= by;
00109         instChanged = true;
00110     }
00111     inline void inc_bytesFromPeer (uint64_t by = 1){
00112         sys::RWlock::ScopedWlock writeLock (accessLock);
00113         bytesFromPeer += by;
00114         instChanged = true;
00115     }
00116     inline void dec_bytesFromPeer (uint64_t by = 1){
00117         sys::RWlock::ScopedWlock writeLock (accessLock);
00118         bytesFromPeer -= by;
00119         instChanged = true;
00120     }
00121     inline void inc_bytesToPeer (uint64_t by = 1){
00122         sys::RWlock::ScopedWlock writeLock (accessLock);
00123         bytesToPeer += by;
00124         instChanged = true;
00125     }
00126     inline void dec_bytesToPeer (uint64_t by = 1){
00127         sys::RWlock::ScopedWlock writeLock (accessLock);
00128         bytesToPeer -= by;
00129         instChanged = true;
00130     }
00131 
00132 };
00133 
00134 }}
00135             
00136 
00137 #endif  

Generated on Thu Apr 10 11:08:17 2008 for Qpid by  doxygen 1.4.7