use of com.ms.silverking.cloud.dht.meta.NamedDHTConfiguration in project SilverKing by Morgan-Stanley.
the class MetaTool method namedDHTConfigurationFor.
private static NamedDHTConfiguration namedDHTConfigurationFor(Tool tool, String name) {
switch(tool) {
case DHTConfiguration:
return new NamedDHTConfiguration(name, null);
case PassiveNodes:
DHTConfiguration dhtConfig;
dhtConfig = DHTConfiguration.forPassiveNodes(name);
return new NamedDHTConfiguration(null, dhtConfig);
case ClassVars:
return new NamedDHTConfiguration(null, DHTConfiguration.emptyTemplate);
default:
throw new RuntimeException("panic");
}
}
Aggregations