public C createWithoutStarting()

in src/main/java/org/apache/cassandra/distributed/shared/AbstractBuilder.java [170:184]


    public C createWithoutStarting() throws IOException
    {
        finaliseBuilder();
        if (rootFile == null && rootPath == null)
            rootPath = Files.createTempDirectory("dtests");

        if (rootFile != null) rootFile.mkdirs();
        else try { Files.createDirectories(rootPath); } catch (FileAlreadyExistsException ignore) { }

        // TODO: make token allocation strategy configurable
        if (tokenSupplier == null)
            tokenSupplier = evenlyDistributedTokens(nodeCount, tokenCount);

        return factory.newCluster((B) this);
    }