`connections` could be built in a more Scala-like functional style. Something like this.
```
connections = addresses.map { host =>  .....   new FlumeConnection(....) }.toArray
```

No need for ArrayBuilder