Add Failure detector to Main
This commit is contained in:
parent
c671310d0d
commit
9889727810
@ -7,6 +7,7 @@ import com.cloudius.urchin.api.APIClient;
|
|||||||
|
|
||||||
import org.apache.cassandra.db.commitlog.CommitLog;
|
import org.apache.cassandra.db.commitlog.CommitLog;
|
||||||
import org.apache.cassandra.gms.Gossiper;
|
import org.apache.cassandra.gms.Gossiper;
|
||||||
|
import org.apache.cassandra.gms.FailureDetector;
|
||||||
import org.apache.cassandra.locator.EndpointSnitchInfo;
|
import org.apache.cassandra.locator.EndpointSnitchInfo;
|
||||||
import org.apache.cassandra.net.MessagingService;
|
import org.apache.cassandra.net.MessagingService;
|
||||||
import org.apache.cassandra.service.StorageService;
|
import org.apache.cassandra.service.StorageService;
|
||||||
@ -21,6 +22,7 @@ public class Main {
|
|||||||
CommitLog.getInstance();
|
CommitLog.getInstance();
|
||||||
Gossiper.getInstance();
|
Gossiper.getInstance();
|
||||||
EndpointSnitchInfo.getInstance();
|
EndpointSnitchInfo.getInstance();
|
||||||
|
FailureDetector.getInstance();
|
||||||
Thread.sleep(Long.MAX_VALUE);
|
Thread.sleep(Long.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user