// as it is a read operation an in case of a race condition loading and inserting
// into the Map is idempotent and the action-config Map is a ConcurrentHashMap
actionConf = loadActionConf(hostPort, action);
hostPortActionConfigs.put(action, actionConf);
}
return new XConfiguration(actionConf.toProperties());
}
private Configuration getConfiguration(String hostPort) {
hostPort = (hostPort != null) ? hostPort.toLowerCase() : null;
Configuration conf = hadoopConfigs.get(hostPort);