GOSSIP-36 Persist ring state
This commit is contained in:
@ -40,7 +40,7 @@ public class GossipSettings {
|
||||
|
||||
/** the threshold for the detector */
|
||||
//private double convictThreshold = 2.606201185901408;
|
||||
private double convictThreshold = 4.5;
|
||||
private double convictThreshold = 2.606201185901408;
|
||||
|
||||
private String distribution = "exponential";
|
||||
|
||||
@ -48,6 +48,14 @@ public class GossipSettings {
|
||||
|
||||
private Map<String,String> activeGossipProperties = new HashMap<>();
|
||||
|
||||
private String pathToRingState = "./";
|
||||
|
||||
private boolean persistRingState = true;
|
||||
|
||||
private String pathToDataState = "./";
|
||||
|
||||
private boolean persistDataState = true;
|
||||
|
||||
/**
|
||||
* Construct GossipSettings with default settings.
|
||||
*/
|
||||
@ -162,5 +170,37 @@ public class GossipSettings {
|
||||
public void setActiveGossipProperties(Map<String, String> activeGossipProperties) {
|
||||
this.activeGossipProperties = activeGossipProperties;
|
||||
}
|
||||
|
||||
public String getPathToRingState() {
|
||||
return pathToRingState;
|
||||
}
|
||||
|
||||
public void setPathToRingState(String pathToRingState) {
|
||||
this.pathToRingState = pathToRingState;
|
||||
}
|
||||
|
||||
public boolean isPersistRingState() {
|
||||
return persistRingState;
|
||||
}
|
||||
|
||||
public void setPersistRingState(boolean persistRingState) {
|
||||
this.persistRingState = persistRingState;
|
||||
}
|
||||
|
||||
public String getPathToDataState() {
|
||||
return pathToDataState;
|
||||
}
|
||||
|
||||
public void setPathToDataState(String pathToDataState) {
|
||||
this.pathToDataState = pathToDataState;
|
||||
}
|
||||
|
||||
public boolean isPersistDataState() {
|
||||
return persistDataState;
|
||||
}
|
||||
|
||||
public void setPersistDataState(boolean persistDataState) {
|
||||
this.persistDataState = persistDataState;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user