/** * FOR TESTING PURPOSES */ public int restartUnsafe() throws IOException { return start().recoverSegmentsOnDisk(); }
/** * FOR TESTING PURPOSES */ public int restartUnsafe() throws IOException { return start().recoverSegmentsOnDisk(); }
/** * FOR TESTING PURPOSES */ public int restartUnsafe() throws IOException { return start().recoverSegmentsOnDisk(); }
private static CommitLog construct() { CommitLog log = new CommitLog(CommitLogArchiver.construct()); MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); try { mbs.registerMBean(log, new ObjectName("org.apache.cassandra.db:type=Commitlog")); } catch (Exception e) { throw new RuntimeException(e); } return log.start(); }
private static CommitLog construct() { CommitLog log = new CommitLog(CommitLogArchiver.construct()); MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); try { mbs.registerMBean(log, new ObjectName("org.apache.cassandra.db:type=Commitlog")); } catch (Exception e) { throw new RuntimeException(e); } return log.start(); }
private static CommitLog construct() { CommitLog log = new CommitLog(CommitLogArchiver.construct()); MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); try { mbs.registerMBean(log, new ObjectName("org.apache.cassandra.db:type=Commitlog")); } catch (Exception e) { throw new RuntimeException(e); } return log.start(); }