static List < InetSocketAddress > getJournalHttpAddresses ( Configuration conf ) { String [ ] hosts = JournalConfigHelper . getJournalHttpHosts ( conf ) ; List < InetSocketAddress > addrs = new ArrayList < InetSocketAddress > ( ) ; for ( String host : hosts ) { addrs . add ( NetUtils . createSocketAddr ( host ) ) ; } return addrs ; }
Get the list of journal addresses to connect .