geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r881196 - in /geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx: BlueprintMetadataMBean.java BlueprintStateMBean.java
Date Tue, 17 Nov 2009 08:41:51 GMT
Author: rwonly
Date: Tue Nov 17 08:41:51 2009
New Revision: 881196

URL: http://svn.apache.org/viewvc?rev=881196&view=rev
Log:
add two listeners' type

Modified:
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintMetadataMBean.java
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintStateMBean.java

Modified: geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintMetadataMBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintMetadataMBean.java?rev=881196&r1=881195&r2=881196&view=diff
==============================================================================
--- geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintMetadataMBean.java
(original)
+++ geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintMetadataMBean.java
Tue Nov 17 08:41:51 2009
@@ -560,6 +560,68 @@
                                                     SCOPE_ITEM,
                                                     ARGUMENTS_ITEM,
                                                     PROPERTIES_ITEM);
+
+    ///////////////////////////////////////////////////////////////
+    // Define <registration-listener>'s CompositeType
+    ///////////////////////////////////////////////////////////////
+    
+    /**
+     * The key LISTENER_COMPONENT, used in {@link #LISTENER_COMPONENT_ITEM}.
+     */
+    String          LISTENER_COMPONENT      = "ListenerComponent";
+    
+    /**
+     * The item containing the listener component.
+     * The key is {@link #LISTENER_COMPONENT}, and the type is {@link ArrayType}.
+     */
+    Item            LISTENER_COMPONENT_ITEM = new Item(
+                                                    LISTENER_COMPONENT, 
+                                                    "", 
+                                                    Item.arrayType(1, SimpleType.BYTE));
;
+    
+    /**
+     * The key REGISTRATION_METHOD, used in {@link #REGISTRATION_METHOD_ITEM}.
+     */
+    String          REGISTRATION_METHOD     = "RegistrationMethod";
+    
+    /**
+     * The item containing the name of the registration method.
+     * The key is {@link #REGISTRATION_METHOD}, and the type is {@link SimpleType#STRING}.
+     */
+    Item            REGISTRATION_METHOD_ITEM    = new Item(
+                                                    REGISTRATION_METHOD, 
+                                                    "", 
+                                                    SimpleType.STRING);
+    
+    /**
+     * The key UNREGISTRATION_METHOD, used in {@link #UNREGISTRATION_METHOD_ITEM}.
+     */
+    String          UNREGISTRATION_METHOD       = "UnregistrationMethod";
+    
+    /**
+     * The item containing the name of the unregistration method.
+     * The key is {@link #UNREGISTRATION_METHOD}, and the type is {@link SimpleType#STRING}.
+     */
+    Item            UNREGISTRATION_METHOD_ITEM  = new Item(
+                                                    UNREGISTRATION_METHOD, 
+                                                    "", 
+                                                    SimpleType.STRING);
+    
+    /**
+     * The CompositeType for a registration listener, and it contains the following items:
+     * <ul>
+     * <li>{@link #LISTENER_COMPONENT}</li>
+     * <li>{@link #REGISTRATION_METHOD}</li>
+     * <li>{@link #UNREGISTRATION_METHOD}</li>
+     * </ul>
+     */
+    CompositeType   REGISTRATION_LISTENER_TYPE  = Item.compositeType(
+                                                    "RegistrationListener", 
+                                                    "", 
+                                                    LISTENER_COMPONENT_ITEM,
+                                                    REGISTRATION_METHOD_ITEM,
+                                                    UNREGISTRATION_METHOD_ITEM);
+    
     
     ///////////////////////////////////////////////////////////////
     // Define <service>'s CompositeType
@@ -635,6 +697,20 @@
                                                     Item.arrayType(1, MAP_ENTRY_TYPE));
     
     /**
+     * The key REGISTRATION_LISTENERS, used in {@link #SERVICE_LISTENERS_ITEM}.
+     */
+    String          REGISTRATION_LISTENERS  = "RegistrationListeners";
+    
+    /**
+     * The item containing all the registration listeners.
+     * The key is {@link #REGISTRATION_LISTENERS}, and the type is {@link ArrayType}.
+     */
+    Item            REGISTRATION_LISTENERS_ITEM = new Item(
+                                                    REGISTRATION_LISTENERS,
+                                                    "",
+                                                    Item.arrayType(1, REGISTRATION_LISTENER_TYPE));
+    
+    /**
      * The CompositeType for a ServiceMetadata object, it extends {@link #COMPONENT_METADATA_TYPE}
      * and adds the following items:
      * <ul>
@@ -643,9 +719,10 @@
      * <li>{@link #RANKING}</li>
      * <li>{@link #SERVICE_COMPONENT}</li>
      * <li>{@link #SERVICE_PROPERTIES}</li>
+     * <li>{@link #REGISTRATION_LISTENERS}</li>
      * </ul>
      */
-    CompositeType   SERVICE_MATADATA_TYPE        = Item.extend(
+    CompositeType   SERVICE_MATADATA_TYPE   = Item.extend(
                                                     COMPONENT_METADATA_TYPE, 
                                                     "ServiceMetadata", 
                                                     "", 
@@ -653,9 +730,59 @@
                                                     AUTO_EXPORT_ITEM,
                                                     RANKING_ITEM,
                                                     SERVICE_COMPONENT_ITEM,
-                                                    SERVICE_PROPERTIES_ITEM);
+                                                    SERVICE_PROPERTIES_ITEM,
+                                                    REGISTRATION_LISTENERS_ITEM);
 
     ///////////////////////////////////////////////////////////////
+    // Define <reference-listener>'s CompositeType
+    // LISTENER_COMPONENT_ITEM defined in the <registration-listener>
+    ///////////////////////////////////////////////////////////////
+    
+    /**
+     * The key BIND_METHOD, used in {@link #BIND_METHOD_ITEM}.
+     */
+    String          BIND_METHOD                 = "BindMethod";
+    
+    /**
+     * The item containing the name of the bind method.
+     * The key is {@link #BIND_METHOD}, and the type is {@link SimpleType#STRING}.
+     */
+    Item            BIND_METHOD_ITEM            = new Item(
+                                                    BIND_METHOD, 
+                                                    "", 
+                                                    SimpleType.STRING);
+    
+    /**
+     * The key UNBIND_METHOD, used in {@link #UNBIND_METHOD_ITEM}.
+     */
+    String          UNBIND_METHOD               = "UnbindMethod";
+    
+    /**
+     * The item containing the name of the unbind method.
+     * The key is {@link #UNBIND_METHOD}, and the type is {@link SimpleType#STRING}.
+     */
+    Item            UNBIND_METHOD_ITEM          = new Item(
+                                                    UNBIND_METHOD, 
+                                                    "", 
+                                                    SimpleType.STRING);
+    
+    /**
+     * The CompositeType for a reference listener, and it contains the following items:
+     * <ul>
+     * <li>{@link #LISTENER_COMPONENT}</li>
+     * <li>{@link #BIND_METHOD}</li>
+     * <li>{@link #UNBIND_METHOD}</li>
+     * </ul>
+     */
+    CompositeType   REFERENCE_LISTENER_TYPE  = Item.compositeType(
+                                                    "ReferenceListener", 
+                                                    "", 
+                                                    LISTENER_COMPONENT_ITEM,
+                                                    BIND_METHOD_ITEM,
+                                                    UNBIND_METHOD_ITEM);
+    
+    
+    ///////////////////////////////////////////////////////////////
     // Define Service Reference's CompositeType, 
     // <reference> & <reference-list> will extend this
     ///////////////////////////////////////////////////////////////
@@ -716,6 +843,21 @@
                                                     SimpleType.STRING);
     
     /**
+     * The key REFERENCE_LISTENERS, used in {@link #SERVICE_LISTENERS_ITEM}.
+     */
+    String          REFERENCE_LISTENERS     = "RegistrationListeners";
+    
+    /**
+     * The item containing all the reference listeners.
+     * The key is {@link #REFERENCE_LISTENERS}, and the type is {@link ArrayType}.
+     */
+    Item            REFERENCE_LISTENERS_ITEM= new Item(
+                                                    REFERENCE_LISTENERS,
+                                                    "",
+                                                    Item.arrayType(1, REFERENCE_LISTENER_TYPE));
+    
+    
+    /**
      * The CompositeType for a ServiceReferenceMetadata object, it extends 
      * {@link #COMPONENT_METADATA_TYPE} and adds the following items:
      * <ul>
@@ -723,6 +865,7 @@
      * <li>{@link #INTERFACE}</li>
      * <li>{@link #COMPONENT_NAME}</li>
      * <li>{@link #FILTER}</li>
+     * <li>{@link #REFERENCE_LISTENERS}</li>
      * </ul>
      */
     CompositeType   SERVICE_REFERENCE_METADATA_TYPE  = Item.extend(
@@ -732,7 +875,8 @@
                                                     AVAILABILITY_ITEM,
                                                     INTERFACE_ITEM,
                                                     COMPONENT_NAME_ITEM,
-                                                    FILTER_ITEM);
+                                                    FILTER_ITEM,
+                                                    REFERENCE_LISTENERS_ITEM);
     
     ///////////////////////////////////////////////////////////////
     // Define <reference>'s CompositeType

Modified: geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintStateMBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintStateMBean.java?rev=881196&r1=881195&r2=881196&view=diff
==============================================================================
--- geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintStateMBean.java
(original)
+++ geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx/src/main/java/org/apache/geronimo/blueprint/jmx/BlueprintStateMBean.java
Tue Nov 17 08:41:51 2009
@@ -189,8 +189,7 @@
     CompositeData getLastEvent(long bundleId) throws IOException;
     
     /**
-     * Returns the BlueprintEvent associated with this blueprint container.
-     * The returned Composite Data is typed by {@link #BLUEPRINT_EVENT_TYPE}.
+     * Returns all the last events associated with the blueprint bundles.
      * 
      * @param bundleId The bundle id of a blueprint bundle
      * @return the tabular representation of all the last events associated with the blueprint
bundles



Mime
View raw message