Package org.apache.qpid

Examples of org.apache.qpid.AMQStoreException


            IntegerBinding.intToEntry(DEFAULT_CONFIG_VERSION, value);
            ByteBinding.byteToEntry((byte) 0, key);
            OperationStatus status = versionDb.put(null, key, value);
            if (status != OperationStatus.SUCCESS)
            {
                throw new AMQStoreException("Error initialising config version: " + status);
            }
        }

        versionDb.close();
View Full Code Here


            }

            int version = getSourceVersion(versionDb);
            if(version > AbstractBDBMessageStore.VERSION)
            {
                throw new AMQStoreException("Database version " + version
                                            + " is higher than the most recent known version: "
                                            + AbstractBDBMessageStore.VERSION);
            }
            performUpgradeFromVersion(version, versionDb);
        }
View Full Code Here

            StoreUpgrade upgrade = ctr.newInstance();
            upgrade.performUpgrade(_environment, UpgradeInteractionHandler.DEFAULT_HANDLER, _virtualHostName);
        }
        catch (ClassNotFoundException e)
        {
            throw new AMQStoreException("Unable to upgrade BDB data store from version " + fromVersion + " to version"
                                        + toVersion, e);
        }
        catch (NoSuchMethodException e)
        {
            throw new AMQStoreException("Unable to upgrade BDB data store from version " + fromVersion + " to version"
                                        + toVersion, e);
        }
        catch (InvocationTargetException e)
        {
            throw new AMQStoreException("Unable to upgrade BDB data store from version " + fromVersion + " to version"
                                        + toVersion, e);
        }
        catch (InstantiationException e)
        {
            throw new AMQStoreException("Unable to upgrade BDB data store from version " + fromVersion + " to version"
                                        + toVersion, e);
        }
        catch (IllegalAccessException e)
        {
            throw new AMQStoreException("Unable to upgrade BDB data store from version " + fromVersion + " to version"
                                        + toVersion, e);
        }
    }
View Full Code Here

            {
                throw (AMQStoreException) e;
            }
            else
            {
                throw new AMQStoreException("Unexpected exception", e);
            }
        }
    }
View Full Code Here

            {
                throw (AMQStoreException) e;
            }
            else
            {
                throw new AMQStoreException("Unexpected exception", e);
            }
        }
    }
View Full Code Here

            {
                throw (AMQStoreException) e;
            }
            else
            {
                throw new AMQStoreException("Unexpected exception", e);
            }
        }
    }
View Full Code Here

                updateConfigVersion(newConfigVersion);
            }
        }
        catch (DatabaseException e)
        {
            throw new AMQStoreException("Error recovering persistent state: " + e.getMessage(), e);
        }

    }
View Full Code Here

            {
                IntegerBinding.intToEntry(newConfigVersion, value);
                OperationStatus status = cursor.put(key, value);
                if (status != OperationStatus.SUCCESS)
                {
                    throw new AMQStoreException("Error setting config version: " + status);
                }
            }
            cursor.close();
            cursor = null;
            txn.commit();
View Full Code Here

            IntegerBinding.intToEntry(0,value);
            ByteBinding.byteToEntry((byte) 0,key);
            OperationStatus status = _configVersionDb.put(null, key, value);
            if (status != OperationStatus.SUCCESS)
            {
                throw new AMQStoreException("Error initialising config version: " + status);
            }
            return 0;
        }
        finally
        {
View Full Code Here

                    tx.abort();
                    tx = null;
                }
                catch (DatabaseException e1)
                {
                    throw new AMQStoreException("Error aborting transaction " + e1, e1);
                }
            }

            throw new AMQStoreException("Error removing message with id " + messageId + " from database: " + e.getMessage(), e);
        }
        finally
        {
            if (tx != null)
            {
                try
                {
                    tx.abort();
                    tx = null;
                }
                catch (DatabaseException e1)
                {
                    throw new AMQStoreException("Error aborting transaction " + e1, e1);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.AMQStoreException

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.