|
activemq-cpp-3.4.0
|
00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef _ACTIVEMQ_COMMANDS_BROKERINFO_H_ 00019 #define _ACTIVEMQ_COMMANDS_BROKERINFO_H_ 00020 00021 // Turn off warning message for ignored exception specification 00022 #ifdef _MSC_VER 00023 #pragma warning( disable : 4290 ) 00024 #endif 00025 00026 #include <activemq/commands/BaseCommand.h> 00027 #include <activemq/commands/BrokerId.h> 00028 #include <activemq/commands/BrokerInfo.h> 00029 #include <activemq/util/Config.h> 00030 #include <decaf/lang/Pointer.h> 00031 #include <string> 00032 #include <vector> 00033 00034 namespace activemq{ 00035 namespace commands{ 00036 00037 using decaf::lang::Pointer; 00038 00039 /* 00040 * 00041 * Command code for OpenWire format for BrokerInfo 00042 * 00043 * NOTE!: This file is auto generated - do not modify! 00044 * if you need to make a change, please see the Java Classes 00045 * in the activemq-cpp-openwire-generator module 00046 * 00047 */ 00048 class AMQCPP_API BrokerInfo : public BaseCommand { 00049 protected: 00050 00051 Pointer<BrokerId> brokerId; 00052 std::string brokerURL; 00053 std::vector< decaf::lang::Pointer<BrokerInfo> > peerBrokerInfos; 00054 std::string brokerName; 00055 bool slaveBroker; 00056 bool masterBroker; 00057 bool faultTolerantConfiguration; 00058 bool duplexConnection; 00059 bool networkConnection; 00060 long long connectionId; 00061 std::string brokerUploadUrl; 00062 std::string networkProperties; 00063 00064 public: 00065 00066 const static unsigned char ID_BROKERINFO = 2; 00067 00068 private: 00069 00070 BrokerInfo( const BrokerInfo& ); 00071 BrokerInfo& operator= ( const BrokerInfo& ); 00072 00073 public: 00074 00075 BrokerInfo(); 00076 00077 virtual ~BrokerInfo(); 00078 00079 virtual unsigned char getDataStructureType() const; 00080 00081 virtual BrokerInfo* cloneDataStructure() const; 00082 00083 virtual void copyDataStructure( const DataStructure* src ); 00084 00085 virtual std::string toString() const; 00086 00087 virtual bool equals( const DataStructure* value ) const; 00088 00089 virtual const Pointer<BrokerId>& getBrokerId() const; 00090 virtual Pointer<BrokerId>& getBrokerId(); 00091 virtual void setBrokerId( const Pointer<BrokerId>& brokerId ); 00092 00093 virtual const std::string& getBrokerURL() const; 00094 virtual std::string& getBrokerURL(); 00095 virtual void setBrokerURL( const std::string& brokerURL ); 00096 00097 virtual const std::vector< decaf::lang::Pointer<BrokerInfo> >& getPeerBrokerInfos() const; 00098 virtual std::vector< decaf::lang::Pointer<BrokerInfo> >& getPeerBrokerInfos(); 00099 virtual void setPeerBrokerInfos( const std::vector< decaf::lang::Pointer<BrokerInfo> >& peerBrokerInfos ); 00100 00101 virtual const std::string& getBrokerName() const; 00102 virtual std::string& getBrokerName(); 00103 virtual void setBrokerName( const std::string& brokerName ); 00104 00105 virtual bool isSlaveBroker() const; 00106 virtual void setSlaveBroker( bool slaveBroker ); 00107 00108 virtual bool isMasterBroker() const; 00109 virtual void setMasterBroker( bool masterBroker ); 00110 00111 virtual bool isFaultTolerantConfiguration() const; 00112 virtual void setFaultTolerantConfiguration( bool faultTolerantConfiguration ); 00113 00114 virtual bool isDuplexConnection() const; 00115 virtual void setDuplexConnection( bool duplexConnection ); 00116 00117 virtual bool isNetworkConnection() const; 00118 virtual void setNetworkConnection( bool networkConnection ); 00119 00120 virtual long long getConnectionId() const; 00121 virtual void setConnectionId( long long connectionId ); 00122 00123 virtual const std::string& getBrokerUploadUrl() const; 00124 virtual std::string& getBrokerUploadUrl(); 00125 virtual void setBrokerUploadUrl( const std::string& brokerUploadUrl ); 00126 00127 virtual const std::string& getNetworkProperties() const; 00128 virtual std::string& getNetworkProperties(); 00129 virtual void setNetworkProperties( const std::string& networkProperties ); 00130 00134 virtual bool isBrokerInfo() const { 00135 return true; 00136 } 00137 00138 virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor ); 00139 00140 }; 00141 00142 }} 00143 00144 #endif /*_ACTIVEMQ_COMMANDS_BROKERINFO_H_*/