use of org.jumpmind.symmetric.model.RemoteNodeStatuses in project symmetric-ds by JumpMind.
the class AbstractTest method pullFiles.
protected boolean pullFiles(String name) {
int tries = 0;
boolean pulled = false;
boolean lastPull = false;
boolean errorOccurred = false;
while (!errorOccurred && (lastPull || (!pulled && tries < 10))) {
RemoteNodeStatuses statuses = getWebServer(name).getEngine().getFileSyncService().pullFilesFromNodes(true);
try {
statuses.waitForComplete(60000);
} catch (InterruptedException ex) {
log.warn(ex.getMessage());
}
lastPull = statuses.wasDataProcessed();
errorOccurred = statuses.errorOccurred();
pulled |= lastPull;
AppUtils.sleep(100);
tries++;
}
return pulled;
}
use of org.jumpmind.symmetric.model.RemoteNodeStatuses in project symmetric-ds by JumpMind.
the class AbstractTest method pushFiles.
protected boolean pushFiles(String name) {
int tries = 0;
boolean pulled = false;
while (!pulled && tries < 10) {
RemoteNodeStatuses statuses = getWebServer(name).getEngine().getFileSyncService().pushFilesToNodes(true);
try {
statuses.waitForComplete(60000);
} catch (InterruptedException ex) {
log.warn(ex.getMessage());
}
pulled = statuses.wasDataProcessed();
AppUtils.sleep(100);
tries++;
}
return pulled;
}
Aggregations