qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgodf...@apache.org
Subject svn commit: r1571083 - in /qpid/trunk/qpid/java: broker-core/src/main/java/org/apache/qpid/server/model/ broker-plugins/management-amqp/src/main/java/org/apache/qpid/server/management/amqp/
Date Sun, 23 Feb 2014 20:26:05 GMT
Author: rgodfrey
Date: Sun Feb 23 20:26:05 2014
New Revision: 1571083

URL: http://svn.apache.org/r1571083
Log:
QPID-5578 : rename managed object annotation

Added:
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ManagedObject.java
      - copied, changed from r1571054, qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/AmqpManagement.java
Removed:
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/AmqpManagement.java
Modified:
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ConfiguredObject.java
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Connection.java
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Exchange.java
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/VirtualHost.java
    qpid/trunk/qpid/java/broker-plugins/management-amqp/src/main/java/org/apache/qpid/server/management/amqp/ManagementNode.java

Modified: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ConfiguredObject.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ConfiguredObject.java?rev=1571083&r1=1571082&r2=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ConfiguredObject.java
(original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ConfiguredObject.java
Sun Feb 23 20:26:05 2014
@@ -25,7 +25,7 @@ import java.util.Collection;
 import java.util.Map;
 import java.util.UUID;
 
-@AmqpManagement( creatable = false )
+@ManagedObject( creatable = false, category = false )
 /**
  * An object that can be "managed" (eg via the web interface) and usually read from configuration.
  */

Modified: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Connection.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Connection.java?rev=1571083&r1=1571082&r2=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Connection.java
(original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Connection.java
Sun Feb 23 20:26:05 2014
@@ -24,7 +24,7 @@ import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 
-@AmqpManagement( creatable = false )
+@ManagedObject( creatable = false )
 public interface Connection<X extends Connection<X>> extends ConfiguredObject<X>
 {
 

Modified: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Exchange.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Exchange.java?rev=1571083&r1=1571082&r2=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Exchange.java
(original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Exchange.java
Sun Feb 23 20:26:05 2014
@@ -25,7 +25,7 @@ import java.util.Collection;
 import java.util.Collections;
 import java.util.Map;
 
-@AmqpManagement
+@ManagedObject
 
 public interface Exchange<X extends Exchange<X>> extends ConfiguredObject<X>
 {

Copied: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ManagedObject.java
(from r1571054, qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/AmqpManagement.java)
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ManagedObject.java?p2=qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ManagedObject.java&p1=qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/AmqpManagement.java&r1=1571054&r2=1571083&rev=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/AmqpManagement.java
(original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/ManagedObject.java
Sun Feb 23 20:26:05 2014
@@ -25,9 +25,9 @@ import java.lang.annotation.RetentionPol
 
 @Retention(RetentionPolicy.RUNTIME)
 
-public @interface AmqpManagement
+public @interface ManagedObject
 {
-    String[] attributes() default {};
+    boolean category() default true;
     String[] operations() default {};
     boolean managesChildren() default false; // for objects that manage children, a management
node needs to be created
     boolean creatable() default true;

Modified: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java?rev=1571083&r1=1571082&r2=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java
(original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java
Sun Feb 23 20:26:05 2014
@@ -25,7 +25,7 @@ import java.util.Collection;
 import java.util.Collections;
 import org.apache.qpid.server.queue.QueueEntryVisitor;
 
-@AmqpManagement
+@ManagedObject
 
 public interface Queue<X extends Queue<X>> extends ConfiguredObject<X>
 {

Modified: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/VirtualHost.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/VirtualHost.java?rev=1571083&r1=1571082&r2=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/VirtualHost.java
(original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/model/VirtualHost.java
Sun Feb 23 20:26:05 2014
@@ -30,7 +30,7 @@ import java.util.Collection;
 import java.util.Collections;
 import java.util.Map;
 
-@AmqpManagement( managesChildren = true )
+@ManagedObject( managesChildren = true )
 
 public interface VirtualHost<X extends VirtualHost<X>> extends ConfiguredObject<X>
 {

Modified: qpid/trunk/qpid/java/broker-plugins/management-amqp/src/main/java/org/apache/qpid/server/management/amqp/ManagementNode.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-amqp/src/main/java/org/apache/qpid/server/management/amqp/ManagementNode.java?rev=1571083&r1=1571082&r2=1571083&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-plugins/management-amqp/src/main/java/org/apache/qpid/server/management/amqp/ManagementNode.java
(original)
+++ qpid/trunk/qpid/java/broker-plugins/management-amqp/src/main/java/org/apache/qpid/server/management/amqp/ManagementNode.java
Sun Feb 23 20:26:05 2014
@@ -32,7 +32,7 @@ import org.apache.qpid.server.message.Me
 import org.apache.qpid.server.message.ServerMessage;
 import org.apache.qpid.server.message.internal.InternalMessage;
 import org.apache.qpid.server.message.internal.InternalMessageHeader;
-import org.apache.qpid.server.model.AmqpManagement;
+import org.apache.qpid.server.model.ManagedObject;
 import org.apache.qpid.server.model.Attribute;
 import org.apache.qpid.server.model.ConfigurationChangeListener;
 import org.apache.qpid.server.model.ConfiguredObject;
@@ -145,7 +145,7 @@ class ManagementNode implements MessageS
         allClasses.add(objectClass.getSuperclass());
         for(Class clazz : allClasses)
         {
-            AmqpManagement annotation = (AmqpManagement) clazz.getAnnotation(AmqpManagement.class);
+            ManagedObject annotation = (ManagedObject) clazz.getAnnotation(ManagedObject.class);
             if(annotation != null)
             {
                 return clazz;
@@ -159,7 +159,7 @@ class ManagementNode implements MessageS
         Class clazz = getManagementClass(objectClass);
         if( clazz != null)
         {
-            AmqpManagement annotation = (AmqpManagement) clazz.getAnnotation(AmqpManagement.class);
+            ManagedObject annotation = (ManagedObject) clazz.getAnnotation(ManagedObject.class);
             populateTypeMetaData(clazz, annotation);
             return true;
         }
@@ -170,7 +170,7 @@ class ManagementNode implements MessageS
     }
 
     private ManagedEntityType populateTypeMetaData(Class clazz,
-                                                   final AmqpManagement entityType)
+                                                   final ManagedObject entityType)
     {
 
         ManagedEntityType managedEntityType = _entityTypes.get(clazz.getName());
@@ -203,11 +203,11 @@ class ManagementNode implements MessageS
 
             for(Class parentClazz : allClasses)
             {
-                if(parentClazz.getAnnotation(AmqpManagement.class) != null)
+                if(parentClazz.getAnnotation(ManagedObject.class) != null)
                 {
                     ManagedEntityType parentType = populateTypeMetaData(parentClazz,
-                                                                        (AmqpManagement)
parentClazz.getAnnotation(
-                                                                                AmqpManagement.class)
+                                                                        (ManagedObject) parentClazz.getAnnotation(
+                                                                                ManagedObject.class)
                                                                        );
                     parentSet.add(parentType);
                     parentSet.addAll(Arrays.asList(parentType.getParents()));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message