Search in sources :

Example 1 with IPurgeService

use of org.jumpmind.symmetric.service.IPurgeService in project symmetric-ds by JumpMind.

the class SymmetricAdmin method runPurge.

private void runPurge(CommandLine line, List<String> args) {
    IPurgeService purgeService = getSymmetricEngine().getPurgeService();
    boolean all = args.contains("all") || args.size() == 0;
    if (args.contains("outgoing") || all) {
        purgeService.purgeOutgoing(true);
    }
    if (args.contains("incoming") || all) {
        purgeService.purgeIncoming(true);
    }
}
Also used : IPurgeService(org.jumpmind.symmetric.service.IPurgeService)

Aggregations

IPurgeService (org.jumpmind.symmetric.service.IPurgeService)1