case Netty3_tcp:
return new Netty3TcpBenchmarkServer();
case Netty3_udp:
return new Netty3UdpBenchmarkServer();
case Bio_udp:
return new BioUdpBenchmarkServer();
case Bio_tcp:
//return new BioUdpBenchmarkClient();
default:
throw new IllegalArgumentException("Invalid type " + type);
}