Package org.apache.qpid

Examples of org.apache.qpid.AMQStoreException


                conn.close();
            }
        }
        catch (SQLException e)
        {
            throw new AMQStoreException("Error deleting of configured objects " + Arrays.asList(objects) + " from database: " + e.getMessage(), e);
        }
        return removed.toArray(new UUID[removed.size()]);
    }
View Full Code Here


                    conn.close();
                }
            }
            catch (SQLException e)
            {
                throw new AMQStoreException("Error updating configured object " + configuredObject + " in database: " + e.getMessage(), e);
            }
        }
    }
View Full Code Here

                    conn.close();
                }
            }
            catch (SQLException e)
            {
                throw new AMQStoreException("Error updating configured objects in database: " + e.getMessage(), e);
            }

        }

    }
View Full Code Here

                    rs.close();
                }
            }
            catch (JsonMappingException e)
            {
                throw new AMQStoreException("Error updating configured object " + configuredObject + " in database: " + e.getMessage(), e);
            }
            catch (JsonGenerationException e)
            {
                throw new AMQStoreException("Error updating configured object " + configuredObject + " in database: " + e.getMessage(), e);
            }
            catch (IOException e)
            {
                throw new AMQStoreException("Error updating configured object " + configuredObject + " in database: " + e.getMessage(), e);
            }
            finally
            {
                stmt.close();
            }
View Full Code Here

                conn.close();
            }
        }
        catch (JsonMappingException e)
        {
            throw new AMQStoreException("Error loading of configured object with id " + id + " from database: "
                            + e.getMessage(), e);
        }
        catch (JsonParseException e)
        {
            throw new AMQStoreException("Error loading of configured object with id " + id + " from database: "
                                + e.getMessage(), e);
        }
        catch (IOException e)
        {
            throw new AMQStoreException("Error loading of configured object with id " + id + " from database: "
                            + e.getMessage(), e);
        }
        catch (SQLException e)
        {
            throw new AMQStoreException("Error loading of configured object with id " + id + " from database: "
                    + e.getMessage(), e);
        }
        return result;
    }
View Full Code Here

                                objectMapper.readValue(attributes,Map.class));
                    }
                }
                catch (JsonMappingException e)
                {
                    throw new AMQStoreException("Error recovering persistent state: " + e.getMessage(), e);
                }
                catch (JsonParseException e)
                {
                    throw new AMQStoreException("Error recovering persistent state: " + e.getMessage(), e);
                }
                catch (IOException e)
                {
                    throw new AMQStoreException("Error recovering persistent state: " + e.getMessage(), e);
                }
                finally
                {
                    rs.close();
                }
View Full Code Here

                {
                    ((StoredJDBCMessage) storedMessage).store(_connWrapper.getConnection());
                }
                catch (SQLException e)
                {
                    throw new AMQStoreException("Exception on enqueuing message " + _messageId, e);
                }
            }
            _storeSizeIncrease += storedMessage.getMetaData().getContentSize();
            AbstractJDBCMessageStore.this.enqueueMessage(_connWrapper, queue, message.getMessageNumber());
        }
View Full Code Here

            brh.completeBindingRecovery();
        }
        catch (SQLException e)
        {
            throw new AMQStoreException("Error recovering persistent state: " + e.getMessage(), e);
        }
    }
View Full Code Here

    public void removeExchange(Exchange exchange) throws AMQStoreException
    {
        int results = removeConfiguredObject(exchange.getId());
        if (results == 0)
        {
            throw new AMQStoreException("Exchange " + exchange.getName() + " with id " + exchange.getId() + " not found");
        }
    }
View Full Code Here

            throws AMQStoreException
    {
        int results = removeConfiguredObject(binding.getId());
        if (results == 0)
        {
            throw new AMQStoreException("Binding " + binding + " not found");
        }
    }
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.