/** * Lists all fiji instances. * * @param hbaseURI URI of the HBase instance to list the content of. * @return A program exit code (zero on success). * @throws IOException If there is an error. */ private int listInstances(FijiURI hbaseURI) throws IOException { for (String instanceName : getInstanceNames(hbaseURI)) { getPrintStream().println(FijiURI.newBuilder(hbaseURI).withInstanceName(instanceName).build()); } return SUCCESS; }