activemq-cpp-3.9.5
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
30#include <decaf/lang/Pointer.h>
31#include <string>
32#include <vector>
33
34namespace activemq {
35namespace commands {
36
37 using decaf::lang::Pointer;
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 */
48 class AMQCPP_API BrokerInfo : public BaseCommand {
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
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;
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();
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;
113
114 virtual bool isDuplexConnection() const;
116
117 virtual bool isNetworkConnection() const;
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
139
140 };
141
142}}
143
144#endif /*_ACTIVEMQ_COMMANDS_BROKERINFO_H_*/
#define AMQCPP_API
Definition Config.h:30
BaseCommand()
Definition BaseCommand.h:35
virtual void setMasterBroker(bool masterBroker)
std::string networkProperties
Definition BrokerInfo.h:62
virtual void setBrokerURL(const std::string &brokerURL)
virtual bool isDuplexConnection() const
virtual const Pointer< BrokerId > & getBrokerId() const
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
bool faultTolerantConfiguration
Definition BrokerInfo.h:57
std::string brokerURL
Definition BrokerInfo.h:52
virtual std::vector< decaf::lang::Pointer< BrokerInfo > > & getPeerBrokerInfos()
virtual std::string & getBrokerName()
virtual void setConnectionId(long long connectionId)
virtual bool isNetworkConnection() const
virtual std::string & getBrokerUploadUrl()
virtual const std::string & getBrokerName() const
virtual BrokerInfo * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
virtual void setBrokerUploadUrl(const std::string &brokerUploadUrl)
virtual bool isSlaveBroker() const
virtual const std::string & getNetworkProperties() const
virtual bool isBrokerInfo() const
Definition BrokerInfo.h:134
virtual bool isFaultTolerantConfiguration() const
virtual const std::string & getBrokerURL() const
virtual bool isMasterBroker() const
virtual void setFaultTolerantConfiguration(bool faultTolerantConfiguration)
bool masterBroker
Definition BrokerInfo.h:56
bool networkConnection
Definition BrokerInfo.h:59
virtual std::string & getBrokerURL()
bool duplexConnection
Definition BrokerInfo.h:58
virtual void setPeerBrokerInfos(const std::vector< decaf::lang::Pointer< BrokerInfo > > &peerBrokerInfos)
Pointer< BrokerId > brokerId
Definition BrokerInfo.h:51
virtual void setBrokerId(const Pointer< BrokerId > &brokerId)
static const unsigned char ID_BROKERINFO
Definition BrokerInfo.h:66
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
long long connectionId
Definition BrokerInfo.h:60
virtual const std::string & getBrokerUploadUrl() const
virtual Pointer< BrokerId > & getBrokerId()
virtual const std::vector< decaf::lang::Pointer< BrokerInfo > > & getPeerBrokerInfos() const
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual void setSlaveBroker(bool slaveBroker)
virtual std::string & getNetworkProperties()
virtual Pointer< Command > visit(activemq::state::CommandVisitor *visitor)
Allows a Visitor to visit this command and return a response to the command based on the command type...
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
std::string brokerUploadUrl
Definition BrokerInfo.h:61
bool slaveBroker
Definition BrokerInfo.h:55
virtual void setBrokerName(const std::string &brokerName)
std::vector< decaf::lang::Pointer< BrokerInfo > > peerBrokerInfos
Definition BrokerInfo.h:53
std::string brokerName
Definition BrokerInfo.h:54
virtual void setNetworkProperties(const std::string &networkProperties)
virtual void setNetworkConnection(bool networkConnection)
virtual void setDuplexConnection(bool duplexConnection)
virtual long long getConnectionId() const
Definition DataStructure.h:27
Interface for an Object that can visit the various Command Objects that are sent from and to this cli...
Definition CommandVisitor.h:69
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24