Package com.foundationdb.server.error

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


        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

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

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

    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

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

                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

        try {
            treeService.populateTreeCache(storageDescription);
            return storageDescription.getTreeCache();
        }
        catch (PersistitException e) {
            throw new PersistitAdapterException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.PersistitAdapterException

Copyright © 2018 www.massapicom. 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.