InetSocketAddress iaddress;
switch (proto) {
case SASL:
iaddress=new InetSocketAddress(0);
this.outputServer = new SaslSocketServer
(new SpecificResponder(OutputProtocol.class, outputService),
iaddress);
break;
case HTTP:
iaddress=new InetSocketAddress(0);
//set it up for http
this.outputServer= new HttpServer
(new SpecificResponder(OutputProtocol.class, outputService),
iaddress.getPort());
break;
case NONE:
default:
throw new RuntimeException("No transport protocol was specified in the job configuraiton");