[jboss-cvs] JBossAS SVN: r90219 - in projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics: deployer and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jun 15 22:08:01 EDT 2009
Author: ALRubinger
Date: 2009-06-15 22:08:01 -0400 (Mon, 15 Jun 2009)
New Revision: 90219
Added:
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionMetrics.java
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionMetrics.java
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedSessionMetricsWrapperBase.java
Removed:
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
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedInvocationStatisticsSessionWrapperBase.java
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatefulInvocationStatisticsWrapper.java
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatelessInvocationStatisticsWrapper.java
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/spi/
Modified:
projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java
Log:
[EJBTHREE-1839] New round of mapping changes to EJB3 metrics requested by Jopr team
Deleted: 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-16 02:02:47 UTC (rev 90218)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionInstanceMetrics.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -1,189 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
-
-import org.jboss.ejb3.cache.StatefulCache;
-import org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics;
-import org.jboss.ejb3.stateful.StatefulContainer;
-import org.jboss.managed.api.annotation.ManagementComponent;
-import org.jboss.managed.api.annotation.ManagementObject;
-import org.jboss.managed.api.annotation.ManagementProperties;
-import org.jboss.managed.api.annotation.ManagementProperty;
-import org.jboss.managed.api.annotation.ViewUse;
-
-/**
- * BasicStatefulSessionInstanceMetrics
- *
- * Implementation of a SFSB instance
- * metrics collector. Additionally exposed as a
- * management object.
- *
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
- at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Stateful Session Bean Instance Metrics", componentType = @ManagementComponent(type = "EJB3", subtype = "SFSB"))
-public class BasicStatefulSessionInstanceMetrics implements StatefulSessionInstanceMetrics
-{
-
- // --------------------------------------------------------------------------------||
- // Instance Members ---------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Underlying Container through which we'll get the metrics
- */
- private StatefulContainer sfsb;
-
- // --------------------------------------------------------------------------------||
- // Constructor --------------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Constructor
- *
- * @param slsb The underlying container
- * @throws IllegalArgumentException If the underlying container is not supplied
- */
- public BasicStatefulSessionInstanceMetrics(final StatefulContainer sfsb) throws IllegalArgumentException
- {
- // Precondition check
- if (sfsb == null)
- {
- throw new IllegalArgumentException("Underlying container was null");
- }
-
- // Set
- this.setSlsb(sfsb);
- }
-
- // --------------------------------------------------------------------------------||
- // Required Implementations -------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getCacheSize()
- */
- @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();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getTotalSize()
- */
- @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();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getPassivatedCount()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions currently passivated")
- public int getPassivatedCount()
- {
- return this.getCache().getPassivatedCount();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getCreateCount()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions created")
- public int getCreateCount()
- {
- return this.getCache().getCreateCount();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getRemoveCount()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions removed")
- public int getRemoveCount()
- {
- return this.getCache().getRemoveCount();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getAvailableCount()
- */
- @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();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getMaxSize()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maximum size of the SFSB instance cache")
- public int getMaxSize()
- {
- return this.getCache().getMaxSize();
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getCurrentSize()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions currently active")
- public int getCurrentSize()
- {
- return this.getCache().getCurrentSize();
- }
-
- // --------------------------------------------------------------------------------||
- // Accessors / Mutators -----------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Obtains the underlying cache
- */
- private StatefulCache getCache()
- {
- return this.getSfsb().getCache();
- }
-
- /**
- * @return the slsb
- */
- private StatefulContainer getSfsb()
- {
- return sfsb;
- }
-
- /**
- * @param sfsb the slsb to set
- */
- private void setSlsb(final StatefulContainer sfsb)
- {
- this.sfsb = sfsb;
- }
-}
Added: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionMetrics.java (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionMetrics.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -0,0 +1,188 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
+
+import org.jboss.ejb3.cache.StatefulCache;
+import org.jboss.ejb3.stateful.StatefulContainer;
+import org.jboss.ejb3.statistics.InvocationStatistics;
+import org.jboss.managed.api.annotation.ManagementComponent;
+import org.jboss.managed.api.annotation.ManagementObject;
+import org.jboss.managed.api.annotation.ManagementProperties;
+import org.jboss.managed.api.annotation.ManagementProperty;
+import org.jboss.managed.api.annotation.ViewUse;
+
+/**
+ * BasicStatefulSessionInstanceMetrics
+ *
+ * Implementation of a SFSB instance
+ * metrics collector. Additionally exposed as a
+ * management object.
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Stateful Session Bean Metrics", componentType = @ManagementComponent(type = "EJB3", subtype = "SFSB"))
+public class BasicStatefulSessionMetrics extends ManagedSessionMetricsWrapperBase
+{
+
+ // --------------------------------------------------------------------------------||
+ // Instance Members ---------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Underlying Container through which we'll get the metrics
+ */
+ private StatefulContainer sfsb;
+
+ // --------------------------------------------------------------------------------||
+ // Constructor --------------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Constructor
+ *
+ * @param invocationStats Invocation stats delegate
+ * @param slsb The underlying container
+ * @throws IllegalArgumentException If either argument is not supplied
+ */
+ public BasicStatefulSessionMetrics(final InvocationStatistics invocationStats, final StatefulContainer sfsb)
+ throws IllegalArgumentException
+ {
+ // Invoke super
+ super(sfsb, invocationStats);
+
+ // Set
+ this.setSlsb(sfsb);
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Required Implementations -------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getCacheSize()
+ */
+ @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();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getTotalSize()
+ */
+ @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();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics#getPassivatedCount()
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions currently passivated")
+ public int getPassivatedCount()
+ {
+ return this.getCache().getPassivatedCount();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getCreateCount()
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions created")
+ public int getCreateCount()
+ {
+ return this.getCache().getCreateCount();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getRemoveCount()
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions removed")
+ public int getRemoveCount()
+ {
+ return this.getCache().getRemoveCount();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getAvailableCount()
+ */
+ @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();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getMaxSize()
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maximum size of the SFSB instance cache")
+ public int getMaxSize()
+ {
+ return this.getCache().getMaxSize();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.spi.SessionInstanceMetrics#getCurrentSize()
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of sessions currently active")
+ public int getCurrentSize()
+ {
+ return this.getCache().getCurrentSize();
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Accessors / Mutators -----------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Obtains the underlying cache
+ */
+ private StatefulCache getCache()
+ {
+ return this.getSfsb().getCache();
+ }
+
+ /**
+ * @return the slsb
+ */
+ private StatefulContainer getSfsb()
+ {
+ return sfsb;
+ }
+
+ /**
+ * @param sfsb the slsb to set
+ */
+ private void setSlsb(final StatefulContainer sfsb)
+ {
+ this.sfsb = sfsb;
+ }
+}
Property changes on: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatefulSessionMetrics.java
___________________________________________________________________
Name: svn:executable
+ *
Deleted: 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-16 02:02:47 UTC (rev 90218)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionInstanceMetrics.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -1,154 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
-
-import org.jboss.ejb3.metrics.spi.SessionInstanceMetrics;
-import org.jboss.ejb3.pool.Pool;
-import org.jboss.ejb3.stateless.StatelessContainer;
-import org.jboss.managed.api.annotation.ManagementComponent;
-import org.jboss.managed.api.annotation.ManagementObject;
-import org.jboss.managed.api.annotation.ManagementProperties;
-import org.jboss.managed.api.annotation.ManagementProperty;
-import org.jboss.managed.api.annotation.ViewUse;
-
-/**
- * BasicStatelessSessionInstanceMetrics
- *
- * Implementation of a SLSB instance
- * metrics collector. Additionally exposed as a
- * management object.
- *
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
- at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Stateless Session Bean Instance Metrics", componentType = @ManagementComponent(type = "EJB3", subtype = "SLSB"))
-public class BasicStatelessSessionInstanceMetrics implements SessionInstanceMetrics
-{
-
- // --------------------------------------------------------------------------------||
- // Instance Members ---------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Underlying Container through which we'll get the metrics
- */
- private StatelessContainer slsb;
-
- // --------------------------------------------------------------------------------||
- // Constructor --------------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Constructor
- *
- * @param slsb The underlying container
- * @throws IllegalArgumentException If the underlying container is not supplied
- */
- public BasicStatelessSessionInstanceMetrics(final StatelessContainer slsb) throws IllegalArgumentException
- {
- // Precondition check
- if (slsb == null)
- {
- throw new IllegalArgumentException("Underlying container was null");
- }
-
- // Set
- this.setSlsb(slsb);
- }
-
- // --------------------------------------------------------------------------------||
- // Required Implementations -------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /* (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getAvailableCount()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of slots available in the instance pool")
- public int getAvailableCount()
- {
- return this.getPool().getAvailableCount();
- }
-
- /* (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getCreateCount()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of bean instances created")
- public int getCreateCount()
- {
- return this.getPool().getCreateCount();
- }
-
- /* (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getCurrentSize()
- */
- @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();
- }
-
- /* (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getMaxSize()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maxmimum size of the backing instance pool")
- public int getMaxSize()
- {
- return this.getPool().getMaxSize();
- }
-
- /* (non-Javadoc)
- * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getRemoveCount()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of backing SLSB instances which have been removed")
- public int getRemoveCount()
- {
- return this.getPool().getRemoveCount();
- }
-
- // --------------------------------------------------------------------------------||
- // Accessors / Mutators -----------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Obtains the underlying pool
- */
- private Pool getPool()
- {
- return this.getSlsb().getPool();
- }
-
- /**
- * @return the slsb
- */
- private StatelessContainer getSlsb()
- {
- return slsb;
- }
-
- /**
- * @param slsb the slsb to set
- */
- private void setSlsb(final StatelessContainer slsb)
- {
- this.slsb = slsb;
- }
-}
Added: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionMetrics.java (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionMetrics.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -0,0 +1,161 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
+
+import org.jboss.ejb3.pool.Pool;
+import org.jboss.ejb3.stateless.StatelessContainer;
+import org.jboss.ejb3.statistics.InvocationStatistics;
+import org.jboss.managed.api.annotation.ManagementComponent;
+import org.jboss.managed.api.annotation.ManagementObject;
+import org.jboss.managed.api.annotation.ManagementProperties;
+import org.jboss.managed.api.annotation.ManagementProperty;
+import org.jboss.managed.api.annotation.ViewUse;
+
+/**
+ * BasicStatelessSessionMetrics
+ *
+ * Implementation of a SLSB metrics collector. Additionally exposed as a
+ * management object.
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Stateless Session Bean Metrics", componentType = @ManagementComponent(type = "EJB3", subtype = "SLSB"))
+public class BasicStatelessSessionMetrics extends ManagedSessionMetricsWrapperBase
+{
+
+ // --------------------------------------------------------------------------------||
+ // Instance Members ---------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Underlying Container through which we'll get the metrics
+ */
+ private StatelessContainer slsb;
+
+ // --------------------------------------------------------------------------------||
+ // Constructor --------------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Constructor
+ *
+ * @param delegate Invocation stats delegate
+ * @param slsb The underlying container
+ * @throws IllegalArgumentException If either argument is not supplied
+ */
+ public BasicStatelessSessionMetrics(final InvocationStatistics delegate, final StatelessContainer slsb)
+ throws IllegalArgumentException
+ {
+ // Invoke Super
+ super(slsb, delegate);
+
+ // Set
+ this.setSlsb(slsb);
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Required Implementations -------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /* (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase#getAvailableCount()
+ */
+ @Override
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of slots available in the instance pool")
+ public int getAvailableCount()
+ {
+ return this.getPool().getAvailableCount();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase#getCreateCount()
+ */
+ @Override
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of bean instances created")
+ public int getCreateCount()
+ {
+ return this.getPool().getCreateCount();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase#getCurrentSize()
+ */
+ @Override
+ @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();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase#getMaxSize()
+ */
+ @Override
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The maxmimum size of the backing instance pool")
+ public int getMaxSize()
+ {
+ return this.getPool().getMaxSize();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase#getRemoveCount()
+ */
+ @Override
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC, description = "The number of backing SLSB instances which have been removed")
+ public int getRemoveCount()
+ {
+ return this.getPool().getRemoveCount();
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Accessors / Mutators -----------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Obtains the underlying pool
+ */
+ private Pool getPool()
+ {
+ return this.getSlsb().getPool();
+ }
+
+ /**
+ * @return the slsb
+ */
+ private StatelessContainer getSlsb()
+ {
+ return slsb;
+ }
+
+ /**
+ * @param slsb the slsb to set
+ */
+ private void setSlsb(final StatelessContainer slsb)
+ {
+ this.slsb = slsb;
+ }
+}
Property changes on: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicStatelessSessionMetrics.java
___________________________________________________________________
Name: svn:executable
+ *
Modified: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java 2009-06-16 02:02:47 UTC (rev 90218)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -40,7 +40,6 @@
import org.jboss.ejb3.Ejb3Deployment;
import org.jboss.ejb3.javaee.JavaEEApplication;
import org.jboss.ejb3.mdb.MessagingContainer;
-import org.jboss.ejb3.metrics.spi.SessionInstanceMetrics;
import org.jboss.ejb3.session.SessionContainer;
import org.jboss.ejb3.stateful.StatefulContainer;
import org.jboss.ejb3.stateless.StatelessContainer;
@@ -80,24 +79,6 @@
*/
public static final String NAME_OUTPUT = Ejb3MetricsDeployer.class.getName();
- /**
- * Suffix to append to the Deployment name in order to create a unique bind name
- * for the metrics POJO
- */
- private static final String BEAN_NAME_METRICS_SUFFIX = "-metrics";
-
- /**
- * Suffix to append to the Deployment name in order to create a unique bind name
- * for the instance metrics POJO
- */
- private static final String BEAN_NAME_METRICS_SUFFIX_INSTANCE = BEAN_NAME_METRICS_SUFFIX + "-instance";
-
- /**
- * Suffix to append to the Deployment name in order to create a unique bind name
- * for the invocation metrics POJO
- */
- private static final String BEAN_NAME_METRICS_SUFFIX_INVOCATION = BEAN_NAME_METRICS_SUFFIX + "-invocation";
-
/**
* The managed object factory.
*/
@@ -182,28 +163,18 @@
throw new IllegalStateException("Invocation statistics was null");
}
- // Define invocation metrics bean name
- final String invocationBeanName = ejbName + BEAN_NAME_METRICS_SUFFIX_INVOCATION;
-
// SLSB
if (sessionContainer instanceof StatelessContainer)
{
// Cast
final StatelessContainer slsb = (StatelessContainer) sessionContainer;
- // Make new instance metrics
- final SessionInstanceMetrics metrics = new BasicStatelessSessionInstanceMetrics(slsb);
+ // Make new metrics
+ final BasicStatelessSessionMetrics metrics = new BasicStatelessSessionMetrics(stats, slsb);
- // Make new invocation metrics
- final ManagedInvocationStatisticsSessionWrapperBase invocationMetrics = new ManagedStatelessInvocationStatisticsWrapper(
- stats);
-
// Add to beanFactories
- final String beanName = ejbName + BEAN_NAME_METRICS_SUFFIX_INSTANCE;
- this.attach(metrics, beanName, beanFactories);
- log.debug("Attached metrics stats for: " + beanName);
- this.attach(invocationMetrics, invocationBeanName, beanFactories);
- log.debug("Attached invocation stats for: " + invocationBeanName);
+ this.attach(metrics, ejbName, beanFactories);
+ log.debug("Attached metrics for: " + ejbName);
}
// SFSB
@@ -213,18 +184,11 @@
final StatefulContainer sfsb = (StatefulContainer) sessionContainer;
// Make new metrics
- final SessionInstanceMetrics metrics = new BasicStatefulSessionInstanceMetrics(sfsb);
+ final BasicStatefulSessionMetrics metrics = new BasicStatefulSessionMetrics(stats, sfsb);
- // Make new invocation metrics
- final ManagedInvocationStatisticsSessionWrapperBase invocationMetrics = new ManagedStatefulInvocationStatisticsWrapper(
- stats);
-
// Add to beanFactories
- final String beanName = ejbName + BEAN_NAME_METRICS_SUFFIX_INSTANCE;
- this.attach(metrics, beanName, beanFactories);
- log.debug("Attached metrics stats for: " + beanName);
- this.attach(invocationMetrics, invocationBeanName, beanFactories);
- log.debug("Attached invocation stats for: " + invocationBeanName);
+ this.attach(metrics, ejbName, beanFactories);
+ log.debug("Attached metrics for: " + ejbName);
}
}
@@ -238,9 +202,8 @@
final BasicMessageDrivenMetrics metrics = new BasicMessageDrivenMetrics(mdb);
// Add to beanFactories
- final String beanName = ejbName + BEAN_NAME_METRICS_SUFFIX_INSTANCE;
- this.attach(metrics, beanName, beanFactories);
- log.debug("Attached metrics stats for: " + beanName);
+ this.attach(metrics, ejbName, beanFactories);
+ log.debug("Attached stats for: " + ejbName);
}
}
Deleted: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedInvocationStatisticsSessionWrapperBase.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedInvocationStatisticsSessionWrapperBase.java 2009-06-16 02:02:47 UTC (rev 90218)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedInvocationStatisticsSessionWrapperBase.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -1,121 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
-
-import java.util.Map;
-
-import org.jboss.ejb3.statistics.InvocationStatistics;
-import org.jboss.managed.api.annotation.ManagementOperation;
-import org.jboss.managed.api.annotation.ManagementProperty;
-import org.jboss.managed.api.annotation.ViewUse;
-import org.jboss.metatype.api.annotations.MetaMapping;
-
-/**
- * ManagedInvocationStatisticsSessionWrapperBase
- *
- * Base class to to delegate to the underlying invocation stats,
- * exposing management properties and operations.
- *
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
-class ManagedInvocationStatisticsSessionWrapperBase
-{
- // --------------------------------------------------------------------------------||
- // Instance Members ---------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * The delegate
- */
- private InvocationStatistics delegate;
-
- // --------------------------------------------------------------------------------||
- // Constructor --------------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Constructor
- *
- * @param delegate
- * @throws IllegalArgumentException If the delegate was not supplied
- */
- ManagedInvocationStatisticsSessionWrapperBase(final InvocationStatistics delegate) throws IllegalArgumentException
- {
- // Precondition check
- if (delegate == null)
- {
- throw new IllegalArgumentException("Supplied delegate was null");
- }
-
- this.setDelegate(delegate);
- }
-
- // --------------------------------------------------------------------------------||
- // Delegate Methods ---------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * @return
- * @see org.jboss.ejb3.statistics.InvocationStatistics#getStats()
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
- //@MetaMapping(value = InvocationStatisticMetaMapper.class)
- public Map getStats()
- {
- return delegate.getStats();
- }
-
- /**
- *
- * @see org.jboss.ejb3.statistics.InvocationStatistics#resetStats()
- */
- @ManagementOperation
- public void resetStats()
- {
- delegate.resetStats();
- }
-
- /**
- * Exposes the time, represented in milliseconds since the epoch,
- * that the stats were last reset
- * @return
- */
- @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
- public long getLastResetTime()
- {
- return delegate.lastResetTime;
- }
-
- // --------------------------------------------------------------------------------||
- // Accessors / Mutators -----------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * @param stats the stats to set
- */
- private void setDelegate(final InvocationStatistics stats)
- {
- this.delegate = stats;
- }
-
-}
Added: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedSessionMetricsWrapperBase.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedSessionMetricsWrapperBase.java (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedSessionMetricsWrapperBase.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -0,0 +1,190 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
+
+import java.util.Map;
+
+import org.jboss.ejb3.session.SessionContainer;
+import org.jboss.ejb3.statistics.InvocationStatistics;
+import org.jboss.managed.api.annotation.ManagementOperation;
+import org.jboss.managed.api.annotation.ManagementProperty;
+import org.jboss.managed.api.annotation.ViewUse;
+
+/**
+ * ManagedSessionMetricsWrapperBase
+ *
+ * Base class to to delegate to the underlying invocation stats and
+ * instance metrics, exposing management properties and operations.
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+abstract class ManagedSessionMetricsWrapperBase
+{
+ // --------------------------------------------------------------------------------||
+ // Instance Members ---------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * The underlying session container
+ */
+ private SessionContainer container;
+
+ /**
+ * The delegate
+ */
+ private InvocationStatistics invocationStats;
+
+ // --------------------------------------------------------------------------------||
+ // Constructor --------------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Constructor
+ *
+ * @param container
+ * @param invocationStats
+ * @throws IllegalArgumentException If the stats or EJB Name were not supplied
+ */
+ ManagedSessionMetricsWrapperBase(final SessionContainer container, final InvocationStatistics invocationStats)
+ throws IllegalArgumentException
+ {
+ // Precondition check
+ if (invocationStats == null)
+ {
+ throw new IllegalArgumentException("Supplied invocation stats was null");
+ }
+ if (container == null)
+ {
+ throw new IllegalArgumentException("Container was null");
+ }
+
+ // Set properties
+ this.setInvocationStats(invocationStats);
+ this.setContainer(container);
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Delegate Methods ---------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * @return
+ * @see org.jboss.ejb3.statistics.InvocationStatistics#getStats()
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+ //@MetaMapping(value = InvocationStatisticMetaMapper.class)
+ public Map getInvocationStats()
+ {
+ return invocationStats.getStats();
+ }
+
+ /**
+ *
+ * @see org.jboss.ejb3.statistics.InvocationStatistics#resetStats()
+ */
+ @ManagementOperation
+ public void resetInvocationStats()
+ {
+ invocationStats.resetStats();
+ }
+
+ /**
+ * Exposes the time, represented in milliseconds since the epoch,
+ * that the stats were last reset
+ * @return
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+ public long getInvocationStatsLastResetTime()
+ {
+ return invocationStats.lastResetTime;
+ }
+
+ /**
+ * Returns the EJB Name
+ * @return
+ */
+ @ManagementProperty(readOnly = true, use = ViewUse.CONFIGURATION)
+ public String getName()
+ {
+ return this.container.getEjbName();
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Required Session Instance Metrics ----------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /*
+ * The following properties are to be exposed by
+ * the backing instance pool/cache
+ */
+
+ /**
+ * The number of instances available for service
+ */
+ abstract int getAvailableCount();
+
+ /**
+ * The number of instances created
+ * @return
+ */
+ abstract int getCreateCount();
+
+ /**
+ * The current size of the backing pool/cache
+ * @return
+ */
+ abstract int getCurrentSize();
+
+ /**
+ * The maximum size of the backing pool/cache
+ * @return
+ */
+ abstract int getMaxSize();
+
+ /**
+ * The number of instances removed
+ * @return
+ */
+ abstract int getRemoveCount();
+
+ // --------------------------------------------------------------------------------||
+ // Accessors / Mutators -----------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * @param invocationStats the stats to set
+ */
+ private void setInvocationStats(final InvocationStatistics invocationStats)
+ {
+ this.invocationStats = invocationStats;
+ }
+
+ /**
+ * @param container The underlying Session Container
+ */
+ private void setContainer(final SessionContainer container)
+ {
+ this.container = container;
+ }
+
+}
Property changes on: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedSessionMetricsWrapperBase.java
___________________________________________________________________
Name: svn:executable
+ *
Deleted: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatefulInvocationStatisticsWrapper.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatefulInvocationStatisticsWrapper.java 2009-06-16 02:02:47 UTC (rev 90218)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatefulInvocationStatisticsWrapper.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
-
-import org.jboss.ejb3.statistics.InvocationStatistics;
-import org.jboss.managed.api.annotation.ManagementComponent;
-import org.jboss.managed.api.annotation.ManagementObject;
-import org.jboss.managed.api.annotation.ManagementProperties;
-
-/**
- * ManagedStatefulInvocationStatisticsWrapper
- *
- * @ManagementObject wrapper to expose SFSB invocation statistics
- *
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
- at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Stateful Session Bean Invocation Metrics", componentType = @ManagementComponent(type = "EJB3", subtype = "SFSB"))
-public class ManagedStatefulInvocationStatisticsWrapper extends ManagedInvocationStatisticsSessionWrapperBase
-{
-
- // --------------------------------------------------------------------------------||
- // Constructor --------------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Constructor
- *
- * @param delegate
- * @throws IllegalArgumentException If the delegate was not supplied
- */
- public ManagedStatefulInvocationStatisticsWrapper(final InvocationStatistics delegate)
- throws IllegalArgumentException
- {
- super(delegate);
- }
-
-}
Deleted: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatelessInvocationStatisticsWrapper.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatelessInvocationStatisticsWrapper.java 2009-06-16 02:02:47 UTC (rev 90218)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/ManagedStatelessInvocationStatisticsWrapper.java 2009-06-16 02:08:01 UTC (rev 90219)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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 org.jboss.ejb3.metrics.deployer;
-
-import org.jboss.ejb3.statistics.InvocationStatistics;
-import org.jboss.managed.api.annotation.ManagementComponent;
-import org.jboss.managed.api.annotation.ManagementObject;
-import org.jboss.managed.api.annotation.ManagementProperties;
-
-/**
- * ManagedStatelessInvocationStatisticsWrapper
- *
- * @ManagementObject wrapper to expose SLSB invocation statistics
- *
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
- at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Stateless Session Bean Invocation Metrics", componentType = @ManagementComponent(type = "EJB3", subtype = "SLSB"))
-public class ManagedStatelessInvocationStatisticsWrapper extends ManagedInvocationStatisticsSessionWrapperBase
-{
-
- // --------------------------------------------------------------------------------||
- // Constructor --------------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- /**
- * Constructor
- *
- * @param delegate
- * @throws IllegalArgumentException If the delegate was not supplied
- */
- public ManagedStatelessInvocationStatisticsWrapper(final InvocationStatistics delegate)
- throws IllegalArgumentException
- {
- super(delegate);
- }
-
-}
More information about the jboss-cvs-commits
mailing list