Package com.persistit.exception

Examples of com.persistit.exception.VolumeNotFoundException


     * @throws PersistitException
     */
    public Exchange getExchange(final Volume volume, final String treeName, final boolean create)
            throws PersistitException {
        if (volume == null)
            throw new VolumeNotFoundException();
        List<Exchange> stack;
        final SessionId sessionId = getSessionId();

        synchronized (_exchangePoolMap) {
            stack = _exchangePoolMap.get(sessionId);
View Full Code Here


     */
    public Exchange getExchange(final String volumeName, final String treeName, final boolean create)
            throws PersistitException {
        final Volume volume = getVolume(volumeName);
        if (volume == null)
            throw new VolumeNotFoundException(volumeName);
        return getExchange(volume, treeName, create);
    }
View Full Code Here

                return _volumes.get(0);
            }
        }
        final Volume volume = getVolume(volumeName);
        if (volume == null) {
            throw new VolumeNotFoundException(volumeName);
        } else {
            return volume;
        }
    }
View Full Code Here

    synchronized void open() throws PersistitException {
        if (_opened) {
            throw new IllegalStateException("Volume " + this + " cannot be reopened");
        }
        if (!exists()) {
            throw new VolumeNotFoundException(getPath());
        }

        final VolumeSpecification spec = _volume.getSpecification();
        final VolumeStatistics stat = _volume.getStatistics();
        final VolumeStructure struc = _volume.getStructure();
View Full Code Here

     * @throws PersistitException
     */
    public Exchange getExchange(final Volume volume, final String treeName, final boolean create)
            throws PersistitException {
        if (volume == null)
            throw new VolumeNotFoundException();
        List<Exchange> stack;
        final SessionId sessionId = getSessionId();

        synchronized (_exchangePoolMap) {
            stack = _exchangePoolMap.get(sessionId);
View Full Code Here

     */
    public Exchange getExchange(final String volumeName, final String treeName, final boolean create)
            throws PersistitException {
        final Volume volume = getVolume(volumeName);
        if (volume == null)
            throw new VolumeNotFoundException(volumeName);
        return getExchange(volume, treeName, create);
    }
View Full Code Here

        Volume volume = getVolume(volumeName);
        if (volume == null) {
            if ((_volumes.size() == 1) && (volumeName.equals(dflt))) {
                volume = _volumes.get(0);
            } else {
                throw new VolumeNotFoundException(volumeName);
            }
        }
        return volume;
    }
View Full Code Here

                }
                _storage.open();
                opened = true;
            } else {
                if (!_specification.isCreate()) {
                    throw new VolumeNotFoundException(_specification.getPath());
                }
                _storage.create();
                opened = true;
            }
        } finally {
View Full Code Here

                }
                _storage.open();
                opened = true;
            } else {
                if (!_specification.isCreate()) {
                    throw new VolumeNotFoundException(_specification.getPath());
                }
                _storage.create();
                opened = true;
            }
        } finally {
View Full Code Here

     * @throws PersistitException
     */
    public Exchange getExchange(final Volume volume, final String treeName, final boolean create)
            throws PersistitException {
        if (volume == null)
            throw new VolumeNotFoundException();
        List<Exchange> stack;
        final SessionId sessionId = getSessionId();

        synchronized (_exchangePoolMap) {
            stack = _exchangePoolMap.get(sessionId);
View Full Code Here

TOP

Related Classes of com.persistit.exception.VolumeNotFoundException

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.