User: juhalindfors
Date: 02/01/24 14:17:08
Modified: src/main/org/jboss/mx/util AgentID.java
Log:
javadoc
Revision Changes Path
1.2 +12 -1 jmx/src/main/org/jboss/mx/util/AgentID.java
Index: AgentID.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/util/AgentID.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AgentID.java 2002/01/23 22:00:04 1.1
+++ AgentID.java 2002/01/24 22:17:07 1.2
@@ -24,7 +24,7 @@
* @see javax.management.MBeanServerDelegateMBean
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*
*/
public class AgentID
@@ -34,6 +34,12 @@
// Static ----------------------------------------------------
private static int idSequence = 1;
+ /**
+ * Creates a new agent ID string. The identifier is of the form
+ * <tt><ip.address>/<creation time in ms>/<sequence #></tt>
+ *
+ * @return Agent ID string
+ */
public static String create()
{
String ipAddress = null;
@@ -50,6 +56,11 @@
return ipAddress + "/" + System.currentTimeMillis() + "/" + (idSequence++);
}
+ /**
+ * Returns the agent identifier string of a given MBean server instance.
+ *
+ * @return <tt>MBeanServerId</tt> attribute of the MBean server delegate.
+ */
public static String get(MBeanServer server)
{
try
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development