src/main/java/com/io7m/aeron_guide/take3/AeronMessagingClient.java
/**
     * Command-line entry point.
     *
     * @param args Command-line arguments
     *
     * @throws Exception On any error
     */
Command-line entry point.
@param args Command-line arguments

@throws Exception On any error
Command - line entry point . @param args Command - line arguments @throws Exception On any error
public static void main(
            final String[] args)
            throws Exception {
        if (args.length < 4) {
            LOG.error(
                    "usage: directory remote-address remote-data-port remote-control-port");
            System.exit(1);
        }
        final Path directory = Paths.get(args[0]);
        final InetAddress remote_address = InetAddress.getByName(args[1]);
        final int remote_data_port = Integer.parseUnsignedInt(args[2]);
        final int remote_control_port = Integer.parseUnsignedInt(args[3]);
        final ImmutableAeronMessagingClientConfiguration configuration
                = ImmutableAeronMessagingClientConfiguration.builder()
                        .baseDirectory(directory)
                        .remoteAddress(remote_address)
                        .remoteInitialControlPort(remote_control_port)
                        .remoteInitialPort(remote_data_port)
                        .build();
        try (final AeronMessagingClient client = create(configuration)) {
            client.run();
        }
    }
public static void main ( final String [ ] args ) throws Exception { if ( args . length < 4 ) { LOG . error ( "usage: directory remote-address remote-data-port remote-control-port" ) ; System . exit ( 1 ) ; } final Path directory = Paths . get ( args [ 0 ] ) ; final InetAddress remote_address = InetAddress . getByName ( args [ 1 ] ) ; final int remote_data_port = Integer . parseUnsignedInt ( args [ 2 ] ) ; final int remote_control_port = Integer . parseUnsignedInt ( args [ 3 ] ) ; final ImmutableAeronMessagingClientConfiguration configuration = ImmutableAeronMessagingClientConfiguration . builder ( ) . baseDirectory ( directory ) . remoteAddress ( remote_address ) . remoteInitialControlPort ( remote_control_port ) . remoteInitialPort ( remote_data_port ) . build ( ) ; try ( final AeronMessagingClient client = create ( configuration ) ) { client . run ( ) ; } }
Command-line entry point.
Command - line entry point .