public static void main(String... args) throws IOException {
String outboundPath = args[0];
String inboundPath = args[1];
String hostname = args[2];
int port = Integer.parseInt(args[3]);
WaitingThread thread = new WaitingThread(1, "SocketGateway " + hostname + ":" + port, false);
new SocketGateway(new InetSocketAddress(hostname, port),
new IndexedChronicle(outboundPath), new IndexedChronicle(inboundPath), thread);
}