@Override
	public void run() {
		acceptor = new NioSocketAcceptor();
		acceptor.getFilterChain().addLast("logger", new LoggingFilter());
		acceptor.getSessionConfig().setReadBufferSize(bufferSize);
		acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, 10);
		acceptor.setHandler(handler);
		try {
			acceptor.bind(new InetSocketAddress(port));
		} catch (IOException e) {
			logger.error(this.getClass().getCanonicalName() + " start failed");
			e.printStackTrace();
		}
		logger.info(this.getClass().getCanonicalName() + " started...");
		
	}