use of org.jumpmind.symmetric.SymmetricAdmin in project symmetric-ds by JumpMind.
the class SymmetricEngineHolder method uninstallEngine.
public void uninstallEngine(ISymmetricEngine engine) {
Node node = engine.getNodeService().getCachedIdentity();
String engineName = engine.getEngineName();
File file = new SymmetricAdmin("uninstall", "", "").findPropertiesFileForEngineWithName(engineName);
engine.uninstall();
engine.destroy();
if (file != null) {
file.delete();
}
getEngines().remove(engineName);
for (ISymmetricEngine existingEngine : this.getEngines().values()) {
existingEngine.removeAndCleanupNode(node.getNodeId());
}
}
Aggregations