activemq-cpp-3.4.0

src/main/activemq/commands/ConnectionInfo.h

Go to the documentation of this file.
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_CONNECTIONINFO_H_
00019 #define _ACTIVEMQ_COMMANDS_CONNECTIONINFO_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/ConnectionId.h>
00029 #include <activemq/commands/RemoveInfo.h>
00030 #include <activemq/util/Config.h>
00031 #include <decaf/lang/Pointer.h>
00032 #include <string>
00033 #include <vector>
00034 
00035 namespace activemq{
00036 namespace commands{
00037 
00038     using decaf::lang::Pointer;
00039 
00040     /*
00041      *
00042      *  Command code for OpenWire format for ConnectionInfo
00043      *
00044      *  NOTE!: This file is auto generated - do not modify!
00045      *         if you need to make a change, please see the Java Classes
00046      *         in the activemq-cpp-openwire-generator module
00047      *
00048      */
00049     class AMQCPP_API ConnectionInfo : public BaseCommand {
00050     protected:
00051 
00052         Pointer<ConnectionId> connectionId;
00053         std::string clientId;
00054         std::string password;
00055         std::string userName;
00056         std::vector< decaf::lang::Pointer<BrokerId> > brokerPath;
00057         bool brokerMasterConnector;
00058         bool manageable;
00059         bool clientMaster;
00060         bool faultTolerant;
00061         bool failoverReconnect;
00062 
00063     public:
00064 
00065         const static unsigned char ID_CONNECTIONINFO = 3;
00066 
00067     private:
00068 
00069         ConnectionInfo( const ConnectionInfo& );
00070         ConnectionInfo& operator= ( const ConnectionInfo& );
00071 
00072     public:
00073 
00074         ConnectionInfo();
00075 
00076         virtual ~ConnectionInfo();
00077 
00078         virtual unsigned char getDataStructureType() const;
00079 
00080         virtual ConnectionInfo* cloneDataStructure() const;
00081 
00082         virtual void copyDataStructure( const DataStructure* src );
00083 
00084         virtual std::string toString() const;
00085 
00086         virtual bool equals( const DataStructure* value ) const;
00087 
00088         Pointer<RemoveInfo> createRemoveCommand() const;
00089 
00090         virtual const Pointer<ConnectionId>& getConnectionId() const;
00091         virtual Pointer<ConnectionId>& getConnectionId();
00092         virtual void setConnectionId( const Pointer<ConnectionId>& connectionId );
00093 
00094         virtual const std::string& getClientId() const;
00095         virtual std::string& getClientId();
00096         virtual void setClientId( const std::string& clientId );
00097 
00098         virtual const std::string& getPassword() const;
00099         virtual std::string& getPassword();
00100         virtual void setPassword( const std::string& password );
00101 
00102         virtual const std::string& getUserName() const;
00103         virtual std::string& getUserName();
00104         virtual void setUserName( const std::string& userName );
00105 
00106         virtual const std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath() const;
00107         virtual std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath();
00108         virtual void setBrokerPath( const std::vector< decaf::lang::Pointer<BrokerId> >& brokerPath );
00109 
00110         virtual bool isBrokerMasterConnector() const;
00111         virtual void setBrokerMasterConnector( bool brokerMasterConnector );
00112 
00113         virtual bool isManageable() const;
00114         virtual void setManageable( bool manageable );
00115 
00116         virtual bool isClientMaster() const;
00117         virtual void setClientMaster( bool clientMaster );
00118 
00119         virtual bool isFaultTolerant() const;
00120         virtual void setFaultTolerant( bool faultTolerant );
00121 
00122         virtual bool isFailoverReconnect() const;
00123         virtual void setFailoverReconnect( bool failoverReconnect );
00124 
00128         virtual bool isConnectionInfo() const {
00129             return true;
00130         }
00131 
00132         virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
00133 
00134     };
00135 
00136 }}
00137 
00138 #endif /*_ACTIVEMQ_COMMANDS_CONNECTIONINFO_H_*/