activemq-cpp-3.8.2
BrokerInfo.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef _ACTIVEMQ_COMMANDS_BROKERINFO_H_
19 #define _ACTIVEMQ_COMMANDS_BROKERINFO_H_
20 
21 // Turn off warning message for ignored exception specification
22 #ifdef _MSC_VER
23 #pragma warning( disable : 4290 )
24 #endif
25 
29 #include <activemq/util/Config.h>
30 #include <decaf/lang/Pointer.h>
31 #include <string>
32 #include <vector>
33 
34 namespace activemq {
35 namespace commands {
36 
38 
39  /*
40  *
41  * Command code for OpenWire format for BrokerInfo
42  *
43  * NOTE!: This file is auto generated - do not modify!
44  * if you need to make a change, please see the Java Classes
45  * in the activemq-cpp-openwire-generator module
46  *
47  */
49  protected:
50 
52  std::string brokerURL;
53  std::vector< decaf::lang::Pointer<BrokerInfo> > peerBrokerInfos;
54  std::string brokerName;
60  long long connectionId;
61  std::string brokerUploadUrl;
62  std::string networkProperties;
63 
64  public:
65 
66  const static unsigned char ID_BROKERINFO = 2;
67 
68  private:
69 
70  BrokerInfo(const BrokerInfo&);
71  BrokerInfo& operator= (const BrokerInfo&);
72 
73  public:
74 
75  BrokerInfo();
76 
77  virtual ~BrokerInfo();
78 
79  virtual unsigned char getDataStructureType() const;
80 
81  virtual BrokerInfo* cloneDataStructure() const;
82 
83  virtual void copyDataStructure(const DataStructure* src);
84 
85  virtual std::string toString() const;
86 
87  virtual bool equals(const DataStructure* value) const;
88 
89  virtual const Pointer<BrokerId>& getBrokerId() const;
90  virtual Pointer<BrokerId>& getBrokerId();
91  virtual void setBrokerId( const Pointer<BrokerId>& brokerId );
92 
93  virtual const std::string& getBrokerURL() const;
94  virtual std::string& getBrokerURL();
95  virtual void setBrokerURL( const std::string& brokerURL );
96 
97  virtual const std::vector< decaf::lang::Pointer<BrokerInfo> >& getPeerBrokerInfos() const;
98  virtual std::vector< decaf::lang::Pointer<BrokerInfo> >& getPeerBrokerInfos();
99  virtual void setPeerBrokerInfos( const std::vector< decaf::lang::Pointer<BrokerInfo> >& peerBrokerInfos );
100 
101  virtual const std::string& getBrokerName() const;
102  virtual std::string& getBrokerName();
103  virtual void setBrokerName( const std::string& brokerName );
104 
105  virtual bool isSlaveBroker() const;
106  virtual void setSlaveBroker( bool slaveBroker );
107 
108  virtual bool isMasterBroker() const;
109  virtual void setMasterBroker( bool masterBroker );
110 
111  virtual bool isFaultTolerantConfiguration() const;
112  virtual void setFaultTolerantConfiguration( bool faultTolerantConfiguration );
113 
114  virtual bool isDuplexConnection() const;
115  virtual void setDuplexConnection( bool duplexConnection );
116 
117  virtual bool isNetworkConnection() const;
118  virtual void setNetworkConnection( bool networkConnection );
119 
120  virtual long long getConnectionId() const;
121  virtual void setConnectionId( long long connectionId );
122 
123  virtual const std::string& getBrokerUploadUrl() const;
124  virtual std::string& getBrokerUploadUrl();
125  virtual void setBrokerUploadUrl( const std::string& brokerUploadUrl );
126 
127  virtual const std::string& getNetworkProperties() const;
128  virtual std::string& getNetworkProperties();
129  virtual void setNetworkProperties( const std::string& networkProperties );
130 
134  virtual bool isBrokerInfo() const {
135  return true;
136  }
137 
138  virtual Pointer<Command> visit(activemq::state::CommandVisitor* visitor);
139 
140  };
141 
142 }}
143 
144 #endif /*_ACTIVEMQ_COMMANDS_BROKERINFO_H_*/
bool faultTolerantConfiguration
Definition: BrokerInfo.h:57
#define AMQCPP_API
Definition: Config.h:30
std::string brokerUploadUrl
Definition: BrokerInfo.h:61
bool slaveBroker
Definition: BrokerInfo.h:55
bool networkConnection
Definition: BrokerInfo.h:59
std::vector< decaf::lang::Pointer< BrokerInfo > > peerBrokerInfos
Definition: BrokerInfo.h:53
long long connectionId
Definition: BrokerInfo.h:60
std::string networkProperties
Definition: BrokerInfo.h:62
Definition: DataStructure.h:27
Definition: BrokerInfo.h:48
std::string brokerName
Definition: BrokerInfo.h:54
Interface for an Object that can visit the various Command Objects that are sent from and to this cli...
Definition: CommandVisitor.h:69
Definition: BaseCommand.h:27
virtual bool isBrokerInfo() const
Definition: BrokerInfo.h:134
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
std::string brokerURL
Definition: BrokerInfo.h:52
bool masterBroker
Definition: BrokerInfo.h:56
bool duplexConnection
Definition: BrokerInfo.h:58
Pointer< BrokerId > brokerId
Definition: BrokerInfo.h:51
Decaf&#39;s implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53