|
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_CONNECTIONCONTROL_H_ 00019 #define _ACTIVEMQ_COMMANDS_CONNECTIONCONTROL_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/util/Config.h> 00028 #include <decaf/lang/Pointer.h> 00029 #include <string> 00030 #include <vector> 00031 00032 namespace activemq{ 00033 namespace commands{ 00034 00035 using decaf::lang::Pointer; 00036 00037 /* 00038 * 00039 * Command code for OpenWire format for ConnectionControl 00040 * 00041 * NOTE!: This file is auto generated - do not modify! 00042 * if you need to make a change, please see the Java Classes 00043 * in the activemq-cpp-openwire-generator module 00044 * 00045 */ 00046 class AMQCPP_API ConnectionControl : public BaseCommand { 00047 protected: 00048 00049 bool close; 00050 bool exit; 00051 bool faultTolerant; 00052 bool resume; 00053 bool suspend; 00054 std::string connectedBrokers; 00055 std::string reconnectTo; 00056 bool rebalanceConnection; 00057 00058 public: 00059 00060 const static unsigned char ID_CONNECTIONCONTROL = 18; 00061 00062 private: 00063 00064 ConnectionControl( const ConnectionControl& ); 00065 ConnectionControl& operator= ( const ConnectionControl& ); 00066 00067 public: 00068 00069 ConnectionControl(); 00070 00071 virtual ~ConnectionControl(); 00072 00073 virtual unsigned char getDataStructureType() const; 00074 00075 virtual ConnectionControl* cloneDataStructure() const; 00076 00077 virtual void copyDataStructure( const DataStructure* src ); 00078 00079 virtual std::string toString() const; 00080 00081 virtual bool equals( const DataStructure* value ) const; 00082 00083 virtual bool isClose() const; 00084 virtual void setClose( bool close ); 00085 00086 virtual bool isExit() const; 00087 virtual void setExit( bool exit ); 00088 00089 virtual bool isFaultTolerant() const; 00090 virtual void setFaultTolerant( bool faultTolerant ); 00091 00092 virtual bool isResume() const; 00093 virtual void setResume( bool resume ); 00094 00095 virtual bool isSuspend() const; 00096 virtual void setSuspend( bool suspend ); 00097 00098 virtual const std::string& getConnectedBrokers() const; 00099 virtual std::string& getConnectedBrokers(); 00100 virtual void setConnectedBrokers( const std::string& connectedBrokers ); 00101 00102 virtual const std::string& getReconnectTo() const; 00103 virtual std::string& getReconnectTo(); 00104 virtual void setReconnectTo( const std::string& reconnectTo ); 00105 00106 virtual bool isRebalanceConnection() const; 00107 virtual void setRebalanceConnection( bool rebalanceConnection ); 00108 00112 virtual bool isConnectionControl() const { 00113 return true; 00114 } 00115 00116 virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor ); 00117 00118 }; 00119 00120 }} 00121 00122 #endif /*_ACTIVEMQ_COMMANDS_CONNECTIONCONTROL_H_*/