code: private void run(String[] args) {
          if (args.length != 2) {
              usage();
          }
          
          System.out.println("Opening Doradus server: " + args[0] + ":" + args[1]);
          try (DoradusClient client = new DoradusClient(args[0], Integer.parseInt(args[1]))) {
              deleteApplication(client);
              createApplication(client);
              addData(client);
              queryData(client);
              deleteData(client);
          }
      }
docs: Create a Dory client connection and execute the example commands.