this.millisStart = System.currentTimeMillis();
LOGGER.info("AgpPush: Starting synchronization...");
try {
this.source.getConnection().generateToken();
this.destination.getConnection().generateToken();
AgpSearchRequest sourceRequest = new AgpSearchRequest() {
@Override
protected boolean doContinue() {
return AgpPush.this.doContinue();
}
};
sourceRequest.search(this.source.getConnection(),this.source.getSearchCriteria(),
new AgpItemListener() {
@Override
public void onItemLoaded(AgpConnection connection, AgpItem item) throws Exception {
AgpPush.this.syncItem(item);
}