[jboss-cvs] JBossAS SVN: r89744 - projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 3 11:23:52 EDT 2009


Author: ALRubinger
Date: 2009-06-03 11:23:52 -0400 (Wed, 03 Jun 2009)
New Revision: 89744

Modified:
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicMessageDrivenMetrics.java
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionInstanceMetrics.java
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionInstanceMetrics.java
Log:
[EJBTHREE-1839] Add @ManagementProperty.description

Modified: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicMessageDrivenMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicMessageDrivenMetrics.java	2009-06-03 15:07:34 UTC (rev 89743)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicMessageDrivenMetrics.java	2009-06-03 15:23:52 UTC (rev 89744)
@@ -85,7 +85,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#getKeepAliveMillis()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of milliseconds the instance will keep-alive")
    public int getKeepAliveMillis()
    {
       return this.getMBean().getKeepAliveMillis();
@@ -94,7 +94,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#getMaxMessages()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maximum number of messages")
    public int getMaxMessages()
    {
       return this.getMBean().getMaxMessages();
@@ -103,7 +103,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#getMaxPoolSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maximum number of backing objects allowed in the instance pool")
    public int getMaxPoolSize()
    {
       return this.getMBean().getMaxPoolSize();
@@ -112,7 +112,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#getMinPoolSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The minimum number of backing objects allowed in the instance pool")
    public int getMinPoolSize()
    {
       return this.getMBean().getMinPoolSize();
@@ -121,7 +121,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#isDeliveryActive()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "If active delivery is enabled")
    public boolean isDeliveryActive()
    {
       return this.getMBean().isDeliveryActive();
@@ -130,7 +130,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#startDelivery()
     */
-   @ManagementOperation
+   @ManagementOperation(description = "Starts delivery to the MDB")
    public void startDelivery()
    {
       this.getMBean().startDelivery();
@@ -139,7 +139,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean#stopDelivery()
     */
-   @ManagementOperation
+   @ManagementOperation(description = "Stops delivery to the MDB")
    public void stopDelivery()
    {
       this.getMBean().stopDelivery();
@@ -148,7 +148,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.ContainerDelegateWrapperMBean#getInvokeStats()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "Obtains the invocation statistics for this MDB")
    public InvocationStatistics getInvokeStats()
    {
       return this.getMBean().getInvokeStats();

Modified: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionInstanceMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionInstanceMetrics.java	2009-06-03 15:07:34 UTC (rev 89743)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionInstanceMetrics.java	2009-06-03 15:23:52 UTC (rev 89744)
@@ -83,7 +83,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getCacheSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The size of the SFSB instance cache for currently active sessions")
    public int getCacheSize()
    {
       return this.getCache().getCacheSize();
@@ -93,7 +93,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getTotalSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The total size of the SFSB instance cache, including passivated sessions")
    public int getTotalSize()
    {
       return this.getCache().getTotalSize();
@@ -103,7 +103,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getPassivatedCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions currently passivated")
    public int getPassivatedCount()
    {
       return this.getCache().getPassivatedCount();
@@ -113,7 +113,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getCreateCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions created")
    public int getCreateCount()
    {
       return this.getCache().getCreateCount();
@@ -123,7 +123,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getRemoveCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions removed")
    public int getRemoveCount()
    {
       return this.getCache().getRemoveCount();
@@ -133,7 +133,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getAvailableCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions that may be added to the current cache")
    public int getAvailableCount()
    {
       return this.getCache().getAvailableCount();
@@ -143,7 +143,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getMaxSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maximum size of the SFSB instance cache")
    public int getMaxSize()
    {
       return this.getCache().getMaxSize();
@@ -153,7 +153,7 @@
     * (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getCurrentSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions currently active")
    public int getCurrentSize()
    {
       return this.getCache().getCurrentSize();

Modified: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionInstanceMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionInstanceMetrics.java	2009-06-03 15:07:34 UTC (rev 89743)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionInstanceMetrics.java	2009-06-03 15:23:52 UTC (rev 89744)
@@ -82,7 +82,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getAvailableCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of slots available in the instance pool")
    public int getAvailableCount()
    {
       return this.getPool().getAvailableCount();
@@ -91,7 +91,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getCreateCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of bean instances created")
    public int getCreateCount()
    {
       return this.getPool().getCreateCount();
@@ -100,7 +100,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getCurrentSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The current number of bean instances in the backing pool for this SLSB")
    public int getCurrentSize()
    {
       return this.getPool().getCurrentSize();
@@ -109,7 +109,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getMaxSize()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maxmimum size of the backing instance pool")
    public int getMaxSize()
    {
       return this.getPool().getMaxSize();
@@ -118,7 +118,7 @@
    /* (non-Javadoc)
     * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getRemoveCount()
     */
-   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of backing SLSB instances which have been removed")
    public int getRemoveCount()
    {
       return this.getPool().getRemoveCount();




More information about the jboss-cvs-commits mailing list