protected GridClient startClient(String addr,int port) throws GridClientException {
  GridClientConfiguration cliCfg=new GridClientConfiguration();
  cliCfg.setServers(Collections.singleton(addr + ":" + port));
  cliCfg.setProtocol(protocol());
  return GridClientFactory.start(cliCfg);
}

protected GridClient startClient ( String addr , int port ) throws GridClientException { GridClientConfiguration cliCfg = new GridClientConfiguration ( ) ; cliCfg . setServers ( Collections . singleton ( addr + ":" + port ) ) ; cliCfg . setProtocol ( protocol ( ) ) ; return GridClientFactory . start ( cliCfg ) ; }
starts a rest client .
