Package org.apache.jmeter.gui.action

Examples of org.apache.jmeter.gui.action.Command


  public Command getAction(String actionName, String className) {
    Set commandObjects = (Set) commands.get(actionName);
    Iterator iter = commandObjects.iterator();
    while (iter.hasNext()) {
      try {
        Command com = (Command) iter.next();
        if (com.getClass().getName().equals(className)) {
          return com;
        }
      } catch (Exception err) {
        log.error("", err);
      }
View Full Code Here


  }

  private void populateCommandMap() {
        log.info("populateCommandMap called");
    List listClasses;
    Command command;
    Iterator iterClasses;
    Class commandClass;
    try {
      listClasses = ClassFinder.findClassesThatExtend(JMeterUtils.getSearchPaths(), new Class[] { Class
          .forName("org.apache.jmeter.gui.action.Command") });
      commands = new HashMap(listClasses.size());
      if (listClasses.size() == 0) {
        log.warn("!!!!!Uh-oh, didn't find any action handlers!!!!!");
      }
      iterClasses = listClasses.iterator();
      while (iterClasses.hasNext()) {
        String strClassName = (String) iterClasses.next();
                if (strClassName.startsWith("org.apache.jmeter.report.gui.action")) {
                    // log.info("classname:: " + strClassName);
                    commandClass = Class.forName(strClassName);
                    if (!Modifier.isAbstract(commandClass.getModifiers())) {
                        command = (Command) commandClass.newInstance();
                        Iterator iter = command.getActionNames().iterator();
                        while (iter.hasNext()) {
                            String commandName = (String) iter.next();
                            Set commandObjects = (Set) commands.get(commandName);
                            if (commandObjects == null) {
                                commandObjects = new HashSet();
View Full Code Here

TOP

Related Classes of org.apache.jmeter.gui.action.Command

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.