Package org.apache.jmeter.gui.action

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


            ReportGuiPackage.getInstance().updateCurrentNode();
            Set<Command> commandObjects = commands.get(e.getActionCommand());
            Iterator<Command> iter = commandObjects.iterator();
            while (iter.hasNext()) {
                try {
                    Command c = iter.next();
                    preActionPerformed(c.getClass(), e);
                    c.doAction(e);
                    postActionPerformed(c.getClass(), e);
                } catch (IllegalUserActionException err) {
                    JMeterUtils.reportErrorToUser(err.toString());
                } catch (Exception err) {
                    log.error("", err);
                }
View Full Code Here


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

    public Command getAction(String actionName, String className) {
        Set<Command> commandObjects = commands.get(actionName);
        Iterator<Command> iter = commandObjects.iterator();
        while (iter.hasNext()) {
            try {
                Command com = 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<String> listClasses;
        Command command;
        Iterator<String> iterClasses;
        Class<?> commandClass;
        try {
            listClasses = ClassFinder.findClassesThatExtend(JMeterUtils.getSearchPaths(), new Class[] { Class
                    .forName("org.apache.jmeter.gui.action.Command") });
            commands = new HashMap<String, Set<Command>>(listClasses.size());
            if (listClasses.size() == 0) {
                log.warn("!!!!!Uh-oh, didn't find any action handlers!!!!!");
            }
            iterClasses = listClasses.iterator();
            while (iterClasses.hasNext()) {
                String strClassName = 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<String> iter = command.getActionNames().iterator();
                        while (iter.hasNext()) {
                            String commandName = iter.next();
                            Set<Command> commandObjects = commands.get(commandName);
                            if (commandObjects == null) {
                                commandObjects = new HashSet<Command>();
View Full Code Here

            ReportGuiPackage.getInstance().updateCurrentNode();
            Set commandObjects = (Set) commands.get(e.getActionCommand());
            Iterator iter = commandObjects.iterator();
            while (iter.hasNext()) {
                try {
                    Command c = (Command) iter.next();
                    preActionPerformed(c.getClass(), e);
                    c.doAction(e);
                    postActionPerformed(c.getClass(), e);
                } catch (IllegalUserActionException err) {
                    JMeterUtils.reportErrorToUser(err.toString());
                } catch (Exception err) {
                    log.error("", err);
                }
View Full Code Here

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

    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

      ReportGuiPackage.getInstance().updateCurrentNode();
      Set commandObjects = (Set) commands.get(e.getActionCommand());
      Iterator iter = commandObjects.iterator();
      while (iter.hasNext()) {
        try {
          Command c = (Command) iter.next();
          preActionPerformed(c.getClass(), e);
          c.doAction(e);
          postActionPerformed(c.getClass(), e);
        } catch (IllegalUserActionException err) {
          JMeterUtils.reportErrorToUser(err.toString());
        } catch (Exception err) {
          log.error("", err);
        }
View Full Code Here

  public Command getAction(String actionName, Class actionClass) {
    Set commandObjects = (Set) commands.get(actionName);
    Iterator iter = commandObjects.iterator();
    while (iter.hasNext()) {
      try {
        Command com = (Command) iter.next();
        if (com.getClass().equals(actionClass)) {
          return com;
        }
      } catch (Exception err) {
        log.error("", err);
      }
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.