java/kudu-client/src/test/java/org/apache/kudu/client/MiniKuduCluster.java
public MiniKuduCluster build() throws IOException {
      MiniKuduCluster cluster =
          new MiniKuduCluster(enableKerberos,
              numMasters, numTservers,
              extraTserverFlags, extraMasterFlags,
              kdcOptionsPb.build(), clusterRoot);
      try {
        cluster.start();
      } catch (IOException e) {
        // MiniKuduCluster.close should not throw, so no need for a nested try/catch.
        cluster.close();
        throw e;
      }
      return cluster;
    }
/**
     * Builds and starts a new {@link MiniKuduCluster} using builder state.
     * @return the newly started {@link MiniKuduCluster}
     * @throws IOException if something went wrong starting the cluster
     */
Builds and starts a new  MiniKuduCluster using builder state.
@return the newly started  MiniKuduCluster
@throws IOException if something went wrong starting the cluster
Builds and starts a new MiniKuduCluster using builder state . @return the newly started MiniKuduCluster @throws IOException if something went wrong starting the cluster
public MiniKuduCluster build() throws IOException {
      MiniKuduCluster cluster =
          new MiniKuduCluster(enableKerberos,
              numMasters, numTservers,
              extraTserverFlags, extraMasterFlags,
              kdcOptionsPb.build(), clusterRoot);
      try {
        cluster.start();
      } catch (IOException e) {
        cluster.close();
        throw e;
      }
      return cluster;
    }
public MiniKuduCluster build ( ) throws IOException { MiniKuduCluster cluster = new MiniKuduCluster ( enableKerberos , numMasters , numTservers , extraTserverFlags , extraMasterFlags , kdcOptionsPb . build ( ) , clusterRoot ) ; try { cluster . start ( ) ; } catch ( IOException e ) { cluster . close ( ) ; throw e ; } return cluster ; }
Builds and starts a new {@link MiniKuduCluster} using builder state.
Builds and starts a new { @link MiniKuduCluster } using builder state .
// MiniKuduCluster.close should not throw, so no need for a nested try/catch.