summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-1266 - Provide a stop() method on AMQQueue to stop all processing on ↵Martin Ritchie2008-09-023-2/+18
| | | | | | that queue thus shutting down the ThreadPool. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@691263 13f79535-47bb-0310-9956-ffa450edef68
* QPID-579 : Make broker stop on startup errorsMartin Ritchie2008-09-021-4/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@691262 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1258 add ASL to java files that were missing itAidan Skinner2008-08-225-0/+105
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@688094 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1167: reset queue notification lists when creating queues. Pull out ↵Aidan Skinner2008-08-217-25/+73
| | | | | | defaults centrally. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@687764 13f79535-47bb-0310-9956-ffa450edef68
* Sorry went crazy with git and didn't meant to commit this changeMartin Ritchie2008-08-211-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@687749 13f79535-47bb-0310-9956-ffa450edef68
* Stopped the broker closing the ProtocolSessions as this was causing the ↵Martin Ritchie2008-08-211-4/+5
| | | | | | client to lock in Mina seemingly missing the notify for the CloseFuture and hangs indefinately git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@687741 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1202: TopicExchance.removeFilteredQueue: if there are no instances of ↵Aidan Skinner2008-08-201-8/+11
| | | | | | the filter, it's ok to remove it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@687382 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1202: Rebind durable subscriptions if the arguments have changedAidan Skinner2008-08-191-8/+25
| | | | | | | | TopicExchange: take field arguments into account when determining if topic binding already exists when binding, but not for regular isBound(). DurableSubscriptionTest: add test case for QPID-1202 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@687010 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1226 : Last few changes to correctly shutdown all ApplicationRegistries ↵Martin Ritchie2008-08-185-3/+41
| | | | | | on each test run git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@686722 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1136 : Fixed Flow Control problem due to this change and added test to ↵Martin Ritchie2008-08-125-17/+7
| | | | | | validate that Flow Control is operating correctly git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@685104 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1193 : Actually removed the calls that pass in the ugly nullMartin Ritchie2008-08-112-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@684714 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1193 : re-added createQueue(AMQQueue queue) method, after code review call.Martin Ritchie2008-08-113-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@684710 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1218: cleaned up the interface to IoTransport a bit; added IoAcceptor; ↵Rafael H. Schloming2008-08-091-2/+2
| | | | | | fixed Session tracking of sync point; default JAVA inside qpid-run git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@684182 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1218 Optionally use IoTransport, it's hot, but doesn't pass all the ↵Aidan Skinner2008-08-081-0/+11
| | | | | | tests yet. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@684016 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1136 : Provided a fix for the leak in UnacknowledgedMessage when ↵Martin Ritchie2008-08-088-84/+144
| | | | | | acking. Added a new InternalBrokerBaseCase for performing testing on the broker without using the client libraries. This allows for testing closer to AMQP. Merged from M2.1.x git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683949 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1224: add methods to get the list of message ids from a queue, with ↵Aidan Skinner2008-08-083-0/+204
| | | | | | optional offset. Test class for this. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683932 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1213: Patch from rgodfrey to refactor AbstractJMSMessage and ↵Rafael H. Schloming2008-08-072-7/+1
| | | | | | descendants to move AMQP version specific code into delegates and remove unnecessary conversion between 0-8 and 0-10 objects git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683683 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1195 , QPID-1193 Initial changes to allow bind and queue arguments to ↵Martin Ritchie2008-08-0715-65/+770
| | | | | | be stored and recovered from the MessageStore. Created a test to validate that the stored values can be recovered. DerbyStore hasn't fully been implemented. Surrounding work has been done and tested with BDBMessageStore. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683632 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1218: fix stupid used-only-by-tests method breakage that I have exposedAidan Skinner2008-08-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683597 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1218: Boost broker performance by lots.Aidan Skinner2008-08-079-71/+54
| | | | | | | | | | | | | | AMQMessage: Allow references to be incremented in a pile IncomingMessage: Increment message references in one go, flatten delivery loop a little. Make _destinationQueues an ArrayList, massively increasing performance. Iter ate through it with indexing AccessResult: don't use StringBuilder so much Update tests and exchanges to reflect new API usage, almost all of this is just type narrowing except for Topic where there's an extra copy, but it isn't too bad relative to the number of HashSet and HashMap operations that go on inside there. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683583 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1187 : The broker did not correctly handle subscriptions that would ↵Martin Ritchie2008-07-231-1/+5
| | | | | | suspend due to exhaustion of bytes credit. The processQueue loop would spin, this fix marks the subscription inactive for that loop in processQueue so it will stop processing that subscription and ultimately the whole processQueue loop if required. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@679059 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1182 : Added additional logging to identify the exception that caused ↵Martin Ritchie2008-07-174-18/+34
| | | | | | Authentication to fail. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677633 13f79535-47bb-0310-9956-ffa450edef68
* QPID-871 : The shutdown change had a spurious getInstance() call which would ↵Martin Ritchie2008-07-161-8/+14
| | | | | | case a new instance of ID 1 to be created if there wasn't one, it would then procede to shutdown that MBeanServer not the MBeanServer attached to the ApplicationRegistry that is being shutdown. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677327 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1181 : Added additional logging to help diagnose a NullPointerExceptionMartin Ritchie2008-07-162-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@677263 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1172 : Moved unregistration out of the sendLock. Potential refactor ↵Martin Ritchie2008-07-151-239/+175
| | | | | | possible between processQueue and flushSubscription git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676887 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1175 : VirtualHost now validates that name is non-null and non-empty. ↵Martin Ritchie2008-07-151-0/+5
| | | | | | Full protocol validation of the virtualhost name has not been performed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@676883 13f79535-47bb-0310-9956-ffa450edef68
* QPID-474 forgot ASL header, oopsAidan Skinner2008-07-072-0/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674513 13f79535-47bb-0310-9956-ffa450edef68
* QPID-474 Make sure that our SASL servers actually, y'know, validate the passwordAidan Skinner2008-07-076-7/+204
| | | | | | | | | | | AmqPlainSaslServer.java: Actually check password PlainSaslServer.java: Actually check password SaslServerTestCase.java: base test case for testing our SASL impls AMQPlainSaslServerTest.java: test the AMQPlainSaslServer dealie PlainSaslServerTest.java: test the PlainSaslServer TestPrincipalDatabase.java: Mockish TestPrincipalDatabase git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674510 13f79535-47bb-0310-9956-ffa450edef68
* QPID-871 - Added a ConnectionRegistry per Virtualhost to track the open ↵Martin Ritchie2008-07-0414-131/+896
| | | | | | | | | | | | | connections. Altered the ApplicationRegistry so that when the shutdown hook is fired it: Unbinds from the listening sockets Then closes each virtualhost which in turn closes all the active TCP connections before closing the MessageStore thus preventing any logged errors occuring as a result of the active TCP connection performing an action on the closed store. Test provided MessageStoreShutdownTest which uses the new InternalBrokerBaseCase and InternalTestProtocolSession classes to perform system testing of the Broker without TCP framing or client codebase. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674085 13f79535-47bb-0310-9956-ffa450edef68
* QPID-887: name housekeeping thread properly.Aidan Skinner2008-07-011-1/+2
| | | | | | | Apply patch from suran at wso2 dot com git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@673082 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1101 : Updated Direct Exchange so it does not modify lists of queuesRobert Godfrey2008-06-202-11/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@669885 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1144 : Reference count drops to zero too early for immediate messages ↵Robert Godfrey2008-06-201-3/+11
| | | | | | in a txn git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@669841 13f79535-47bb-0310-9956-ffa450edef68
* QPID-950 : Fixed Derby Message StoreRobert Godfrey2008-06-191-72/+111
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@669480 13f79535-47bb-0310-9956-ffa450edef68
* QPID-950 : Broker refactoring, copied / merged from branchRobert Godfrey2008-06-19150-8448/+11539
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@669431 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1066 : Removed isInfo wrapping. Added test that is missing from trunk ↵Martin Ritchie2008-05-191-7/+1
| | | | | | from M2.x QueueDepthSelectorTest. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@657859 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1060 : Release ref to transient meta data; cache message sizeRobert Godfrey2008-05-162-22/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@657097 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 652388-652389,652399,652567-652568,653416 via svnmerge from Aidan Skinner2008-05-063-74/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x ........ r652388 | ritchiem | 2008-04-30 15:40:18 +0100 (Wed, 30 Apr 2008) | 2 lines QPID-889 : Removed _reapingStoreContext from CSDM replaced with local StoreContext()s so they are not reused by different threads. ........ r652389 | ritchiem | 2008-04-30 15:40:45 +0100 (Wed, 30 Apr 2008) | 1 line QPID-887 : Renamed QueueHouseKeeping threads so they can be identified in thread dump. Named Queue-housekeeping-<virtualhost name> ........ r652399 | ritchiem | 2008-04-30 16:32:42 +0100 (Wed, 30 Apr 2008) | 1 line QPID-888,QPID-886 : Fixed all management uses of _lock.lock / _lock.unlock so that they correctly call unlock from a finally block in the CSDM. There are two issues that cover that. QPID-888 - Fix the management ones and QPID-886 to fix the use in removeExpired. ........ r652567 | aidan | 2008-05-01 17:32:20 +0100 (Thu, 01 May 2008) | 1 line QPID-994 Dont wait for attain state as connection is closed by we get CloseOk ........ r652568 | aidan | 2008-05-01 17:35:09 +0100 (Thu, 01 May 2008) | 1 line QPID-1001 dont set the expiration time if TTL is 0 ........ r653416 | aidan | 2008-05-05 11:24:50 +0100 (Mon, 05 May 2008) | 1 line QPID-1019 prevent messages being dequeued unecessarily, from rgodfrey ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@653720 13f79535-47bb-0310-9956-ffa450edef68
* QPID-887 : Renamed QueueHouseKeeping threads so they can be identified in ↵Martin Ritchie2008-05-051-33/+36
| | | | | | thread dump. Named Queue-housekeeping-<virtualhost name> git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@653415 13f79535-47bb-0310-9956-ffa450edef68
* QPID-832 : Fix eol-styleRobert Godfrey2008-04-2419-2622/+2622
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@651325 13f79535-47bb-0310-9956-ffa450edef68
* QPID-832: fixed DerbyMessageStore to compile on Java 1.5 (hopefully)Rafael H. Schloming2008-04-241-4/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@651276 13f79535-47bb-0310-9956-ffa450edef68
* QPID-832 merge M2.xAidan Skinner2008-04-244-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@651133 13f79535-47bb-0310-9956-ffa450edef68
* QPID-832 copy the M2.x brokerAidan Skinner2008-04-23245-0/+41426
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@651112 13f79535-47bb-0310-9956-ffa450edef68
* Delete stuff that's just going to get synced from M2.xAidan Skinner2008-04-23265-43544/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@651111 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 579126,579137 via svnmerge from Aidan Skinner2008-01-291-3/+3
| | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/M2 ........ r579126 | rgreig | 2007-09-25 09:42:53 +0100 (Tue, 25 Sep 2007) | 2 lines QPID-582: fix some 1.6 compile errors ........ r579137 | rgreig | 2007-09-25 10:00:34 +0100 (Tue, 25 Sep 2007) | 2 lines QPID-582 fix Java 6 compile errors ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@616454 13f79535-47bb-0310-9956-ffa450edef68
* Enabled the broker module again, and Commented out the offending class that ↵Rajith Muditha Attapattu2007-11-291-30/+37
| | | | | | had compilation errors due missing classes from the new mina version git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@599216 13f79535-47bb-0310-9956-ffa450edef68
* QPID-572 Applied test patch supplied by Aidan Skinner along with change to ↵Martin Ritchie2007-09-121-1/+7
| | | | | | ConcurrentSelectorDeliveryManager that resolves the ordering problem. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@574982 13f79535-47bb-0310-9956-ffa450edef68
* added debugging utility methodRafael H. Schloming2007-09-041-0/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@572750 13f79535-47bb-0310-9956-ffa450edef68
* fixed a race condition causing intermittant test failures in ↵Rafael H. Schloming2007-08-301-40/+49
| | | | | | AMQBrokerManagerMBeanTest git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@571277 13f79535-47bb-0310-9956-ffa450edef68
* Remerge of M2. All tests pass locallyMartin Ritchie2007-08-3073-1232/+5542
| | | | | | | | | | | | | | | | Testing done in Intelij and mvn command line via windows/cygwin. Python tests removed from auto build pending Jython-siztion. Tested running broker in intelij and python run-tests from cygwin. All tests pass. (CombinedTest still exhibts a race condition. but that has always been so.) Additional Race condition identified (around MsgReject/AutoDeleteQueues) during testing patch to follow. systests are inconsistent Some use TestableMemoryMessageStore some use MemoryMessgaeStore. Lets not roll back this change if issues are discovered. Lets work together to go forward and address any issues. I have spent a lot of time ensuring the tests work for me so I hope that they work for you. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@571129 13f79535-47bb-0310-9956-ffa450edef68
* QPID-543 : Add ability to register cusom exchange typesRobert Godfrey2007-08-0613-44/+202
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@563125 13f79535-47bb-0310-9956-ffa450edef68