use of com.arjuna.ats.arjuna.objectstore.ObjectStoreIterator in project narayana by jbosstm.
the class ObjStoreBrowserImpl method supportedLog.
private final boolean supportedLog(String logID) throws ObjectStoreException, IOException {
Uid id = new Uid(logID);
if (id.equals(Uid.nullUid())) {
System.err.println(logID + " is null Uid");
} else if (currentType == null) {
printStream.printf("No type selected%n");
} else if (!currentType.contains("AtomicAction")) {
printStream.printf("Can not support this type");
} else {
ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), "/" + currentType);
Uid u;
do {
u = iter.iterate();
if (u.equals(id))
return true;
} while (Uid.nullUid().notEquals(u));
}
return false;
}
Aggregations