Search in sources :

Example 1 with SymmetricAdmin

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());
    }
}
Also used : SymmetricAdmin(org.jumpmind.symmetric.SymmetricAdmin) Node(org.jumpmind.symmetric.model.Node) ISymmetricEngine(org.jumpmind.symmetric.ISymmetricEngine) File(java.io.File)

Aggregations

File (java.io.File)1 ISymmetricEngine (org.jumpmind.symmetric.ISymmetricEngine)1 SymmetricAdmin (org.jumpmind.symmetric.SymmetricAdmin)1 Node (org.jumpmind.symmetric.model.Node)1