Runnable recoverer;
if (logBasedStorage) {
recoverer = new LogIndexRecoverer(this, indexCode, logServerHost, logServerPort);
} else {
recoverer = new IndexRecoverer(this, "127.0.0.1", basePort, baseDir, indexCode, environment, recoveryStorage, cassandraClusterHosts);
((IndexRecoverer)recoverer).resetTimestamp();
}
Thread recovererThread = new Thread(recoverer) {
public void run() {