Search in sources :

Example 1 with NamedDHTConfiguration

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");
    }
}
Also used : NamedDHTConfiguration(com.ms.silverking.cloud.dht.meta.NamedDHTConfiguration) NamedDHTConfiguration(com.ms.silverking.cloud.dht.meta.NamedDHTConfiguration) DHTConfiguration(com.ms.silverking.cloud.dht.meta.DHTConfiguration)

Aggregations

DHTConfiguration (com.ms.silverking.cloud.dht.meta.DHTConfiguration)1 NamedDHTConfiguration (com.ms.silverking.cloud.dht.meta.NamedDHTConfiguration)1