}
private static AbstractRiemannClient getClient(String host, Integer port, int batchSize) throws IOException {
RiemannClient c = RiemannClient.tcp(host, port);
try {
return new RiemannBatchClient(batchSize, c);
} catch (UnsupportedJVMException e) {
return c;
}
}