GOSSIP-39 User Defined Active Gossip (review by Dorian Ellerbe)

This commit is contained in:
Edward Capriolo
2017-01-22 21:32:18 -05:00
parent b2af449074
commit 3f1882fbcf
27 changed files with 740 additions and 353 deletions

View File

@ -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;
}
}