qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject svn commit: r890154 - /qpid/trunk/qpid/java/management/tools/qpid-cli/src/org/apache/qpid/commands/Commandviewcontent.java
Date Mon, 14 Dec 2009 01:42:02 GMT
Author: robbie
Date: Mon Dec 14 01:42:02 2009
New Revision: 890154

URL: http://svn.apache.org/viewvc?rev=890154&view=rev
Log:
QPID-2269: Remove the hiding fields for object/name/vhost and use the correct values from
the superclass. Allow viewing content of messages with IDs outside the integer range.

Modified:
    qpid/trunk/qpid/java/management/tools/qpid-cli/src/org/apache/qpid/commands/Commandviewcontent.java

Modified: qpid/trunk/qpid/java/management/tools/qpid-cli/src/org/apache/qpid/commands/Commandviewcontent.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/tools/qpid-cli/src/org/apache/qpid/commands/Commandviewcontent.java?rev=890154&r1=890153&r2=890154&view=diff
==============================================================================
--- qpid/trunk/qpid/java/management/tools/qpid-cli/src/org/apache/qpid/commands/Commandviewcontent.java
(original)
+++ qpid/trunk/qpid/java/management/tools/qpid-cli/src/org/apache/qpid/commands/Commandviewcontent.java
Mon Dec 14 01:42:02 2009
@@ -39,10 +39,7 @@
 
     public static final String COMMAND_NAME = "viewcontent";
 
-    private String object;
-    private String name;
-    private String vhost;
-    private int number = 0;
+    private long number = 0;
     private QueueObject objname;
     private MBeanServerConnection mbsc;
     private String method1;
@@ -61,7 +58,7 @@
     {
         Set set = null;
         Object temp[] = { null };
-        objname.setQueryString(this.object, this.name, this.vhost);
+        objname.setQueryString(getObject(), getName(), getVirtualhost());
         set = objname.returnObjects();
         String temp_header = "", header = "", message_data = "", encoding = null;
 
@@ -233,8 +230,7 @@
 
     private void setnumber(String number)
     {
-        Integer i = new Integer(number);
-        this.number = i.intValue();
+        this.number = Long.valueOf(number);
     }
 
     private static String removeSpaces(String s)
@@ -246,7 +242,7 @@
         return t;
     }
 
-    public int getnumber()
+    public long getnumber()
     {
         return this.number;
     }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message