Examples of PersistitAdapterException


Examples of com.foundationdb.server.error.PersistitAdapterException

        tmpDB.setPersistitLogger(new Slf4jAdapter(LOG));
        try {
            tmpDB.setConfiguration(new Configuration(properties));
            tmpDB.initialize();
        } catch (PersistitException e1) {
            throw new PersistitAdapterException(e1);
        }

        ++instanceCount;
        this.db = tmpDB;
        this.dataVolume = db.getVolume(dataVolumeName);
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

        assert (instanceCount == 1) : instanceCount;
        db.shutdownGUI();
        try {
            db.close();
        } catch (PersistitException e) {
            throw new PersistitAdapterException(e);
        }
        dataVolume = null;
        tableStatusCache = null;
        db = null;
        --instanceCount;
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

    @Override
    public Collection<String> getAllTreeNames() {
        try {
            return Arrays.asList(dataVolume.getTreeNames());
        } catch(PersistitException e) {
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

        try {
            db.flush();
            db.copyBackPages();
        } catch (PersistitException e) {
            LOG.error("flush failed", e);
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

    public boolean treeExists(String treeName) {
        try {
            final Tree tree = dataVolume.getTree(treeName, false);
            return tree != null;
        } catch (PersistitException e) {
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

            return row;
        } catch (PersistitException e) {
            adapter.handlePersistitException(e);
            throw new AssertionError();
        } catch (InvalidOperationException e) {
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

                case SEQ: return tree.getSeqAccumulator(accumInfo.getIndex());
                default:
                    throw new IllegalStateException("Unknown accumulator type: " + accumInfo.type);
            }
        } catch (PersistitException e) {
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here

Examples of com.foundationdb.server.error.PersistitAdapterException

        try {
            treeService.populateTreeCache(storageDescription);
            return storageDescription.getTreeCache();
        }
        catch (PersistitException e) {
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.