public RaftApplication(int serverIndex, URI[] uris, File logDir) {
this(serverIndex,uris,logDir, Collections.<StateTransitionListener>emptyList(),Collections.<RaftProtocolListener>emptyList());
}
public ResourceConfig makeResourceConfig() {
ClusterConfig clusterConfig = HttpClusterConfig.from(new HttpReplica(uris[serverIndex]),
remotes());
if (!logDir.exists() && !logDir.mkdirs())
logger.warn("failed to create directories for storing logs, bad things will happen");