GOSSIP-39 User Defined Active Gossip (review by Dorian Ellerbe)
This commit is contained in:
@ -17,6 +17,9 @@
|
||||
*/
|
||||
package org.apache.gossip;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* In this object the settings used by the GossipService are held.
|
||||
*
|
||||
@ -41,6 +44,10 @@ public class GossipSettings {
|
||||
|
||||
private String distribution = "exponential";
|
||||
|
||||
private String activeGossipClass = "org.apache.gossip.manager.SimpleActiveGossipper";
|
||||
|
||||
private Map<String,String> activeGossipProperties = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Construct GossipSettings with default settings.
|
||||
*/
|
||||
@ -139,5 +146,21 @@ public class GossipSettings {
|
||||
public void setDistribution(String distribution) {
|
||||
this.distribution = distribution;
|
||||
}
|
||||
|
||||
public String getActiveGossipClass() {
|
||||
return activeGossipClass;
|
||||
}
|
||||
|
||||
public void setActiveGossipClass(String activeGossipClass) {
|
||||
this.activeGossipClass = activeGossipClass;
|
||||
}
|
||||
|
||||
public Map<String, String> getActiveGossipProperties() {
|
||||
return activeGossipProperties;
|
||||
}
|
||||
|
||||
public void setActiveGossipProperties(Map<String, String> activeGossipProperties) {
|
||||
this.activeGossipProperties = activeGossipProperties;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user