[Ejtools-cvs] CVS: applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model Connec
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-05-15 20:56:54
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv10550/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model Modified Files: ConnectionService.java ConnectionServiceProvider.java Domain.java EJBConnectionService.java LocalConnectionService.java Node.java RMIConnectionService.java Resource.java Server.java Log Message: Add some JavaDocs Index: ConnectionService.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/ConnectionService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ConnectionService.java 28 Apr 2002 13:05:44 -0000 1.2 --- ConnectionService.java 15 May 2002 20:56:51 -0000 1.3 *************** *** 1,6 **** --- 1,13 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; import java.io.Serializable; import java.util.Set; + import javax.management.Attribute; import javax.management.MBeanInfo; *************** *** 8,29 **** import javax.management.ObjectName; import javax.management.QueryExp; - import javax.naming.InitialContext; - import javax.rmi.PortableRemoteObject; /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public interface ConnectionService extends Serializable { /** ! * Gets the attribute attribute of the ConnectionService object * ! * @param name Description of the Parameter ! * @param attribute Description of the Parameter ! * @return The attribute value ! * @exception Exception Description of the Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception; --- 15,35 ---- import javax.management.ObjectName; import javax.management.QueryExp; /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public interface ConnectionService extends Serializable { /** ! * Gets the attribute attribute of the ConnectionService object * ! * @param name Description of the Parameter ! * @param attribute Description of the Parameter ! * @return The attribute value ! * @exception Exception Description of the Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception; *************** *** 31,38 **** /** ! * Gets the defaultDomain attribute of the ConnectionService object * ! * @return The defaultDomain value ! * @exception Exception Description of the Exception */ public String getDefaultDomain() throws Exception; --- 37,44 ---- /** ! * Gets the defaultDomain attribute of the ConnectionService object * ! * @return The defaultDomain value ! * @exception Exception Description of the Exception */ public String getDefaultDomain() throws Exception; *************** *** 40,47 **** /** ! * Gets the mBeanCount attribute of the ConnectionService object * ! * @return The mBeanCount value ! * @exception Exception Description of the Exception */ public Integer getMBeanCount() throws Exception; --- 46,53 ---- /** ! * Gets the mBeanCount attribute of the ConnectionService object * ! * @return The mBeanCount value ! * @exception Exception Description of the Exception */ public Integer getMBeanCount() throws Exception; *************** *** 49,57 **** /** ! * Gets the mBeanInfo attribute of the ConnectionService object * ! * @param name Description of the Parameter ! * @return The mBeanInfo value ! * @exception Exception Description of the Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception; --- 55,63 ---- /** ! * Gets the mBeanInfo attribute of the ConnectionService object * ! * @param name Description of the Parameter ! * @return The mBeanInfo value ! * @exception Exception Description of the Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception; *************** *** 59,70 **** /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @param action Description of the Parameter ! * @param params Description of the Parameter ! * @param signatures Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception; --- 65,76 ---- /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @param action Description of the Parameter ! * @param params Description of the Parameter ! * @param signatures Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception; *************** *** 72,81 **** /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @param exp Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception; --- 78,87 ---- /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @param exp Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception; *************** *** 83,91 **** /** ! * Sets the attribute attribute of the ConnectionService object * ! * @param name The new attribute value ! * @param attribute The new attribute value ! * @exception Exception Description of the Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception; --- 89,97 ---- /** ! * Sets the attribute attribute of the ConnectionService object * ! * @param name The new attribute value ! * @param attribute The new attribute value ! * @exception Exception Description of the Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception; *************** *** 93,105 **** /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception; --- 99,111 ---- /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception; *************** *** 107,114 **** /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception; --- 113,120 ---- /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception; *************** *** 116,122 **** /** ! * Sets the eJBName attribute of the ConnectionService object * ! * @param ejbName The new eJBName value */ public void setEJBName(String ejbName); --- 122,128 ---- /** ! * Sets the eJBName attribute of the ConnectionService object * ! * @param ejbName The new eJBName value */ public void setEJBName(String ejbName); *************** *** 124,130 **** /** ! * Sets the factory attribute of the ConnectionService object * ! * @param factory The new factory value */ public void setFactory(String factory); --- 130,136 ---- /** ! * Sets the factory attribute of the ConnectionService object * ! * @param factory The new factory value */ public void setFactory(String factory); *************** *** 132,138 **** /** ! * Sets the packages attribute of the ConnectionService object * ! * @param pkgs The new packages value */ public void setPackages(String pkgs); --- 138,144 ---- /** ! * Sets the packages attribute of the ConnectionService object * ! * @param pkgs The new packages value */ public void setPackages(String pkgs); *************** *** 140,146 **** /** ! * Sets the uRL attribute of the ConnectionService object * ! * @param url The new uRL value */ public void setURL(String url); --- 146,152 ---- /** ! * Sets the uRL attribute of the ConnectionService object * ! * @param url The new uRL value */ public void setURL(String url); Index: ConnectionServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/ConnectionServiceProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ConnectionServiceProvider.java 22 Apr 2002 17:38:42 -0000 1.1 --- ConnectionServiceProvider.java 15 May 2002 20:56:51 -0000 1.2 *************** *** 1,2 **** --- 1,8 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; *************** *** 7,35 **** import java.util.Vector; - import net.sourceforge.ejtools.util.JNDI; - /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class ConnectionServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider { ! /** Description of the Field */ protected ConnectionService service = null; ! protected String type = null; ! public ConnectionServiceProvider(String type) { ! this.type= type; ! } /** ! * Getter for the currentServiceSelectors attribute * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The value */ public Iterator getCurrentServiceSelectors(BeanContextServices bcs, java.lang.Class serviceClass) --- 13,48 ---- import java.util.Vector; /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public class ConnectionServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider { ! /** Description of the Field */ protected ConnectionService service = null; ! /** Description of the Field */ ! protected String type = null; ! ! /** ! * Constructor for the ConnectionServiceProvider object ! * ! * @param type Description of the Parameter ! */ ! public ConnectionServiceProvider(String type) ! { ! this.type = type; ! } /** ! * Getter for the currentServiceSelectors attribute * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The value */ public Iterator getCurrentServiceSelectors(BeanContextServices bcs, java.lang.Class serviceClass) *************** *** 40,50 **** /** ! * Getter for the service attribute * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The value */ public Object getService(BeanContextServices bcs, java.lang.Object requestor, java.lang.Class serviceClass, java.lang.Object serviceSelector) --- 53,63 ---- /** ! * Getter for the service attribute * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The value */ public Object getService(BeanContextServices bcs, java.lang.Object requestor, java.lang.Class serviceClass, java.lang.Object serviceSelector) *************** *** 52,64 **** if (service == null) { ! if("EJB".equals(type)) { ! service = new EJBConnectionService(); ! } ! if("RMI".equals(type)) { ! service = new RMIConnectionService(); ! } ! if("LOCAL".equals(type)) { ! service = new LocalConnectionService(); ! } } return service; --- 65,80 ---- if (service == null) { ! if ("EJB".equals(type)) ! { ! service = new EJBConnectionService(); ! } ! if ("RMI".equals(type)) ! { ! service = new RMIConnectionService(); ! } ! if ("LOCAL".equals(type)) ! { ! service = new LocalConnectionService(); ! } } return service; *************** *** 67,80 **** /** ! * Description of the Method * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter */ public void releaseService(BeanContextServices bcs, java.lang.Object requestor, java.lang.Object service) { } ! /** Description of the Method */ protected void initializeBeanContextResources() { --- 83,96 ---- /** ! * Description of the Method * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter */ public void releaseService(BeanContextServices bcs, java.lang.Object requestor, java.lang.Object service) { } ! /** Description of the Method */ protected void initializeBeanContextResources() { Index: Domain.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/Domain.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Domain.java 24 Apr 2002 20:08:22 -0000 1.2 --- Domain.java 15 May 2002 20:56:51 -0000 1.3 *************** *** 1,30 **** package net.sourceforge.ejtools.jmxbrowser.model; ! import java.awt.*; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.util.*; ! import javax.management.*; ! import javax.naming.*; ! import javax.swing.*; ! import org.w3c.dom.*; ! ! import com.dreambean.awt.*; /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class Domain extends Node { ! /** Constructor */ public Domain() { } /** ! * Setter for the reference attribute * ! * @param resource The new value */ public void setReference(ObjectInstance resource) --- 1,29 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; ! import javax.management.ObjectInstance; /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public class Domain extends Node { ! /** Constructor */ public Domain() { } + /** ! * Setter for the reference attribute * ! * @param resource The new value */ public void setReference(ObjectInstance resource) Index: EJBConnectionService.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/EJBConnectionService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EJBConnectionService.java 28 Apr 2002 13:05:44 -0000 1.2 --- EJBConnectionService.java 15 May 2002 20:56:51 -0000 1.3 *************** *** 1,5 **** --- 1,12 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; import java.util.Set; + import javax.management.Attribute; import javax.management.MBeanInfo; *************** *** 14,50 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class EJBConnectionService implements ConnectionService { ! /** Description of the Field */ protected transient Adaptor connector = null; ! /** Description of the Field */ protected String ejbName = null; ! /** Description of the Field */ protected String factory = null; ! /** Description of the Field */ protected String pkgs = null; ! /** Description of the Field */ protected String url = null; ! /** Constructor */ protected EJBConnectionService() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception --- 21,58 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public class EJBConnectionService implements ConnectionService { ! /** Description of the Field */ protected transient Adaptor connector = null; ! /** Description of the Field */ protected String ejbName = null; ! /** Description of the Field */ protected String factory = null; ! /** Description of the Field */ protected String pkgs = null; ! /** Description of the Field */ protected String url = null; ! /** Constructor */ protected EJBConnectionService() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception *************** *** 55,64 **** /** ! * Getter for the attribute attribute * ! * @param name Description of Parameter ! * @param attribute Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception --- 63,72 ---- /** ! * Getter for the attribute attribute * ! * @param name Description of Parameter ! * @param attribute Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception *************** *** 69,76 **** /** ! * Getter for the defaultDomain attribute * ! * @return The value ! * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception --- 77,84 ---- /** ! * Getter for the defaultDomain attribute * ! * @return The value ! * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception *************** *** 81,88 **** /** ! * Getter for the mBeanCount attribute * ! * @return The value ! * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception --- 89,96 ---- /** ! * Getter for the mBeanCount attribute * ! * @return The value ! * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception *************** *** 93,101 **** /** ! * Getter for the mBeanInfo attribute * ! * @param name Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception --- 101,109 ---- /** ! * Getter for the mBeanInfo attribute * ! * @param name Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception *************** *** 106,117 **** /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param action Description of Parameter ! * @param params Description of Parameter ! * @param signatures Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception --- 114,125 ---- /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param action Description of Parameter ! * @param params Description of Parameter ! * @param signatures Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception *************** *** 122,131 **** /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param exp Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception --- 130,139 ---- /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param exp Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception *************** *** 136,144 **** /** ! * Setter for the attribute attribute * ! * @param name The new value ! * @param attribute The new value ! * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception --- 144,152 ---- /** ! * Setter for the attribute attribute * ! * @param name The new value ! * @param attribute The new value ! * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception *************** *** 149,155 **** /** ! * Setter for the eJBName attribute * ! * @param ejbName The new value */ public void setEJBName(String ejbName) --- 157,163 ---- /** ! * Setter for the eJBName attribute * ! * @param ejbName The new value */ public void setEJBName(String ejbName) *************** *** 161,167 **** /** ! * Setter for the factory attribute * ! * @param factory The new value */ public void setFactory(String factory) --- 169,175 ---- /** ! * Setter for the factory attribute * ! * @param factory The new value */ public void setFactory(String factory) *************** *** 173,179 **** /** ! * Setter for the packages attribute * ! * @param pkgs The new value */ public void setPackages(String pkgs) --- 181,187 ---- /** ! * Setter for the packages attribute * ! * @param pkgs The new value */ public void setPackages(String pkgs) *************** *** 185,191 **** /** ! * Setter for the url attribute * ! * @param url The new value */ public void setURL(String url) --- 193,199 ---- /** ! * Setter for the url attribute * ! * @param url The new value */ public void setURL(String url) *************** *** 197,204 **** /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception --- 205,212 ---- /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception *************** *** 209,216 **** /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ protected Adaptor getConnector() throws Exception --- 217,224 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ protected Adaptor getConnector() throws Exception Index: LocalConnectionService.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/LocalConnectionService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LocalConnectionService.java 28 Apr 2002 13:05:44 -0000 1.2 --- LocalConnectionService.java 15 May 2002 20:56:51 -0000 1.3 *************** *** 1,6 **** --- 1,13 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; import java.util.ArrayList; import java.util.Set; + import javax.management.Attribute; import javax.management.MBeanInfo; *************** *** 10,52 **** import javax.management.ObjectName; import javax.management.QueryExp; - import javax.naming.InitialContext; - import javax.rmi.PortableRemoteObject; - - import org.jboss.jmx.adaptor.rmi.RMIAdaptor; /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class LocalConnectionService implements ConnectionService { ! /** Description of the Field */ protected transient MBeanServer connector = null; ! /** Description of the Field */ protected String ejbName = null; ! /** Description of the Field */ protected String factory = null; ! /** Description of the Field */ protected String pkgs = null; ! /** Description of the Field */ protected String url = null; ! /** Constructor */ protected LocalConnectionService() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception --- 17,56 ---- import javax.management.ObjectName; import javax.management.QueryExp; /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public class LocalConnectionService implements ConnectionService { ! /** Description of the Field */ protected transient MBeanServer connector = null; ! /** Description of the Field */ protected String ejbName = null; ! /** Description of the Field */ protected String factory = null; ! /** Description of the Field */ protected String pkgs = null; ! /** Description of the Field */ protected String url = null; ! /** Constructor */ protected LocalConnectionService() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception *************** *** 57,66 **** /** ! * Getter for the attribute attribute * ! * @param name Description of Parameter ! * @param attribute Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception --- 61,70 ---- /** ! * Getter for the attribute attribute * ! * @param name Description of Parameter ! * @param attribute Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception *************** *** 71,78 **** /** ! * Getter for the defaultDomain attribute * ! * @return The value ! * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception --- 75,82 ---- /** ! * Getter for the defaultDomain attribute * ! * @return The value ! * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception *************** *** 83,90 **** /** ! * Getter for the mBeanCount attribute * ! * @return The value ! * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception --- 87,94 ---- /** ! * Getter for the mBeanCount attribute * ! * @return The value ! * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception *************** *** 95,103 **** /** ! * Getter for the mBeanInfo attribute * ! * @param name Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception --- 99,107 ---- /** ! * Getter for the mBeanInfo attribute * ! * @param name Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception *************** *** 108,119 **** /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param action Description of Parameter ! * @param params Description of Parameter ! * @param signatures Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception --- 112,123 ---- /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param action Description of Parameter ! * @param params Description of Parameter ! * @param signatures Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception *************** *** 124,133 **** /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param exp Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception --- 128,137 ---- /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param exp Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception *************** *** 138,146 **** /** ! * Setter for the attribute attribute * ! * @param name The new value ! * @param attribute The new value ! * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception --- 142,150 ---- /** ! * Setter for the attribute attribute * ! * @param name The new value ! * @param attribute The new value ! * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception *************** *** 151,157 **** /** ! * Setter for the eJBName attribute * ! * @param ejbName The new value */ public void setEJBName(String ejbName) --- 155,161 ---- /** ! * Setter for the eJBName attribute * ! * @param ejbName The new value */ public void setEJBName(String ejbName) *************** *** 163,169 **** /** ! * Setter for the factory attribute * ! * @param factory The new value */ public void setFactory(String factory) --- 167,173 ---- /** ! * Setter for the factory attribute * ! * @param factory The new value */ public void setFactory(String factory) *************** *** 175,181 **** /** ! * Setter for the packages attribute * ! * @param pkgs The new value */ public void setPackages(String pkgs) --- 179,185 ---- /** ! * Setter for the packages attribute * ! * @param pkgs The new value */ public void setPackages(String pkgs) *************** *** 187,193 **** /** ! * Setter for the url attribute * ! * @param url The new value */ public void setURL(String url) --- 191,197 ---- /** ! * Setter for the url attribute * ! * @param url The new value */ public void setURL(String url) *************** *** 199,206 **** /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception --- 203,210 ---- /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception *************** *** 211,218 **** /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ protected MBeanServer getConnector() throws Exception --- 215,222 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ protected MBeanServer getConnector() throws Exception Index: Node.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/Node.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Node.java 24 Apr 2002 20:08:22 -0000 1.2 --- Node.java 15 May 2002 20:56:51 -0000 1.3 *************** *** 1,32 **** package net.sourceforge.ejtools.jmxbrowser.model; ! import java.awt.*; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.util.*; ! import javax.naming.*; ! import javax.swing.*; ! import net.sourceforge.ejtools.awt.*; ! import net.sourceforge.ejtools.xml.*; ! import net.sourceforge.ejtools.util.*; /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public abstract class Node extends BeanContextServicesSupport implements BeanContextChildComponentProxy { ! /** Description of the Field */ protected transient Customizer c = null; ! /** Description of the Field */ protected String className = "<undefined>"; ! /** Description of the Field */ protected String name = "<undefined>"; ! /** Constructor for the Node object */ public Node() { --- 1,42 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; ! import java.awt.Component; ! import java.beans.Customizer; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChild; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextServiceRevokedListener; ! import java.beans.beancontext.BeanContextServices; ! import java.beans.beancontext.BeanContextServicesSupport; ! import java.util.Iterator; ! import java.util.TooManyListenersException; ! import net.sourceforge.ejtools.awt.GenericCustomizer; ! import net.sourceforge.ejtools.util.Sort; /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public abstract class Node extends BeanContextServicesSupport implements BeanContextChildComponentProxy { ! /** Description of the Field */ protected transient Customizer c = null; ! /** Description of the Field */ protected String className = "<undefined>"; ! /** Description of the Field */ protected String name = "<undefined>"; ! /** Constructor for the Node object */ public Node() { *************** *** 35,42 **** /** ! * Getter for the className attribute * ! * @return The value */ public String getClassName() --- 45,68 ---- + /** Description of the Method */ + public void clear() + { + Iterator iterator = iterator(); + while (iterator.hasNext()) + { + Object o = iterator.next(); + if (o instanceof BeanContext) + { + ((BeanContext) o).clear(); + } + remove(o); + } + } + + /** ! * Getter for the className attribute * ! * @return The value */ public String getClassName() *************** *** 47,53 **** /** ! * Gets the component attribute of the Node object * ! * @return The component value */ public Component getComponent() --- 73,79 ---- /** ! * Gets the component attribute of the Node object * ! * @return The component value */ public Component getComponent() *************** *** 62,68 **** /** ! * Gets the name attribute of the Node object * ! * @return The name value */ public String getName() --- 88,94 ---- /** ! * Gets the name attribute of the Node object * ! * @return The name value */ public String getName() *************** *** 73,85 **** /** ! * Getter for the service attribute * ! * @param child Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @param bcsrl Description of Parameter ! * @return The value ! * @exception TooManyListenersException Description of Exception */ public Object getService(BeanContextChild child, --- 99,111 ---- /** ! * Getter for the service attribute * ! * @param child Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @param bcsrl Description of Parameter ! * @return The value ! * @exception TooManyListenersException Description of Exception */ public Object getService(BeanContextChild child, *************** *** 113,119 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public Iterator iterator() --- 139,145 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public Iterator iterator() *************** *** 124,130 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 150,156 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 135,157 **** /** ! * Setter for the name attribute * ! * @param name The new value */ protected void setName(String name) { this.name = name; - } - - public void clear() { - Iterator iterator = iterator(); - while (iterator.hasNext()) - { - Object o = iterator.next(); - if (o instanceof BeanContext) { - ((BeanContext)o).clear(); - } - remove(o); - } } } --- 161,171 ---- /** ! * Setter for the name attribute * ! * @param name The new value */ protected void setName(String name) { this.name = name; } } Index: RMIConnectionService.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/RMIConnectionService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RMIConnectionService.java 28 Apr 2002 13:05:44 -0000 1.2 --- RMIConnectionService.java 15 May 2002 20:56:51 -0000 1.3 *************** *** 1,5 **** --- 1,12 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; import java.util.Set; + import javax.management.Attribute; import javax.management.MBeanInfo; *************** *** 13,49 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class RMIConnectionService implements ConnectionService { ! /** Description of the Field */ protected transient RMIAdaptor connector = null; ! /** Description of the Field */ protected String ejbName = null; ! /** Description of the Field */ protected String factory = null; ! /** Description of the Field */ protected String pkgs = null; ! /** Description of the Field */ protected String url = null; ! /** Constructor */ protected RMIConnectionService() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception --- 20,57 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public class RMIConnectionService implements ConnectionService { ! /** Description of the Field */ protected transient RMIAdaptor connector = null; ! /** Description of the Field */ protected String ejbName = null; ! /** Description of the Field */ protected String factory = null; ! /** Description of the Field */ protected String pkgs = null; ! /** Description of the Field */ protected String url = null; ! /** Constructor */ protected RMIConnectionService() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value ! * @exception Exception Description of the Exception */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws Exception *************** *** 54,63 **** /** ! * Getter for the attribute attribute * ! * @param name Description of Parameter ! * @param attribute Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception --- 62,71 ---- /** ! * Getter for the attribute attribute * ! * @param name Description of Parameter ! * @param attribute Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception *************** *** 68,75 **** /** ! * Getter for the defaultDomain attribute * ! * @return The value ! * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception --- 76,83 ---- /** ! * Getter for the defaultDomain attribute * ! * @return The value ! * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception *************** *** 80,87 **** /** ! * Getter for the mBeanCount attribute * ! * @return The value ! * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception --- 88,95 ---- /** ! * Getter for the mBeanCount attribute * ! * @return The value ! * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception *************** *** 92,100 **** /** ! * Getter for the mBeanInfo attribute * ! * @param name Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception --- 100,108 ---- /** ! * Getter for the mBeanInfo attribute * ! * @param name Description of Parameter ! * @return The value ! * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception *************** *** 105,116 **** /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param action Description of Parameter ! * @param params Description of Parameter ! * @param signatures Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception --- 113,124 ---- /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param action Description of Parameter ! * @param params Description of Parameter ! * @param signatures Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception *************** *** 121,130 **** /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param exp Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception --- 129,138 ---- /** ! * Description of the Method * ! * @param name Description of Parameter ! * @param exp Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception *************** *** 135,143 **** /** ! * Setter for the attribute attribute * ! * @param name The new value ! * @param attribute The new value ! * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception --- 143,151 ---- /** ! * Setter for the attribute attribute * ! * @param name The new value ! * @param attribute The new value ! * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception *************** *** 148,154 **** /** ! * Setter for the eJBName attribute * ! * @param ejbName The new value */ public void setEJBName(String ejbName) --- 156,162 ---- /** ! * Setter for the eJBName attribute * ! * @param ejbName The new value */ public void setEJBName(String ejbName) *************** *** 160,166 **** /** ! * Setter for the factory attribute * ! * @param factory The new value */ public void setFactory(String factory) --- 168,174 ---- /** ! * Setter for the factory attribute * ! * @param factory The new value */ public void setFactory(String factory) *************** *** 172,178 **** /** ! * Setter for the packages attribute * ! * @param pkgs The new value */ public void setPackages(String pkgs) --- 180,186 ---- /** ! * Setter for the packages attribute * ! * @param pkgs The new value */ public void setPackages(String pkgs) *************** *** 184,190 **** /** ! * Setter for the url attribute * ! * @param url The new value */ public void setURL(String url) --- 192,198 ---- /** ! * Setter for the url attribute * ! * @param url The new value */ public void setURL(String url) *************** *** 196,203 **** /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception --- 204,211 ---- /** ! * Description of the Method * ! * @param name Description of the Parameter ! * @exception Exception Description of the Exception */ public void unregisterMBean(ObjectName name) throws Exception *************** *** 208,215 **** /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ protected RMIAdaptor getConnector() throws Exception --- 216,223 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ protected RMIAdaptor getConnector() throws Exception Index: Resource.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model/Resource.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Resource.java 28 Apr 2002 13:05:44 -0000 1.3 --- Resource.java 15 May 2002 20:56:51 -0000 1.4 *************** *** 1,55 **** package net.sourceforge.ejtools.jmxbrowser.model; ! import java.awt.*; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.lang.reflect.*; ! import java.util.*; ! import javax.management.*; ! import javax.naming.*; ! import javax.swing.*; ! import org.w3c.dom.*; ! import com.dreambean.awt.*; ! import net.sourceforge.ejtools.awt.*; import net.sourceforge.ejtools.jmx.MBeanAccessor; - import org.jboss.jmx.adaptor.interfaces.Adaptor; - import org.jboss.jmx.adaptor.interfaces.AdaptorHome; /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class Resource extends Node implements MBeanAccessor { ! /** Description of the Field */ protected String description; ! /** Description of the Field */ protected String domain; ! /** Description of the Field */ protected transient MBeanInfo info; ! /** Description of the Field */ protected transient ObjectInstance objectInstance; ! /** Description of the Field */ protected transient ObjectName objectName; ! /** Description of the Field */ protected transient ResourceUpdater updater; ! /** Constructor for the Resource object */ public Resource() { } /** ! * Description of the Method * ! * @param className Description of the Parameter ! * @param name Description of the Parameter ! * @param loaderName Description of the Parameter ! * @param params Description of the Parameter ! * @param signature Description of the Parameter ! * @return Description of the Return Value */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) --- 1,61 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.jmxbrowser.model; ! import java.awt.Component; ! import java.beans.beancontext.BeanContextServices; ! import javax.management.Attribute; ! import javax.management.AttributeChangeNotification; ! import javax.management.AttributeChangeNotificationFilter; ! import javax.management.MBeanInfo; ! import javax.management.Notification; ! import javax.management.NotificationListener; ! import javax.management.ObjectInstance; ! import javax.management.ObjectName; ! ! import net.sourceforge.ejtools.awt.GenericMBeanCustomizer; import net.sourceforge.ejtools.jmx.MBeanAccessor; /** ! * Description of the Class * ! * @author letiemble ! * @created 13 décembre 2001 ! * @todo Javadoc to complete */ public class Resource extends Node implements MBeanAccessor { ! /** Description of the Field */ protected String description; ! /** Description of the Field */ protected String domain; ! /** Description of the Field */ protected transient MBeanInfo info; ! /** Description of the Field */ protected transient ObjectInstance objectInstance; ! /** Description of th... [truncated message content] |