}
}
}
protected void install(NodeInfo nodeInfo, ConfigurationData configurationData) throws IOException {
Kernel kernel = nodeInfo.newKernel();
AbstractName clusterConfigurationStoreName = searchClusterConfigurationStore(kernel);
File configurationDataFile = uploadConfiguration(kernel, nodeInfo, configurationData);
boolean inVMCall = nodeInfo.getConnectorInfo().isLocal();
File oldConfigurationDir = null;
if (inVMCall) {
oldConfigurationDir = configurationData.getConfigurationDir();
}
Object[] params = new Object[] {configurationData, configurationDataFile};
try {
kernel.invoke(clusterConfigurationStoreName, "install", params, METHOD_SIGNATURE_INSTALL);
} catch (Exception e) {
throw (IOException) new IOException("See nested").initCause(e);
} finally {
if (inVMCall) {
configurationData.setConfigurationDir(oldConfigurationDir);