[jboss-cvs] JBossAS SVN: r111173 - in projects/specs/trunk: jboss-j2eemgmt-api_1.1_spec and 7 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 12 19:36:38 EDT 2011


Author: smcgowan at redhat.com
Date: 2011-04-12 19:36:38 -0400 (Tue, 12 Apr 2011)
New Revision: 111173

Added:
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/pom.xml
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ListenerRegistration.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/Management.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ManagementHome.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundaryStatistic.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundedRangeStatistic.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/CountStatistic.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EJBStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EntityBeanStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionPoolStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionPoolStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConnectionStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConsumerStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSEndpointStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSProducerStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSSessionStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JTAStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JVMStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JavaMailStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/MessageDrivenBeanStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/RangeStatistic.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/ServletStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/SessionBeanStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatefulSessionBeanStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatelessSessionBeanStats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Statistic.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Stats.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/TimeStatistic.java
   projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/URLStats.java
Log:
JBEE-77 - add jboss-j2eemgt-api_1.1_spec project

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/pom.xml
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/pom.xml	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/pom.xml	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,30 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.spec</groupId>
+    <artifactId>jboss-specs-parent</artifactId>
+    <version>1.0.0.Beta2</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.spec.javax.management.j2ee</groupId>
+  <artifactId>jboss-j2eemgmt-api_1.1_spec</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>JavaEE Management 1.1 API</name>
+  <description>JSR-77 JavaEE Management 1.1 API classes</description>
+  
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec</developerConnection>
+    <url>http://fisheye.jboss.org/browse/JBossAS/projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec</url>
+  </scm>
+  
+ <dependencies>
+     <dependency>
+        <groupId>org.jboss.spec.javax.ejb</groupId>
+        <artifactId>jboss-ejb-api_3.1_spec</artifactId>
+        <version>1.0.0.Final</version>
+        <scope>provided</scope>
+     </dependency>
+ </dependencies>
+
+</project>

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ListenerRegistration.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ListenerRegistration.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ListenerRegistration.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee;
+
+import javax.management.ObjectName;
+import javax.management.NotificationListener;
+import javax.management.NotificationFilter;
+import javax.management.InstanceNotFoundException;
+import javax.management.ListenerNotFoundException;
+import java.rmi.RemoteException;
+import java.io.Serializable;
+
+/**
+ * ListenerRegistration defines the methods which clients of the MEJB use to add and remove event listeners.
+ *
+ * @author thomas.diesler at jboss.org
+ */
+public interface ListenerRegistration extends Serializable
+
+{
+   /**
+    * Add a listener to a registered managed object.
+    *
+    * @param name     The name of the managed object on which the listener should be added.
+    * @param listener The listener object which will handle the notifications emitted by the registered managed object.
+    * @param filter   The filter object. If filter is null, no filtering will be performed before handling notifications.
+    * @param handback The context to be sent to the listener when a notification is emitted.
+    * @throws InstanceNotFoundException The managed object name provided does not match any of the registered managed objects.
+    * @throws RemoteException           A communication exception occurred during the execution of a remote method call
+    */
+   public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
+           throws InstanceNotFoundException, RemoteException;
+
+   /**
+    * Remove a listener from a registered managed object.
+    *
+    * @param name     The name of the managed object on which the listener should be removed.
+    * @param listener The listener object which will handle the notifications emitted by the registered managed object.
+    *                 This method will remove all the information related to this listener.
+    * @throws InstanceNotFoundException The managed object name provided does not match any of the registered managed objects.
+    * @throws ListenerNotFoundException The listener is not registered in the managed object.
+    * @throws RemoteException           A communication exception occurred during the execution of a remote method call
+    */
+   public void removeNotificationListener(ObjectName name, NotificationListener listener)
+           throws InstanceNotFoundException, ListenerNotFoundException, RemoteException;
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/Management.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/Management.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/Management.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,178 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee;
+
+import javax.management.*;
+import javax.ejb.EJBObject;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * The Management interface provides the APIs to navigate and manipulate managed objects.
+ * The J2EE Management EJB component (MEJB) must implement this as its remote interface.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface Management extends EJBObject
+{
+   /**
+    * Gets the names of managed objects controlled by the MEJB.
+    * This method enables any of the following to be obtained:
+    * The names of all managed objects, the names of a set of managed objects specified by pattern matching on the
+    * ObjectName, a specific managed object name (equivalent to testing whether a managed object is registered).
+    * When the object name is null or no domain and key properties are specified, all objects are selected.
+    * It returns the set of J2EEObjectNames for the managed objects selected.
+    *
+    * @param name The object name pattern identifying the managed objects to be retrieved. If null or no domain and key properties are specified, all the managed objects registered will be retrieved.
+    * @return A set containing the ObjectNames for the managed objects selected. If no managed object satisfies the query, an empty set is returned.
+    * @throws RemoteException A communication exception occurred during the execution of a remote method call
+    */
+   public Set queryNames(ObjectName name, QueryExp query)
+           throws RemoteException;
+
+   /**
+    * Checks whether a managed object, identified by its object name, is already registered with the MEJB.
+    *
+    * @param name The object name of the managed object to be checked.
+    * @return True if the managed object is already registered in the MEJB, false otherwise.
+    * @throws RemoteException A communication exception occurred during the execution of a remote method call
+    */
+   public boolean isRegistered(ObjectName name)
+           throws RemoteException;
+
+
+   /**
+    * Returns the number of managed objects registered in the MEJB.
+    *
+    * @throws RemoteException A communication exception occurred during the execution of a remote method call
+    */
+   public Integer getMBeanCount()
+           throws RemoteException;
+
+   /**
+    * This method discovers the attributes and operations that a managed object exposes for management.
+    *
+    * @param name The name of the managed object to analyze
+    * @return An instance of MBeanInfo allowing the retrieval of all attributes and operations of this managed object.
+    * @throws IntrospectionException    An exception occurs during introspection.
+    * @throws InstanceNotFoundException The managed object specified is not found.
+    * @throws ReflectionException       An exception occurred when trying to perform reflection on a managed object
+    * @throws RemoteException           A communication exception occurred during the execution of a remote method call
+    */
+   public MBeanInfo getMBeanInfo(ObjectName name)
+           throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException;
+
+
+   /**
+    * Gets the value of a specific attribute of a named managed object. The managed object is identified by its object name.
+    *
+    * @param name      The object name of the managed object from which the attribute is to be retrieved.
+    * @param attribute A String specifying the name of the attribute to be retrieved.
+    * @return The value of the retrieved attribute.
+    * @throws AttributeNotFoundException - The attribute specified is not accessible in the managed object.
+    * @throws MBeanException             - Wraps an exception thrown by the managed object's getter.
+    * @throws InstanceNotFoundException  - The managed object specified is not registered in the MEJB.
+    * @throws ReflectionException        - An exception occurred when trying to invoke the getAttribute method of a Dynamic MBean
+    * @throws RemoteException            - A communication exception occurred during the execution of a remote method call getAttributes
+    */
+   public Object getAttribute(ObjectName name, String attribute)
+           throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException;
+
+   /**
+    * Enables the values of several attributes of a named managed object. The managed object is identified by its object name.
+    *
+    * @param name       The object name of the managed object from which the attributes are retrieved.
+    * @param attributes A list of the attributes to be retrieved.
+    * @return The list of the retrieved attributes.
+    * @throws InstanceNotFoundException - The managed object specified is not registered in the MEJB.
+    * @throws ReflectionException       - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
+    * @throws RemoteException           - A communication exception occurred during the execution of a remote method call
+    */
+   public AttributeList getAttributes(ObjectName name, String[] attributes)
+           throws InstanceNotFoundException, ReflectionException, RemoteException;
+
+   /**
+    * Sets the value of a specific attribute of a named managed object. The managed object is identified by its object name.
+    *
+    * @param name      The name of the managed object within which the attribute is to be set.
+    * @param attribute The identification of the attribute to be set and the value it is to be set to.
+    * @throws InstanceNotFoundException
+    * @throws AttributeNotFoundException
+    * @throws InstanceNotFoundException      - The managed object specified is not registered in the MEJB.
+    * @throws AttributeNotFoundException     - The attribute specified is not accessible in the managed object.
+    * @throws InvalidAttributeValueException - The value specified for the attribute is not valid.
+    * @throws MBeanException                 - Wraps an exception thrown by the managed object's setter.
+    * @throws ReflectionException            - An exception occurred when trying to invoke the setAttribute method of a Dynamic MBean.
+    * @throws RemoteException                - A communication exception occurred during the execution of a remote method call setAttributes
+    */
+   public void setAttribute(ObjectName name, Attribute attribute)
+           throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException;
+
+
+   /**
+    * Sets the values of several attributes of a named managed object. The managed object is identified by its object name.
+    *
+    * @param name       The object name of the managed object within which the attributes are to be set.
+    * @param attributes A list of attributes: The identification of the attributes to be set and the values they are to be set to.
+    * @return The list of attributes that were set, with their new values.
+    * @throws InstanceNotFoundException - The managed object specified is not registered in the MEJB.
+    * @throws ReflectionException       - An exception occurred when trying to invoke the setAttributes method of a Dynamic MBean.
+    * @throws RemoteException           - A communication exception occurred during the execution of a remote method call invoke
+    */
+   public AttributeList setAttributes(ObjectName name, AttributeList attributes)
+           throws InstanceNotFoundException, ReflectionException, RemoteException;
+
+   /**
+    * Invokes an operation on a managed object
+    *
+    * @param name          The object name of the managed object on which the method is to be invoked.
+    * @param operationName The name of the operation to be invoked.
+    * @param params        An array containing the parameters to be set when the operation is invoked
+    * @param signature     An array containing the signature of the operation. The class objects will be loaded using the same class loader as the one used for loading the managed object on which the operation was invoked.
+    * @return The object returned by the operation, which represents the result of invoking the operation on the managed object specified.
+    * @throws InstanceNotFoundException - The managed object specified is not registered in the MEJB.
+    * @throws MBeanException            - Wraps an exception thrown by the managed object's invoked method.
+    * @throws ReflectionException       - Wraps a java.lang.Exception thrown while trying to invoke the method.
+    * @throws RemoteException           - A communication exception occurred during the execution of a remote method call getDefaultDomain
+    */
+   public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature)
+           throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException;
+
+
+   /**
+    * Returns the default domain name of this MEJB.
+    *
+    * @throws RemoteException RemoteException - A communication exception occurred during the execution of a remote method call getListenerRegistry
+    */
+   public String getDefaultDomain() throws RemoteException;
+
+   /**
+    * Returns the listener registry implementation for this MEJB. The listener registry implements the methods that enable clints to add and remove event notification listeners managed objects
+    *
+    * @return An implementation of javax.management.j2ee.ListenerRegistration
+    * @throws RemoteException - A communication exception occurred during the execution of a remote method call
+    */
+   public ListenerRegistration getListenerRegistry()
+           throws RemoteException;
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ManagementHome.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ManagementHome.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/ManagementHome.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee;
+
+import javax.management.*;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * The required home interface for the J2EE Management EJB component (MEJB). A J2EE client must be able to create a
+ * compliant session object using the specified create() method.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface ManagementHome extends EJBHome
+{
+   /**
+    * Creates an MEJB session object which provides access to the J2EE Management Model
+    *
+    * @return An MEJB session object which implements javax.management.j2ee.Management
+    * @throws CreateException Indicates a failure to create the EJB object
+    * @throws RemoteException A communication exception occurred during the execution of a remote method call CreateException
+    */
+   public Management create() throws CreateException, RemoteException;
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundaryStatistic.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundaryStatistic.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundaryStatistic.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies standard measurements of the upper and lower limits of the value of an attribute.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface BoundaryStatistic extends Statistic
+{
+   /**
+    * The upper limit of the value of this attribute.
+    */
+   public long getUpperBound();
+
+
+   /**
+    * The lower limit of the value of this attribute.The upper limit of the value of this attribute.
+    */
+   public long getLowerBound();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundedRangeStatistic.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundedRangeStatistic.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/BoundedRangeStatistic.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * The BoundedRangeStatistic model aggregates the attributes of RangeStatistic and BoundaryStatistic and provides
+ * standard measurements of a range that has fixed limits.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface BoundedRangeStatistic extends BoundaryStatistic, RangeStatistic
+{
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/CountStatistic.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/CountStatistic.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/CountStatistic.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies standard count measurements.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface CountStatistic extends Statistic
+{
+   /**
+    * The count since the last reset.
+    */
+   public long getCount();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EJBStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EJBStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EJBStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies statistics provided by all EJB component types.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface EJBStats extends Stats
+{
+   /**
+    * Number of times create was called.
+    */
+   public CountStatistic getCreateCount();
+
+   /**
+    * Number of times remove was called.
+    */
+   public CountStatistic getRemoveCount();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EntityBeanStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EntityBeanStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/EntityBeanStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies statistics provided by entity beans.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface EntityBeanStats extends EJBStats
+{
+   /**
+    * Number of beans in the ready state.
+    */
+   public RangeStatistic getReadyCount();
+
+
+   /**
+    * Number of beans in the pooled state.
+    */
+   public RangeStatistic getPooledCount();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionPoolStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionPoolStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionPoolStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JCA Connection Pool
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JCAConnectionPoolStats extends JCAConnectionStats
+{
+   /**
+    * The number of connections closed
+    */
+   public CountStatistic getCloseCount();
+
+   /**
+    * The number of connections created
+    */
+   public CountStatistic getCreateCount();
+
+   /**
+    * The number of free connections in the pool
+    */
+   public BoundedRangeStatistic getFreePoolSize();
+
+   /**
+    * The size of the connection pool
+    */
+   public BoundedRangeStatistic getPoolSize();
+
+   /**
+    * The number of threads waiting for a connection
+    *
+    * @return BoundedRangeStatistic
+    */
+   public RangeStatistic getWaitingThreadCount();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAConnectionStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JCA connection
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JCAConnectionStats extends Stats
+{
+   /**
+    * Returns the associated JCAConnectionFactory OBJECT_NAME
+    *
+    * @return String the OBJECT_NAME of the managed object that identifies the connection factory for this connection getManagedConnectionFactory
+    */
+   public String getConnectionFactory();
+
+   /**
+    * Returns the associated JCAManagedConnectionFactory OBJECT_NAME
+    *
+    * @return String the OBJECT_NAME of the managed object that identifies the managed connection factory for this connection getWaitTime
+    */
+   public String getManagedConnectionFactory();
+
+   /**
+    * Returns the time spent waiting for a connection to be available
+    */
+   public TimeStatistic getWaitTime();
+
+   /**
+    * Returns the time spent using a connection
+    */
+   public TimeStatistic getUseTime();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JCAStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * Specifies statistics provided by a JCA resource
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JCAStats extends Stats
+{
+   /**
+    * Returns an array of JCAConnectionStats that provide statistics about the non-pooled connections associated with the referencing JCA resource statistics
+    */
+   public JCAConnectionStats[] getConnections();
+
+   /**
+    * Returns an array of JCAConnectionPool Stats that provide statistics about the connection pools associated with the referencing JCA resource statistics
+    */
+   public JCAConnectionPoolStats[] getConnectionPools();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionPoolStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionPoolStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionPoolStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JDBC connection pool.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JDBCConnectionPoolStats extends JDBCConnectionStats
+{
+   /**
+    * Number of connections created.
+    */
+   public CountStatistic getCreateCount();
+
+   /**
+    * Number of connections closed.
+    */
+   public CountStatistic getCloseCount();
+
+   /**
+    * Size of the connection pool.
+    */
+   public BoundedRangeStatistic getPoolSize();
+
+   /**
+    * Number of free connections in the pool.
+    */
+   public BoundedRangeStatistic getFreePoolSize();
+
+   /**
+    * Number of threads waiting for a connection.
+    */
+   public RangeStatistic getWaitingThreadCount();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCConnectionStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by all (pooled and non-pooled) JDBC connections.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JDBCConnectionStats extends Stats
+{
+   /**
+    * Identifies the JDBC driver for the corresponding JDBCConnection.
+    */
+   public String getJdbcDataSource();
+
+   /**
+    * Time spent waiting for a connection to be available.
+    */
+   public TimeStatistic getWaitTime();
+
+   /**
+    * Time spent using a connection.
+    */
+   public TimeStatistic getUseTime();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JDBCStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * Statistics provided by a JDBC resource
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JDBCStats extends Stats
+{
+   /**
+    * 
+    */
+   public JDBCConnectionStats[] getConnections();
+
+   /**
+    *
+    */
+   public JDBCConnectionPoolStats[] getConnectionPools();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConnectionStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConnectionStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConnectionStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * Specifies the statistics provided by a JMS connection
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JMSConnectionStats  extends Stats
+{
+   /**
+    * Returns an array of JMSSessionStats that provide statistics about the sessions associated with the referencing JMSConnectionStats.
+    */
+   public JMSSessionStats[] getSessions();
+
+   /**
+    * Returns the transactional state of this JMS connection. If true, indicates that this JMS connection is transactional.
+    */
+   public boolean isTransactional();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConsumerStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConsumerStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSConsumerStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JMS message consumer
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JMSConsumerStats extends JMSEndpointStats
+{
+   /**
+    * Returns a string that encapsulates the identity of a message origin
+    */
+   public String getOrigin();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSEndpointStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSEndpointStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSEndpointStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JMS message producer or a JMS message consumer.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JMSEndpointStats extends Stats
+{
+   /**
+    * Number of messages sent or received.
+    */
+   public CountStatistic getMessageCount();
+
+   /**
+    * Number of pending messages.
+    */
+   public CountStatistic getPendingMessageCount();
+
+   /**
+    * Number of messages that expired before delivery.
+    */
+   public CountStatistic getExpiredMessageCount();
+
+
+   /**
+    * Time spent by a message before being delivered.
+    */
+   public TimeStatistic getMessageWaitTime();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSProducerStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSProducerStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSProducerStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JMS message producer
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JMSProducerStats extends JMSEndpointStats
+{
+   /**
+    * Returns a string that encapsulates the identity of the message destination
+    */
+   public String getDestination();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSSessionStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSSessionStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSSessionStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JMS session.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JMSSessionStats extends Stats
+{
+   /**
+    * Returns an array of JMSProducerStats that provide statistics about the message producers associated with the referencing JMS session statistics.
+    */
+   public JMSProducerStats[] getProducers();
+
+   /**
+    * Returns an array of JMSConsumerStats that provide statistics about the message consumers associated with the referencing JMS session statistics.
+    */
+   public JMSConsumerStats[] getConsumers();
+
+   /**
+    * Number of messages exchanged.
+    */
+   public CountStatistic getMessageCount();
+
+   /**
+    * Number of pending messages.
+    */
+   public CountStatistic getPendingMessageCount();
+
+   /**
+    * Number of expired messages.
+    */
+   public CountStatistic getExpiredMessageCount();
+
+   /**
+    * Time spent by a message before being delivered.
+    */
+   public TimeStatistic getMessageWaitTime();
+
+
+   /**
+    * Number of durable subscriptions.
+    */
+   public CountStatistic getDurableSubscriptionCount();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JMSStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JMS Resource
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JMSStats extends Stats
+{
+   /**
+    * Returns an array of JMSConnectionStats that provide statistics about the connections associated with the referencing JMS resource.
+    */
+   public JMSConnectionStats[] getConnections();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JTAStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JTAStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JTAStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JTA resource.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JTAStats extends Stats
+{
+   /**
+    * Number of active transactions.
+    */
+   public CountStatistic getActiveCount();
+
+   /**
+    * Number of committed transactions.
+    */
+   public CountStatistic getCommittedCount();
+
+   /**
+    * Number of rolled-back transactions.
+    */
+   public CountStatistic getRolledbackCount();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JVMStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JVMStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JVMStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a Java VM.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JVMStats extends Stats
+{
+   /**
+    * Amount of time the JVM has been running.
+    */
+   public CountStatistic getUpTime();
+
+   /**
+    * Size of the JVM's heap.
+    */
+   public BoundedRangeStatistic getHeapSize();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JavaMailStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JavaMailStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/JavaMailStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a JavaMail resource.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface JavaMailStats
+{
+   /**
+    * The number of mail messages sent.
+    */
+   public CountStatistic getSentMailCount();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/MessageDrivenBeanStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/MessageDrivenBeanStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/MessageDrivenBeanStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a message driven bean.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface MessageDrivenBeanStats extends EJBStats
+{
+   /**
+    * Number of messages received.
+    */
+   public CountStatistic getMessageCount();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/RangeStatistic.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/RangeStatistic.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/RangeStatistic.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies standard measurements of the lowest and highest values an attribute has held as well as its current value.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface RangeStatistic extends Statistic
+{
+   /**
+    * The highest value this attribute has held since the beginning of the measurement.
+    */
+   public long getHighWaterMark();
+
+   /**
+    * The lowest value this attribute has held since the beginning of the measurement.
+    */
+   public long getLowWaterMark();
+
+   /**
+    * The current value of this attribute.
+    */
+   public long getCurrent();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/ServletStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/ServletStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/ServletStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * Specifies the statistics provided by a Servlet.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface ServletStats extends Stats
+{
+   /**
+    * Execution times for the methods.
+    */
+   public TimeStatistic getServiceTime();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/SessionBeanStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/SessionBeanStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/SessionBeanStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by session beans of both stateful and stateless types.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface SessionBeanStats extends EJBStats
+{
+   /**
+    * Number of beans in the method-ready state.
+    */
+   public RangeStatistic getMethodReadyCount();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatefulSessionBeanStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatefulSessionBeanStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatefulSessionBeanStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies the statistics provided by a stateful session bean.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface StatefulSessionBeanStats extends SessionBeanStats
+{
+   /**
+    * Number of beans that are in the passive state.
+    */
+   public RangeStatistic getPassiveCount();
+
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatelessSessionBeanStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatelessSessionBeanStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/StatelessSessionBeanStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * Specifies the statistics provided by a stateless session bean.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface StatelessSessionBeanStats extends SessionBeanStats
+{
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Statistic.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Statistic.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Statistic.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * The Statistic model and its sub-models specify the data models which are requried to be used to provide the performance
+ * data described by the specific attributes in the Stats models.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface Statistic
+{
+   /**
+    * The name of this Statistic.
+    */
+   public String getName();
+
+   /**
+    * The unit of measurement for this Statistic. Valid values for TimeStatistic measurements are "HOUR", "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND" and "NANOSECOND".
+    */
+   public String getUnit();
+
+   /**
+    * A human-readable description of the Statistic.
+    */
+   public String getDescription();
+
+   /**
+    * The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
+    */
+   public long getStartTime();
+
+   /**
+    * The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
+    */
+   public long getLastSampleTime();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Stats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Stats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/Stats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * The Stats model and its submodels specify performance data attributes for each of the specific managed object types.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface Stats
+{
+   /**
+    * Get a Statistic by name.
+    */
+   public Statistic getStatistic(String statisticName);
+
+   /**
+    * Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports.
+    * Attributes named in the list must correspond to attributes that will return a Statistic object of the appropriate type
+    * which contains valid performance data. The return value of attributes in the Stats submodel that are not included in
+    * the statisticNames list must be null. For each name in the statisticNames list there must be one Statistic with the
+    * same name in the statistics list.
+    */
+   public String[] getStatisticNames();
+
+   /**
+    * Returns an array containing all of the Statistic objects supported by this Stats object.
+    */
+   public Statistic[] getStatistics();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/TimeStatistic.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/TimeStatistic.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/TimeStatistic.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+/**
+ * Specifies standard timing measurements.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface TimeStatistic extends Statistic
+{
+   /**
+    * Number of times the operation was invoked since the beginning of this measurement.
+    */
+   public long getCount();
+
+   /**
+    * The maximum amount of time taken to complete one invocation of this operation since the beginning of this measurement.
+    */
+   public long getMaxTime();
+
+   /**
+    * The minimum amount of time taken to complete one invocation of this operation since the beginning of this measurement.
+    */
+   public long getMinTime();
+
+   /**
+    * This is the sum total of time taken to complete every invocation of this operation since the beginning of this measurement.
+    * Dividing totalTime by count will give you the average execution time for this operation.
+    */
+   public long getTotalTime();
+}
+

Added: projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/URLStats.java
===================================================================
--- projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/URLStats.java	                        (rev 0)
+++ projects/specs/trunk/jboss-j2eemgmt-api_1.1_spec/src/main/java/javax/management/j2ee/statistics/URLStats.java	2011-04-12 23:36:38 UTC (rev 111173)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.management.j2ee.statistics;
+
+import javax.management.*;
+import javax.management.j2ee.Management;
+import javax.ejb.EJBObject;
+import javax.ejb.EJBHome;
+import javax.ejb.CreateException;
+import java.rmi.RemoteException;
+import java.util.Set;
+
+/**
+ * Specifies the statistics provided by a URL resource.
+ * 
+ * @author thomas.diesler at jboss.org
+ */
+public interface URLStats extends Stats
+{
+}
+



More information about the jboss-cvs-commits mailing list