[jboss-cvs] JBossAS SVN: r77470 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Aug 25 22:14:27 EDT 2008
Author: pferraro
Date: 2008-08-25 22:14:27 -0400 (Mon, 25 Aug 2008)
New Revision: 77470
Modified:
trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/OperatingSystemLoadMetricSource.java
Log:
Javadoc
Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/OperatingSystemLoadMetricSource.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/OperatingSystemLoadMetricSource.java 2008-08-26 02:09:38 UTC (rev 77469)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/OperatingSystemLoadMetricSource.java 2008-08-26 02:14:27 UTC (rev 77470)
@@ -77,6 +77,12 @@
}
}
+ /**
+ * Indicates whether or not all of the specified attributes exist on this mbean
+ *
+ * @param attributes any number of attributes
+ * @return true if all of the specified attributes exist, false otherwise
+ */
public boolean exists(String... attributes)
{
Set<String> missingAttributes = new TreeSet<String>();
@@ -104,6 +110,15 @@
}
}
+ /**
+ * Returns the value of the specified attribute, casted to the specified type.
+ *
+ * @param <T> the type of the attribute
+ * @param attribute an attribute name
+ * @param targetClass the type of the attribute
+ * @return the attribute value
+ * @throws JMException
+ */
public <T> T getAttribute(String attribute, Class<T> targetClass) throws JMException
{
return targetClass.cast(this.server.getAttribute(this.name, attribute));
More information about the jboss-cvs-commits
mailing list