[Ejtools-cvs] applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web QueryConstant
Brought to you by:
letiemble
From: <let...@us...> - 2002-06-10 07:49:59
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web In directory usw-pr-cvs1:/tmp/cvs-serv14005/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web Modified Files: Constants.java JMXContainer.java Added Files: QueryConstants.java Log Message: In progress --- NEW FILE: QueryConstants.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jmxbrowser.web; import java.io.Serializable; import java.util.Collection; import java.util.ResourceBundle; import java.util.Vector; import net.sourceforge.ejtools.jmxbrowser.model.Server; /** * @author letiemble * @created 2 janvier 2002 * @version $Revision: 1.3 $ */ public class QueryConstants implements Serializable { /** Description of the Field */ protected Vector queries; /** Description of the Field */ protected Vector types; /** Constructor for the SearchTypeEditor object */ public QueryConstants() { types = new Vector(); types.add("java.lang.String"); types.add("java.lang.Integer"); types.add("java.lang.Long"); types.add("java.lang.Float"); types.add("java.lang.Double"); types.add("java.lang.Boolean"); types.add("byte"); types.add("short"); types.add("int"); types.add("long"); types.add("float"); types.add("double"); types.add("boolean"); queries = new Vector(); queries.add("="); queries.add(">"); queries.add(">="); queries.add("<"); queries.add("<="); } /** * Gets the values attribute of the SearchTypeConstants object * * @return The values value */ public Collection getQueries() { return queries; } /** * Gets the labels attribute of the SearchTypeConstants object * * @return The labels value */ public Collection getTypes() { return types; } } Index: Constants.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/Constants.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Constants.java 25 May 2002 20:42:34 -0000 1.4 --- Constants.java 10 Jun 2002 07:49:55 -0000 1.5 *************** *** 13,16 **** --- 13,17 ---- * @author letiemble * @created 28 février 2002 + * @version $Revision$ * @todo Javadoc to complete */ *************** *** 28,32 **** public final static String NUMBER = "number"; /** Description of the Field */ public final static String TREE = "tree"; } - --- 29,34 ---- public final static String NUMBER = "number"; /** Description of the Field */ + public final static String SEARCH_RESULT = "search.result"; + /** Description of the Field */ public final static String TREE = "tree"; } Index: JMXContainer.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/JMXContainer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JMXContainer.java 17 May 2002 20:41:31 -0000 1.1 --- JMXContainer.java 10 Jun 2002 07:49:55 -0000 1.2 *************** *** 8,12 **** import java.beans.beancontext.BeanContextServicesSupport; ! import java.util.Collection; import net.sourceforge.ejtools.jmxbrowser.model.ConnectionServiceProvider; --- 8,14 ---- import java.beans.beancontext.BeanContextServicesSupport; ! import java.util.*; ! ! import javax.management.*; import net.sourceforge.ejtools.jmxbrowser.model.ConnectionServiceProvider; *************** *** 18,21 **** --- 20,24 ---- * @author letiemble * @created 25 avril 2002 + * @version $Revision$ * @todo Javadoc to complete */ *************** *** 83,86 **** --- 86,102 ---- { return server; + } + + + /** + * Description of the Method + * + * @param name Description of the Parameter + * @param exp Description of the Parameter + * @return Description of the Return Value + */ + public Set query(ObjectName name, QueryExp exp) + { + return server.query(name, exp); } |