Examples of PersistitException


Examples of com.persistit.exception.PersistitException

            if (_closed) {
                return;
            }
            _closed = true;
            _headBuffer = null;
            PersistitException pe = null;
            try {
                final FileLock lock = _fileLock;
                _fileLock = null;
                if (lock != null) {
                    lock.release();
                }
            } catch (final Exception e) {
                _persistit.getLogBase().exception.log(e);
                pe = new PersistitException(e);
            }
            try {
                closeChannel();
            } catch (final Exception e) {
                _persistit.getLogBase().exception.log(e);
                // has priority over Exception thrown by
                // releasing file lock.
                pe = new PersistitException(e);
            }
            if (pe != null) {
                throw pe;
            }
        } finally {
View Full Code Here

Examples of com.persistit.exception.PersistitException

            if (_lastExceptionTimestamp > flushedTimestamp) {
                final Exception e = _lastException;
                if (e instanceof PersistitException) {
                    throw (PersistitException) e;
                } else {
                    throw new PersistitException(e);
                }
            }
            _totalCommits.incrementAndGet();
            _totalCommitWaitTime.addAndGet(System.nanoTime() - now);
        }
View Full Code Here

Examples of com.persistit.exception.PersistitException

            if (_lastExceptionTimestamp > flushedTimestamp) {
                final Exception e = _lastException;
                if (e instanceof PersistitException) {
                    throw (PersistitException) e;
                } else {
                    throw new PersistitException(e);
                }
            }
            _totalCommits.incrementAndGet();
            _totalCommitWaitTime.addAndGet(System.nanoTime() - now);
        }
View Full Code Here

Examples of com.persistit.exception.PersistitException

                return;
            }
            _closed = true;
        }

        PersistitException pe = null;

        try {
            closeChannel();
        } catch (final Exception e) {
            _persistit.getLogBase().exception.log(e);
            // has priority over Exception thrown by
            // releasing file lock.
            pe = new PersistitException(e);
        }
        try {
            if (_path != null) {
                final File file = new File(_path);
                file.delete();
            }
        } catch (final Exception e) {
            _persistit.getLogBase().exception.log(e);
            // has priority over Exception thrown by
            // releasing file lock.
            pe = new PersistitException(e);
        }

        if (pe != null) {
            throw pe;
        }
View Full Code Here

Examples of com.persistit.exception.PersistitException

            return false;
        }
        try {
            if (buffer.isDataPage() || buffer.isIndexPage()) {
                final long mvvCount = _counters._mvvCount;
                final PersistitException ipse = buffer.verify(key, _visitor);
                if (ipse != null) {
                    addFault(ipse.getMessage(), page, level, 0);
                    key.clear();
                    return false;
                }
                if (_counters._mvvCount > mvvCount) {
                    _counters._mvvPageCount++;
View Full Code Here

Examples of com.persistit.exception.PersistitException

            if (_lastExceptionTimestamp > flushedTimestamp) {
                final Exception e = _lastException;
                if (e instanceof PersistitException) {
                    throw (PersistitException) e;
                } else {
                    throw new PersistitException(e);
                }
            }
            _totalCommits.incrementAndGet();
            _totalCommitWaitTime.addAndGet(System.nanoTime() - now);
        }
View Full Code Here

Examples of com.persistit.exception.PersistitException

            return false;
        }
        try {
            if (buffer.isDataPage() || buffer.isIndexPage()) {
                final long mvvCount = _counters._mvvCount;
                final PersistitException ipse = buffer.verify(key, _visitor);
                if (ipse != null) {
                    addFault(ipse.getMessage(), page, level, 0);
                    key.clear();
                    return false;
                }
                if (_counters._mvvCount > mvvCount) {
                    _counters._mvvPageCount++;
View Full Code Here

Examples of com.persistit.exception.PersistitException

                return;
            }
            _closed = true;
        }

        PersistitException pe = null;

        try {
            closeChannel();
        } catch (final Exception e) {
            _persistit.getLogBase().exception.log(e);
            // has priority over Exception thrown by
            // releasing file lock.
            pe = new PersistitException(e);
        }
        try {
            if (_path != null) {
                final File file = new File(_path);
                file.delete();
            }
        } catch (final Exception e) {
            _persistit.getLogBase().exception.log(e);
            // has priority over Exception thrown by
            // releasing file lock.
            pe = new PersistitException(e);
        }

        if (pe != null) {
            throw pe;
        }
View Full Code Here

Examples of com.persistit.exception.PersistitException

            if (_closed) {
                return;
            }
            _closed = true;
            _headBuffer = null;
            PersistitException pe = null;
            try {
                final FileLock lock = _fileLock;
                _fileLock = null;
                if (lock != null) {
                    lock.release();
                }
            } catch (Exception e) {
                _persistit.getLogBase().exception.log(e);
                pe = new PersistitException(e);
            }
            try {
                closeChannel();
            } catch (Exception e) {
                _persistit.getLogBase().exception.log(e);
                // has priority over Exception thrown by
                // releasing file lock.
                pe = new PersistitException(e);
            }
            if (pe != null) {
                throw pe;
            }
        } finally {
View Full Code Here

Examples of com.persistit.exception.PersistitException

            if (_lastExceptionTimestamp > timestamp) {
                final Exception e = _lastException;
                if (e instanceof PersistitException) {
                    throw (PersistitException) e;
                } else {
                    throw new PersistitException(e);
                }
            }
            _totalCommits.incrementAndGet();
            _totalCommitWaitTime.addAndGet(System.nanoTime() - now);
        }
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.