public static synchronized void start(String config) { if (started) { if (null != config && !config.equals(activeConfig)) { log.warn("Can't start in-process Cassandra instance " + "with yaml path {} because an instance was " + "previously started with yaml path {}", config, activeConfig); } return; } started = true; log.debug("Current working directory: {}", System.getProperty("user.dir")); System.setProperty("cassandra.config", config); // Prevent Cassandra from closing stdout/stderr streams System.setProperty("cassandra-foreground", "yes"); // Prevent Cassandra from overwriting Log4J configuration System.setProperty("log4j.defaultInitOverride", "false"); log.info("Starting cassandra with {}", config); /* * This main method doesn't block for any substantial length of time. It * creates and starts threads and returns in relatively short order. */ CassandraDaemon.main(new String[0]); activeConfig = config; }
public static synchronized void start(String config) { if (started) { if (null != config && !config.equals(activeConfig)) { log.warn("Can't start in-process Cassandra instance " + "with yaml path {} because an instance was " + "previously started with yaml path {}", config, activeConfig); } return; } started = true; log.debug("Current working directory: {}", System.getProperty("user.dir")); System.setProperty("cassandra.config", config); // Prevent Cassandra from closing stdout/stderr streams System.setProperty("cassandra-foreground", "yes"); // Prevent Cassandra from overwriting Log4J configuration System.setProperty("log4j.defaultInitOverride", "false"); log.info("Starting cassandra with {}", config); /* * This main method doesn't block for any substantial length of time. It * creates and starts threads and returns in relatively short order. */ CassandraDaemon.main(new String[0]); activeConfig = config; }
public static synchronized void start(String config) { if (started) { if (null != config && !config.equals(activeConfig)) { log.warn("Can't start in-process Cassandra instance " + "with yaml path {} because an instance was " + "previously started with yaml path {}", config, activeConfig); } return; } started = true; log.debug("Current working directory: {}", System.getProperty("user.dir")); System.setProperty("cassandra.config", config); // Prevent Cassandra from closing stdout/stderr streams System.setProperty("cassandra-foreground", "yes"); // Prevent Cassandra from overwriting Log4J configuration System.setProperty("log4j.defaultInitOverride", "false"); log.info("Starting cassandra with {}", config); /* * This main method doesn't block for any substantial length of time. It * creates and starts threads and returns in relatively short order. */ CassandraDaemon.main(new String[0]); activeConfig = config; }