use of com.ms.silverking.cloud.dht.gridconfig.SKGridConfiguration in project SilverKing by Morgan-Stanley.
the class StaticDHTCreator method writeGridConfig.
public static void writeGridConfig(ClientDHTConfiguration clientConfig, File gridConfigDir, String gcName) throws IOException {
// Write GridConfig
Map<String, String> envMap;
envMap = new HashMap<>();
envMap.put(ClientDHTConfiguration.nameVar, clientConfig.getName());
envMap.put(ClientDHTConfiguration.portVar, Integer.toString(clientConfig.getPort()));
envMap.put(ClientDHTConfiguration.zkLocVar, clientConfig.getZKConfig().toString());
writeGridConfig(new SKGridConfiguration(gcName, envMap), gridConfigDir, gcName);
System.out.println(gcName);
}
use of com.ms.silverking.cloud.dht.gridconfig.SKGridConfiguration in project SilverKing by Morgan-Stanley.
the class RingCurTargetTool method main.
public static void main(String[] args) {
try {
CmdLineParser parser;
RingCurTargetToolOptions options;
RingCurTargetTool ringCurTargetTool;
SKGridConfiguration gc;
options = new RingCurTargetToolOptions();
parser = new CmdLineParser(options);
try {
parser.parseArgument(args);
gc = SKGridConfiguration.parseFile(options.gridConfig);
new RingCurTargetTool().go(gc, options);
} catch (CmdLineException cle) {
System.err.println(cle.getMessage());
parser.printUsage(System.err);
System.exit(-1);
}
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
}
}
Aggregations