public void startServer() {
            server = new RpcServer(port);
            server.registerUserProcessor(new SyncUserProcessor<RequestBody>() {
                ThreadPoolExecutor executor = new ThreadPoolExecutor(1, 3, 60, TimeUnit.SECONDS,
                                                new ArrayBlockingQueue<Runnable>(4),
                                                new NamedThreadFactory("Request-process-pool"));

                @Override
                public Object handleRequest(BizContext bizCtx, RequestBody request) {
                    logger.warn("Request received:" + request);
                    return "Hello world!";
                }

                @Override
                public String interest() {
                    return RequestBody.class.toString();
                }

                @Override
                public Executor getExecutor() {
                    return executor;
                }

            });
            server.start();
        }
parse InetSocketAddress to get ip (format [ip])
src/test/java/com/alipay/remoting/inner/utiltest/RemotingUtilTest.java