@Override public Bootstrap start() { if (state == State.STOPPED) { state = State.STARTING; LOGGER.info("{} is starting", this.getClass().getName()); try { build(); } catch (Exception e) { LOGGER.error("unable to add cassandra", e); } state = State.STARTED; LOGGER.info("{} is started", this.getClass().getName()); } return this; }
public CassandraBootstrap(URL url) { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(url); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } }
@Override public Bootstrap stop() { if (state == State.STARTED) { state = State.STOPPING; LOGGER.info("{} is stopping", this.getClass().getName()); try { shutdownHook.shutDownNow(); cleanup(); } catch (Exception e) { LOGGER.error("unable to stop cassandra", e); } state = State.STOPPED; LOGGER.info("{} is stopped", this.getClass().getName()); } return this; }
@Override public Bootstrap stop() { if (state == State.STARTED) { state = State.STOPPING; LOGGER.info("{} is stopping", this.getClass().getName()); try { shutdownHook.shutDownNow(); cleanup(); } catch (Exception e) { LOGGER.error("unable to stop cassandra", e); } state = State.STOPPED; LOGGER.info("{} is stopped", this.getClass().getName()); } return this; }
public CassandraBootstrap() { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(null); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } }
@Override public Bootstrap start() { if (state == State.STOPPED) { state = State.STARTING; LOGGER.info("{} is starting", this.getClass().getName()); try { build(); } catch (Exception e) { LOGGER.error("unable to add cassandra", e); } state = State.STARTED; LOGGER.info("{} is started", this.getClass().getName()); } return this; }
public CassandraBootstrap(URL url) { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(url); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } }
public CassandraBootstrap() { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(null); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } }