Package org.apache.qpid.server.store

Examples of org.apache.qpid.server.store.StoreException


                LOGGER.debug("Storing message metadata for message id " + messageId + " in transaction " + tx);
            }
        }
        catch (DatabaseException e)
        {
            throw new StoreException("Error writing message metadata with id " + messageId + " to database: " + e.getMessage(), e);
        }
    }
View Full Code Here


        try
        {
            OperationStatus status = _messageMetaDataDb.get(null, key, value, LockMode.READ_UNCOMMITTED);
            if (status != OperationStatus.SUCCESS)
            {
                throw new StoreException("Metadata not found for message with id " + messageId);
            }

            StorableMessageMetaData mdd = messageBinding.entryToObject(value);

            return mdd;
        }
        catch (DatabaseException e)
        {
            throw new StoreException("Error reading message metadata for message with id " + messageId + ": " + e.getMessage(), e);
        }
    }
View Full Code Here

            _repConfig.putAll((Map)repConfigAttr);
        }

        if (_coalescingSync && _durability.getLocalSync() == SyncPolicy.SYNC)
        {
            throw new StoreException("Coalescing sync cannot be used with master sync policy " + SyncPolicy.SYNC
                    + "! Please set highAvailability.coalescingSync to false in store configuration.");
        }

        super.configure(virtualHost);
    }
View Full Code Here

        {
            return attrValue.toString();
        }
        else
        {
            throw new StoreException("BDB HA configuration key not found. Please specify configuration attribute: "
                                                            + attributeName);
        }
    }
View Full Code Here

        {
            createReplicationGroupAdmin().removeMember(nodeName);
        }
        catch (OperationFailureException ofe)
        {
            throw new StoreException("Failed to remove '" + nodeName + "' from group. " + ofe.getMessage(), ofe);
        }
        catch (DatabaseException e)
        {
            throw new StoreException("Failed to remove '" + nodeName + "' from group. " + e.getMessage(), e);
        }
    }
View Full Code Here

                LOGGER.info("Node " + _nodeName + " successfully set as designated primary for group");
            }
        }
        catch (DatabaseException e)
        {
            throw new StoreException("Failed to set '" + _nodeName + "' as designated primary for group. " + e.getMessage(), e);
        }
    }
View Full Code Here

        {
            createReplicationGroupAdmin().updateAddress(nodeName, newHostName, newPort);
        }
        catch (OperationFailureException ofe)
        {
            throw new StoreException("Failed to update address for '" + nodeName +
                                        "' with new host " + newHostName + " and new port " + newPort + ". " + ofe.getMessage(), ofe);
        }
        catch (DatabaseException e)
        {
            throw new StoreException("Failed to update address for '" + nodeName +
                                        "' with new host " + newHostName + " and new port " + newPort + ". " + e.getMessage(),  e);
        }
    }
View Full Code Here

                {
                    _commitThreadWrapper.stopCommitThread();
                }
                catch (InterruptedException e)
                {
                    throw new StoreException(e);
                }
            }
        }
        finally
        {
View Full Code Here

        {
            _commitThreadWrapper.stopCommitThread();
        }
        catch (InterruptedException e)
        {
            throw new StoreException(e);
        }

        super.closeInternal();
    }
View Full Code Here

        {
            _connectionProvider.close();
        }
        catch (SQLException e)
        {
            throw new StoreException("Unable to close connection provider ", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.store.StoreException

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.