logger.info("migrating up: " + mg);
res = mg.migrate_up(cursor, range, params);
cursor = res.get("cursor");
}
if (cursor != null) {
Queue queue = QueueFactory.getDefaultQueue();
TaskOptions topt = TaskOptions.Builder.url("/migration");
for (String rkey : res.keySet()) {
if (!rkey.equals("cursor")) {
topt = topt.param(rkey, ""+ res.get(rkey));
}
}
queue.add(topt.param("cursor", cursor).param("num", ""+range).
param("dir", direction).param("migration", migration));
}
}
catch (ClassNotFoundException e) {
// e.printStackTrace();