qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhupend...@apache.org
Subject svn commit: r527959 - in /incubator/qpid/branches/M2/java: broker/src/main/java/org/apache/qpid/server/ broker/src/main/java/org/apache/qpid/server/management/ systests/src/main/java/org/apache/qpid/server/
Date Thu, 12 Apr 2007 14:40:40 GMT
Author: bhupendrab
Date: Thu Apr 12 07:40:36 2007
New Revision: 527959

URL: http://svn.apache.org/viewvc?view=rev&rev=527959
Log:
refining the mbean operations

Modified:
    incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java
    incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/management/ManagedBroker.java
    incubator/qpid/branches/M2/java/systests/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBeanTest.java

Modified: incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java?view=diff&rev=527959&r1=527958&r2=527959
==============================================================================
--- incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java
(original)
+++ incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java
Thu Apr 12 07:40:36 2007
@@ -103,7 +103,7 @@
      * @param autoDelete
      * @throws JMException
      */
-    public void createNewExchange(String exchangeName, String type, boolean durable, boolean
autoDelete) throws JMException
+    public void createNewExchange(String exchangeName, String type, boolean durable) throws
JMException
     {
         try
         {
@@ -112,9 +112,8 @@
                 Exchange exchange = _exchangeRegistry.getExchange(new AMQShortString(exchangeName));
                 if (exchange == null)
                 {
-                    exchange =
-                        _exchangeFactory.createExchange(new AMQShortString(exchangeName),
new AMQShortString(type), durable,
-                            autoDelete, 0);
+                    exchange = _exchangeFactory.createExchange(new AMQShortString(exchangeName),
new AMQShortString(type),
+                                                               durable, false, 0);
                     _exchangeRegistry.registerExchange(exchange);
                 }
                 else

Modified: incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/management/ManagedBroker.java
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/management/ManagedBroker.java?view=diff&rev=527959&r1=527958&r2=527959
==============================================================================
--- incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/management/ManagedBroker.java
(original)
+++ incubator/qpid/branches/M2/java/broker/src/main/java/org/apache/qpid/server/management/ManagedBroker.java
Thu Apr 12 07:40:36 2007
@@ -52,8 +52,7 @@
     @MBeanOperation(name="createNewExchange", description="Creates a new Exchange", impact=
MBeanOperationInfo.ACTION)
     void createNewExchange(@MBeanOperationParameter(name="name", description="Name of the
new exchange")String name,
                            @MBeanOperationParameter(name="ExchangeType", description="Type
of the exchange")String type,
-                           @MBeanOperationParameter(name="durable", description="true if
the Exchang should be durable")boolean durable,
-                           @MBeanOperationParameter(name="passive", description="true of
the Exchange should be passive")boolean passive)
+                           @MBeanOperationParameter(name="durable", description="true if
the Exchang should be durable")boolean durable)
         throws IOException, JMException;
 
     /**

Modified: incubator/qpid/branches/M2/java/systests/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBeanTest.java
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2/java/systests/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBeanTest.java?view=diff&rev=527959&r1=527958&r2=527959
==============================================================================
--- incubator/qpid/branches/M2/java/systests/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBeanTest.java
(original)
+++ incubator/qpid/branches/M2/java/systests/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBeanTest.java
Thu Apr 12 07:40:36 2007
@@ -44,9 +44,9 @@
         VirtualHost vHost = ApplicationRegistry.getInstance().getVirtualHostRegistry().getVirtualHost("test");
 
         ManagedBroker mbean = new AMQBrokerManagerMBean((VirtualHost.VirtualHostMBean)vHost.getManagedObject());
-        mbean.createNewExchange(exchange1,"direct",false, false);
-        mbean.createNewExchange(exchange2,"topic",false, false);
-        mbean.createNewExchange(exchange3,"headers",false, false);
+        mbean.createNewExchange(exchange1,"direct",false);
+        mbean.createNewExchange(exchange2,"topic",false);
+        mbean.createNewExchange(exchange3,"headers",false);
 
         assertTrue(_exchangeRegistry.getExchange(new AMQShortString(exchange1)) != null);
         assertTrue(_exchangeRegistry.getExchange(new AMQShortString(exchange2)) != null);



Mime
View raw message