activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r749348 - in /activemq/activemq-cpp/trunk: activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ src/main/activemq/commands/
Date Mon, 02 Mar 2009 16:29:22 GMT
Author: tabish
Date: Mon Mar  2 16:29:21 2009
New Revision: 749348

URL: http://svn.apache.org/viewvc?rev=749348&view=rev
Log:
Add an isRemoveInfo to the RemoveInfo command for use in FailoverTransport.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandCodeGeneratorsFactory.java
    activemq/activemq-cpp/trunk/src/main/activemq/commands/BaseCommand.h
    activemq/activemq-cpp/trunk/src/main/activemq/commands/Command.h
    activemq/activemq-cpp/trunk/src/main/activemq/commands/RemoveInfo.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandCodeGeneratorsFactory.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandCodeGeneratorsFactory.java?rev=749348&r1=749347&r2=749348&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandCodeGeneratorsFactory.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/CommandCodeGeneratorsFactory.java
Mon Mar  2 16:29:21 2009
@@ -38,6 +38,7 @@
     {
         commandsWithShortcuts = new HashSet<String>();
         commandsWithShortcuts.add( "Response" );
+        commandsWithShortcuts.add( "RemoveInfo" );
         commandsWithShortcuts.add( "MessageDispatch" );
         commandsWithShortcuts.add( "BrokerInfo" );
         commandsWithShortcuts.add( "KeepAliveInfo" );

Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/BaseCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/BaseCommand.h?rev=749348&r1=749347&r2=749348&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/BaseCommand.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/BaseCommand.h Mon Mar  2 16:29:21
2009
@@ -112,34 +112,37 @@
             return BaseDataStructure::equals( value );
         }
 
-        virtual bool isResponse() const {
+        virtual bool isBrokerInfo() const  {
             return false;
         }
-        virtual bool isMessageDispatch() const  {
+        virtual bool isMessage() const  {
             return false;
         }
-        virtual bool isBrokerInfo() const  {
+        virtual bool isMessageAck() const  {
             return false;
         }
-        virtual bool isWireFormatInfo() const  {
+        virtual bool isKeepAliveInfo() const {
             return false;
         }
-        virtual bool isMessage() const  {
+        virtual bool isMessageDispatch() const  {
             return false;
         }
-        virtual bool isMessageAck() const  {
+        virtual bool isMessageDispatchNotification() const  {
             return false;
         }
         virtual bool isProducerAck() const  {
             return false;
         }
-        virtual bool isMessageDispatchNotification() const  {
+        virtual bool isResponse() const {
+            return false;
+        }
+        virtual bool isRemoveInfo() const {
             return false;
         }
         virtual bool isShutdownInfo() const  {
             return false;
         }
-        virtual bool isKeepAliveInfo() const {
+        virtual bool isWireFormatInfo() const  {
             return false;
         }
 

Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/Command.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/Command.h?rev=749348&r1=749347&r2=749348&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/Command.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/Command.h Mon Mar  2 16:29:21 2009
@@ -88,6 +88,7 @@
         virtual bool isMessageDispatchNotification() const = 0;
         virtual bool isProducerAck() const = 0;
         virtual bool isResponse() const = 0;
+        virtual bool isRemoveInfo() const = 0;
         virtual bool isShutdownInfo() const = 0;
         virtual bool isWireFormatInfo() const = 0;
 

Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/RemoveInfo.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/RemoveInfo.h?rev=749348&r1=749347&r2=749348&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/RemoveInfo.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/RemoveInfo.h Mon Mar  2 16:29:21
2009
@@ -105,6 +105,13 @@
         virtual void setObjectId( const Pointer<DataStructure>& objectId );
 
         /**
+         * @return an answer of true to the isRemoveInfo() query.
+         */
+        virtual bool isRemoveInfo() const {
+            return true;
+        }
+
+        /**
          * Allows a Visitor to visit this command and return a response to the
          * command based on the command type being visited.  The command will call
          * the proper processXXX method in the visitor.



Mime
View raw message