summaryrefslogtreecommitdiff
path: root/qpid/java
Commit message (Collapse)AuthorAgeFilesLines
* QPID-1776: fix interpolation of variables.Aidan Skinner2009-03-262-4/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@758730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1735 : Added Documentation to QueueBackingStore around thread safety of ↵Martin Ritchie2009-03-2511-122/+258
| | | | | | | | | | load/unload, Updated FQBS to adhere to the thread safety specified by the interface. QueueEntry was updated to return the AMQMessage from the load() to complete the getMessage() interface. As in a flowed state the message may be purged before a reference can be taken. Added new Test QueueEntryImplThreadingTest that should later be run for longer but aims to show that load always returns the message even when unloads are occuring asynchronously. Commit from 0.5-release : r758388 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@758397 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1735 : Removed duplicated methods with differing functionality that was ↵Martin Ritchie2009-03-254-22/+8
| | | | | | | | | | causing FtD to fail. Annoyingly the tests work as they used the method with the extra functionality. Commit from 0.5-release : r758382 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@758395 13f79535-47bb-0310-9956-ffa450edef68
* QEIT.testExpiry() only allows 10ms for creating the QueueEntry. Depending on ↵Martin Ritchie2009-03-251-7/+8
| | | | | | the running platform and the result of currentTimeMillis() it can be a close to allowing expiry git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@758377 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1773Rajith Muditha Attapattu2009-03-241-1/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@758017 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1662 : Converted PassiveTTL to a transacted session so we can ensure ↵Martin Ritchie2009-03-241-1/+6
| | | | | | all messages are on broker and aging before we start our sleep cycle. The transacted session won't affect the way messages age. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@757696 13f79535-47bb-0310-9956-ffa450edef68
* The example verification was broken.Rajith Muditha Attapattu2009-03-2421-35/+35
| | | | | | | Fixed the verify files to use the correct paths for log4j file, python and c++ examples. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@757641 13f79535-47bb-0310-9956-ffa450edef68
* This is to correct a mistake pointed out in the dev listRajith Muditha Attapattu2009-03-241-1/+1
| | | | | | | | The method connect(host, port, vhost, username, password, false,"PLAIN"); is using the hardcoded value false for the ssl paramter. This commit modified the code to use ssl as the parameter instead. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@757640 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1511: add scripts to generate example ssl stores, and add refrence in ↵Robert Gemmell2009-03-223-1/+77
| | | | | | | | | the relevant exception message Merged from branches/0.5-release : r757268 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@757270 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1767: add units to message age attribute descriptionRobert Gemmell2009-03-221-3/+3
| | | | | | | Merged from branches/0.5-release : r757257 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@757258 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1763 : Fixed slow down due to fs lookup for unloaded message introduced ↵Martin Ritchie2009-03-201-5/+11
| | | | | | | | | | in r748516 Merged from branches/0.5-release : r756506 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756518 13f79535-47bb-0310-9956-ffa450edef68
* Fix for QPID-1761 and QPID-1762: made BBEncoder.grow() flip the buffer ↵Rafael H. Schloming2009-03-206-26/+80
| | | | | | before copying; added a BBEncoder test; made unrecognized mime types default to BytesMessage; added logging of exception root cause to AMQSession; fixed miscelaneous test failures git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756328 13f79535-47bb-0310-9956-ffa450edef68
* These classes are not used in any meaningful way.Rajith Muditha Attapattu2009-03-192-335/+0
| | | | | | | I am removing them to avoid any confusion they may cause. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756231 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1760Rajith Muditha Attapattu2009-03-194-47/+12
| | | | | | | | The AbstractBytesMessage will now use the toString method from AbstractJMSMessage Also I have modified the toBodyString method in AbstractBytesMessage to use a function that can handle unprintable charachters and print contents upto a maximum of 100 bytes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756228 13f79535-47bb-0310-9956-ffa450edef68
* Modified README to match runSample.shJonathan Robie2009-03-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756072 13f79535-47bb-0310-9956-ffa450edef68
* Modified runSample.sh to use a relative path to the example source.Jonathan Robie2009-03-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756071 13f79535-47bb-0310-9956-ffa450edef68
* Changed the default location for examples.Jonathan Robie2009-03-192-2/+2
| | | | | | | | | | !!! HACK ALERT !!! These files have long contained a default path used in one particular vendor's installation. We need to fix this! Today's fix makes the default correct for at least that one vendor, but we need to find a better way to do this. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@756032 13f79535-47bb-0310-9956-ffa450edef68
* increased timeout for ConnectionCloseTestRafael H. Schloming2009-03-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@755324 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1743: change maxMessageSize description to indicate it is in Bytes not ↵Robert Gemmell2009-03-171-7/+6
| | | | | | KBytes, make size descriptions in other methods consistent git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@755256 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1742: new splash screen logo for JMX management console to signal its ↵Robert Gemmell2009-03-171-0/+0
| | | | | | JMX and Java broker roots git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@755187 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1626: handle legacy config file a bit more gracefully.Aidan Skinner2009-03-162-0/+73
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@754958 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1736: Timeout DNS lookups if they take more than 30 seconds.Aidan Skinner2009-03-161-3/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@754934 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1694: place navigation settings ini file in .qpidmc subfolder instead ↵Robert Gemmell2009-03-161-1/+12
| | | | | | of directly in user home directory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@754807 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1738: update button and descriptive text to better indicate the views ↵Robert Gemmell2009-03-161-2/+2
| | | | | | purpose to users git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@754803 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1730 : Logging update highlighted that we were printing the queue ↵Martin Ritchie2009-03-132-2/+2
| | | | | | before we had fully initialised it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@753253 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1730 : Improve the logging so we can see what is going one during ↵Martin Ritchie2009-03-134-5/+20
| | | | | | persistent recovery as we do not have a working persistent module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@753220 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1730 : Update the order in which we initialise. We now load the config ↵Martin Ritchie2009-03-131-41/+162
| | | | | | file from disk then recover from the persistent strore. This approach applies the vhost configuration and then applies the persistent state from the store to those objects rather than recreating them. The new inner classes on VirtualHost are to be removed once we have fully extracted the RoutingTable from the legacy MessageStores as this is the root of the problem. The Store needs to be open to create new durable objects but the current stores must recover their state before new entries are added. So now the persistent state is being loaded on to a broker in a consistent state after it has configured a) its default exchanges and b) loaded the queue config from the config file. Eventually we will only have one location for queue config and all will be right in the world. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@753219 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1727,QPID-1726 : Disable QueueBrowsingFlwoToDiskTest untill C++ broker ↵Martin Ritchie2009-03-121-0/+2
| | | | | | can flow to disk transient queues with Apache store git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@752845 13f79535-47bb-0310-9956-ffa450edef68
* SyncWaitDelay*Test is failing spuradically with a management port clash. ↵Martin Ritchie2009-03-121-0/+2
| | | | | | Simplest solution here is to disable the management interface for these tests. The more complex change to ensure the MC is shut down correctly and port freed during test startup will not be a problem for production. It only occurs here as we start a broker then stop and start a new one immediately. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@752810 13f79535-47bb-0310-9956-ffa450edef68
* Update versions to 0.5Martin Ritchie2009-03-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@752529 13f79535-47bb-0310-9956-ffa450edef68
* Allow immediate and mandatory defaults to be changedMartin Ritchie2009-03-111-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@752528 13f79535-47bb-0310-9956-ffa450edef68
* QPID-949 : Removed the deleteOnExit calls on all flowed entries, as this ↵Martin Ritchie2009-03-095-14/+24
| | | | | | will increase our memory usage. Instead add a close method on the BackingStore that is called when the queue closes and clean up the backing then. Also moved the QueueHousekeeping thread stop to before we do any queue closing in the VHost. This will ensure that we are not causing any operations that might inadvertadly load a message, and so prevent the backing file from being deleted. This should of course now not occur as all getMessage() calls have been removed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@751722 13f79535-47bb-0310-9956-ffa450edef68
* Removed false positive return from FU.delete(). Delete mirrors functionality ↵Martin Ritchie2009-03-092-8/+16
| | | | | | provided by java.io. Attempting to delete an non-existent file returns false. The caller must handle this correctly. If client provides a null value then the call will throw a NPE which is a valid java response. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@751720 13f79535-47bb-0310-9956-ffa450edef68
* QPID-949 : Removed all getMessage() calls as this will cause a flowed ↵Martin Ritchie2009-03-0915-64/+77
| | | | | | message to be read in to memory from disk. In all instances the reason was to perform methods that exist on the the QueueEntry. Added accessor to MessageID on QueueEntry. Outstanding getMessage() calls have been left in to perform NO_LOCAL work. Moving Publisher and PublisherClient identifer to the QEI would remove this need. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@751718 13f79535-47bb-0310-9956-ffa450edef68
* Added test to ensure ThreadPool is references are correctly removed for ↵Martin Ritchie2009-03-092-10/+45
| | | | | | Priority queues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@751714 13f79535-47bb-0310-9956-ffa450edef68
* FileUtils would report a failure to delete a non-existent fileMartin Ritchie2009-03-092-2/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@751636 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1720Rajith Muditha Attapattu2009-03-062-7/+29
| | | | | | | The fix is a bit of a hack, but I don't see another way to handle it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@751061 13f79535-47bb-0310-9956-ffa450edef68
* FileUtils : Was not correctly handling the case where a File object became ↵Martin Ritchie2009-03-061-7/+8
| | | | | | null, it would previously have thrown a NPE which was erroneously caught this and declared the delete to have failed. If there is nothing to delete (signified by the Null File object) then the delete should pass. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750946 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1634 : FileQueueBackingStore had two issues. Delete wasn't using the ↵Martin Ritchie2009-03-061-7/+9
| | | | | | getFileHandle() method so it was attempting to delete a bin rather than the message data. Our Broker Unit tests don't create the right type of ByteBuffer so whilst they passed the buffer.getData().array() failed as array() is not supported in the ByteBuffer types we actually use at runtime. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750876 13f79535-47bb-0310-9956-ffa450edef68
* QPID-949, QPID-1633 : Set default Maximum Memory Usage for a queue to ↵Martin Ritchie2009-03-064-14/+100
| | | | | | | | 100Meg. Future work would be to have the broker split Xmx between VirtualHost and for the Vhost then to use its housekeeping thread to spread the memory between the current queues. It could of course be clever and give more memory to queues in high use. Mistype in AMQQueueFactory resulted in it setting the Max Queue Size alert rather than the Max Memory value git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750875 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1635 : Feed back from review, ensure that getMessage() never returns ↵Martin Ritchie2009-03-062-15/+10
| | | | | | null. Used setDeliveredToConsumers() on QEI to know when it is safe to unload message so SAMQQueue does not need to have anything to do with message un/loading. So the FtD work is fully encapuslated by the QEI which delegates memory accounting to its list. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750874 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1628 : Ensured all getSize() calls are done on the QueueEntry to ↵Martin Ritchie2009-03-069-25/+26
| | | | | | prevent the inadvertent loading of a flowed message with a call to getMessage() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750873 13f79535-47bb-0310-9956-ffa450edef68
* Style ChangesMartin Ritchie2009-03-062-69/+61
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-949 : Extend the basic QueueBrowser_Test to run on a queue that has ↵Martin Ritchie2009-03-061-0/+69
| | | | | | been flowed to disk git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750869 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1451 : Added the ability to log first message recevied in Queue Browser.Martin Ritchie2009-03-062-38/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750868 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1639 : Added test to ensure that properties passed on QueueDeclare are ↵Martin Ritchie2009-03-063-5/+243
| | | | | | applied to queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750867 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1713Rajith Muditha Attapattu2009-03-041-14/+144
| | | | | | | | The automated test case for this is still being worked out. However this feature has been tested manually. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750205 13f79535-47bb-0310-9956-ffa450edef68
* Corrected a spelling mistakeRajith Muditha Attapattu2009-03-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750204 13f79535-47bb-0310-9956-ffa450edef68
* This is related QPID-1640Rajith Muditha Attapattu2009-03-042-29/+80
| | | | | | | This includes a the failover test run in a loop. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750203 13f79535-47bb-0310-9956-ffa450edef68
* qpid-1712: changed default value for _cycleRetries to 1Arnaud Simon2009-03-041-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750025 13f79535-47bb-0310-9956-ffa450edef68