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);
}
}
Aggregations