diff options
| author | Andrew Donald Kennedy <grkvlt@apache.org> | 2010-07-26 14:37:43 +0000 |
|---|---|---|
| committer | Andrew Donald Kennedy <grkvlt@apache.org> | 2010-07-26 14:37:43 +0000 |
| commit | 65b81e721fcbb9e56886e077e79dea3b799e6d08 (patch) | |
| tree | b25ad45b08a8fe98a270a318d70173f11c3b91ec /qpid/java/systests | |
| parent | 4fc614a8fa13135024c2927e20926a54279cc46e (diff) | |
| download | qpid-python-65b81e721fcbb9e56886e077e79dea3b799e6d08.tar.gz | |
QPID-2659: Add AMQStoreException to message stores
This is a sub-class of AMQInternalException, which encapsulates error code 541,
or INTERNAL_ERROR.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@979315 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests')
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/server/store/SlowMessageStore.java | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/store/SlowMessageStore.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/store/SlowMessageStore.java index 8131e09b49..a5c38e7e33 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/store/SlowMessageStore.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/store/SlowMessageStore.java @@ -23,6 +23,7 @@ package org.apache.qpid.server.store; import org.apache.commons.configuration.Configuration; import org.apache.log4j.Logger; import org.apache.qpid.AMQException; +import org.apache.qpid.AMQStoreException; import org.apache.qpid.framing.AMQShortString; import org.apache.qpid.framing.FieldTable; import org.apache.qpid.server.exchange.Exchange; @@ -174,47 +175,47 @@ public class SlowMessageStore implements MessageStore } - public void createExchange(Exchange exchange) throws AMQException + public void createExchange(Exchange exchange) throws AMQStoreException { doPreDelay("createExchange"); _realStore.createExchange(exchange); doPostDelay("createExchange"); } - public void removeExchange(Exchange exchange) throws AMQException + public void removeExchange(Exchange exchange) throws AMQStoreException { doPreDelay("removeExchange"); _realStore.removeExchange(exchange); doPostDelay("removeExchange"); } - public void bindQueue(Exchange exchange, AMQShortString routingKey, AMQQueue queue, FieldTable args) throws AMQException + public void bindQueue(Exchange exchange, AMQShortString routingKey, AMQQueue queue, FieldTable args) throws AMQStoreException { doPreDelay("bindQueue"); _realStore.bindQueue(exchange, routingKey, queue, args); doPostDelay("bindQueue"); } - public void unbindQueue(Exchange exchange, AMQShortString routingKey, AMQQueue queue, FieldTable args) throws AMQException + public void unbindQueue(Exchange exchange, AMQShortString routingKey, AMQQueue queue, FieldTable args) throws AMQStoreException { doPreDelay("unbindQueue"); _realStore.unbindQueue(exchange, routingKey, queue, args); doPostDelay("unbindQueue"); } - public void createQueue(AMQQueue queue) throws AMQException + public void createQueue(AMQQueue queue) throws AMQStoreException { createQueue(queue, null); } - public void createQueue(AMQQueue queue, FieldTable arguments) throws AMQException + public void createQueue(AMQQueue queue, FieldTable arguments) throws AMQStoreException { doPreDelay("createQueue"); _realStore.createQueue(queue, arguments); doPostDelay("createQueue"); } - public void removeQueue(AMQQueue queue) throws AMQException + public void removeQueue(AMQQueue queue) throws AMQStoreException { doPreDelay("removeQueue"); _realStore.removeQueue(queue); @@ -268,7 +269,7 @@ public class SlowMessageStore implements MessageStore } public void enqueueMessage(TransactionLogResource queue, Long messageId) - throws AMQException + throws AMQStoreException { doPreDelay("enqueueMessage"); _underlying.enqueueMessage(queue, messageId); @@ -276,7 +277,7 @@ public class SlowMessageStore implements MessageStore } public void dequeueMessage(TransactionLogResource queue, Long messageId) - throws AMQException + throws AMQStoreException { doPreDelay("dequeueMessage"); _underlying.dequeueMessage(queue, messageId); @@ -284,7 +285,7 @@ public class SlowMessageStore implements MessageStore } public void commitTran() - throws AMQException + throws AMQStoreException { doPreDelay("commitTran"); _underlying.commitTran(); @@ -292,7 +293,7 @@ public class SlowMessageStore implements MessageStore } public StoreFuture commitTranAsync() - throws AMQException + throws AMQStoreException { doPreDelay("commitTran"); StoreFuture future = _underlying.commitTranAsync(); @@ -301,7 +302,7 @@ public class SlowMessageStore implements MessageStore } public void abortTran() - throws AMQException + throws AMQStoreException { doPreDelay("abortTran"); _underlying.abortTran(); @@ -309,7 +310,7 @@ public class SlowMessageStore implements MessageStore } } - public void updateQueue(AMQQueue queue) throws AMQException + public void updateQueue(AMQQueue queue) throws AMQStoreException { doPreDelay("updateQueue"); _realStore.updateQueue(queue); |
