public BenchmarkClient get(Type type) {
switch (type) {
case Netty4_tcp:
return new Netty4TcpBenchmarkClient();
case Netty4_udp:
return new Netty4UdpBenchmarkClient();
case Mina3_tcp:
return new Mina3TcpBenchmarkClient();
default:
throw new IllegalArgumentException("Invalid type " + type);
}