log.error("mode " + m + " is invalid");
System.err.println("mode " + m + " is invalid");
    public static void main(String[] args) {        String                 props=null;        boolean                server=false;        int                    num=1000;        RpcDispatcherSpeedTest test;        int                    mode=OLD;        for(int i=0; i < args.length; i++) {            if("-props".equals(args[i])) {                props=args[++i];                continue;            }            if("-server".equals(args[i])) {                server=true;                continue;            }            if("-num".equals(args[i])) {                num=Integer.parseInt(args[++i]);                continue;            }            if("-mode".equals(args[i])) {                String m=args[++i].toLowerCase().trim();                if("old".equals(m))                    mode=OLD;                else if("method".equals(m))                    mode=METHOD;                else if("types".equals(m))                    mode=TYPES;                else if("signature".equals(m))                    mode=SIGNATURE;                else {                    log.error("mode " + m + " is invalid");                    help();                    return;                }                continue;            }            help();            return;        }        try {            test=new RpcDispatcherSpeedTest(props, server, num, mode);            test.start();        }        catch(Exception e) {            log.error(e);        }    }