return new RevisionResult(false, "no connection to Scalaris", true,
page, revision, false, false, title,
System.currentTimeMillis() - timeAtStart);
}
TransactionSingleOp scalaris_single;
String scalaris_key;
scalaris_single = new TransactionSingleOp(connection);
scalaris_key = getPageKey(title, nsObject);
try {
page = scalaris_single.read(scalaris_key).jsonValue(Page.class);
} catch (NotFoundException e) {
return new RevisionResult(false, "page not found at \""
+ scalaris_key + "\"", false, page, revision, true, false,
title, System.currentTimeMillis() - timeAtStart);
} catch (Exception e) {
return new RevisionResult(false, "unknown exception reading \""
+ scalaris_key + "\" from Scalaris: " + e.getMessage(),
e instanceof ConnectionException, page, revision, false,
false, title, System.currentTimeMillis() - timeAtStart);
}
// load requested version if it is not the current one cached in the Page object
if (id != page.getCurRev().getId() && id >= 0) {
scalaris_key = getRevKey(title, id, nsObject);
try {
revision = scalaris_single.read(scalaris_key).jsonValue(Revision.class);
} catch (NotFoundException e) {
return new RevisionResult(false, "revision not found at \""
+ scalaris_key + "\"", false, page, revision, false,
true, title, System.currentTimeMillis() - timeAtStart);
} catch (Exception e) {