summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* 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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@750873 13f79535-47bb-0310-9956-ffa450edef68
* Style ChangesMartin Ritchie2009-03-062-69/+61
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@750025 13f79535-47bb-0310-9956-ffa450edef68
* reset byte credit after flushing when not prefetching, this is a follow up ↵Rafael H. Schloming2009-03-031-4/+4
| | | | | | fix for QPID-1642/QPID-1643 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749842 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1708: go into CLOSED instead of DETACHED state when there is an ↵Rafael H. Schloming2009-03-032-3/+60
| | | | | | execution exception git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749740 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1637 : Update to test to correctly use priority queues in test. Fixed ↵Martin Ritchie2009-03-037-67/+183
| | | | | | big in inhaler/purger to ensure priority data is correctly reloaded. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749699 13f79535-47bb-0310-9956-ffa450edef68
* Prevent NullPointerException when backing store file is deleted externallyMartin Ritchie2009-03-031-7/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749697 13f79535-47bb-0310-9956-ffa450edef68
* QPID-430: Change configuration variable name in line with review remarks.Aidan Skinner2009-03-033-6/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749572 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1583: close all app registries after use.Aidan Skinner2009-03-021-2/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749340 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1637 : Added Purger thread for Priority Queues and when threasholds are ↵Martin Ritchie2009-03-0214-211/+673
| | | | | | | | | | | | adjusted. QueueEntries are now the point of entry to load/unload rather than the List. This is because it is only the QueueEntryList that the QueueEntry that is attached to that can correctly account for the inMemory usage. In the Priority Queue case the priority queue does not know which sub list the QueueEntry is on. As the QEI knows it makes sence to request load/unload through the entry. Set the default Maximum InMemory to -1, disabled. Removed the FlowableQueueEntryList interface, merged with QueueEntryList git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749331 13f79535-47bb-0310-9956-ffa450edef68
* Added check for when file reference becomes null, occurs if the file is ↵Martin Ritchie2009-03-021-3/+8
| | | | | | externally deleted. Also noted success return value was never propogated correctly, Updated : Test needed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749330 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1583: Add test for reloading external firewall rules, fix buglets this ↵Aidan Skinner2009-03-0210-80/+299
| | | | | | test exposed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749315 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1704: updated server configuration testRobert Gemmell2009-03-021-12/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749285 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1704: remove JMXMP ConnectorServer usage from the brokers JMX ↵Robert Gemmell2009-03-025-165/+123
| | | | | | management capabilities git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749282 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1691: add missing resourcesRobert Gemmell2009-03-0211-0/+1347
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749275 13f79535-47bb-0310-9956-ffa450edef68
* fix build break due to uncommited changeRobert Gemmell2009-03-021-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749265 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1581 : QMan Admin Console fixes.Andrea Gazzarini2009-03-0213-2594/+127
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749233 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1703: automatically expand the top level of the mbean navigation view ↵Robert Gemmell2009-03-021-0/+25
| | | | | | upon establishing connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749186 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1691: add Linux GTK x86-64 and Solaris GTK Sparc builds of the ↵Robert Gemmell2009-03-0221-3/+281
| | | | | | management console. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749183 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1492: make the broker return the current queue depth and maximum queue ↵Robert Gemmell2009-03-025-16/+53
| | | | | | depth in bytes rather than kilbytes, matching their respective setter methods. Augment the management console's navigation queue selection list to show the appropriate numbers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749149 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1700: the jmx console's core plugin should not depend on the ↵Robert Gemmell2009-02-282-2/+1
| | | | | | jmxremote.sasl plugin, this is now an (optional) dependancy of the qpid-management-common plugin git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748937 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1680: remove fixed value 'domain' combo box, and remove unecessary ↵Robert Gemmell2009-02-284-114/+23
| | | | | | domain node from management console navigation tree git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748936 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1683: swap the order 'next' and 'previous' buttons for viewing tabular ↵Robert Gemmell2009-02-271-4/+4
| | | | | | data to make them be in the conventional <previous .. next> layout git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748726 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1696: remove unused 'transport' details from the management console ↵Robert Gemmell2009-02-274-52/+20
| | | | | | server connection process. these details are taken care of by the JMXConnectionFactory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748721 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1655: use a File object to hold reference to access file instead of a ↵Robert Gemmell2009-02-272-117/+280
| | | | | | String to fix issue with createTempFile and absolute paths. Stop catching IOExceptions in saveAccessFile() and make calling methods catch them to check for and report failure and act accordingly to reverse actions in memory. Add additional unit tests to cover access rights file manipulation. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748686 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1536: modify the B64MD5 PD to take plain text input and perform the ↵Robert Gemmell2009-02-278-130/+301
| | | | | | required hashing itself in order to present a consistent interface for user management. Alter management console to use mbean versioning to detect this and send plaintext to v2+ user management mbeans. Update RMIPasswordAuthenticator to make use of the new PD input consistency git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748680 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1502: Update the PlainPasswordFilePrincipalDatabase to be manipulatable ↵Robert Gemmell2009-02-274-44/+870
| | | | | | by the management console and cached in memory like the B64MD5 PD. Add unit tests for the PlainPD git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748641 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1590: make add server and reconnect dialogues centre within the app ↵Robert Gemmell2009-02-272-14/+22
| | | | | | window to fix multimonitor issues git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748620 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1242: reintegrate the ability to view binary message content, lost ↵Robert Gemmell2009-02-278-13/+337
| | | | | | previously during a branch merge to trunk git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748611 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1701: fixed potential deadlock on connection closeRafael H. Schloming2009-02-272-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1699: fix mbean annotation, log failure to reload file. Address review ↵Aidan Skinner2009-02-272-6/+13
| | | | | | comments from robbie. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748591 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1699: reload the config file sections that we can when we receive ↵Aidan Skinner2009-02-275-8/+155
| | | | | | SIGHUP. Add jmx method to do so. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748561 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1635,QPID-1636,QPID-1638 : Updated QueueEntries to contain additional ↵Martin Ritchie2009-02-2720-292/+643
| | | | | | | | | | | | | | | | | | | values from AMQMessage, _flags and expiry this allows the checking of immediate delivery and expiry on unloaded messages. Updated nomenclature to use load/unload rather than the overloaded flow/recover. Created new FileQueueBackingStoreFactory to ensure that validates and creates initial flowToDiskLocation and creates a new BackingStore. Responsibility for FlowToDisk has been added to the QueueEntryLists. This will allow the easy unloading of the structure in the future. Inorder to do this the size,count and memory count properties had to be moved from the SimpleAMQQueue to the QueueEntryList. An Inhaler thread was created in addition to the synchronous loading of messages. This is initiated as a result of a flowed QEL dropping below the minimumMemory value. A test to ensure that the queue never exceeds its set memory usage and that the count does not go negative has been added to SimpleAMQQueueTest. The SimpleAMQQueue is responsible for deciding when a message can be unloaded after delivery takes place. The QEL cannot decide this as there is no state for a message being marked as sent to a consumer. Only Aquired and Dequeued. The unloaded message is only deleted after the QueueEntry is deleted from the QEL. This negates the need to recreated the data on disk if the message needs to be unloaded again. All files/directories relating to FtD are created as deleteOnExit files so that under clean shutdown the VM will ensure that the files are deleted. On startup the flowToDiskLocation is also purged to ensure a clean starting point. SAMQQueueThreadPoolTest was augmented to take in to account the new inhaler executor reference. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1635,QPID-1636 : Moved additional properties from AMQMessage up to ↵Martin Ritchie2009-02-2719-416/+775
| | | | | | QueueEntry to allow processing whilst messasge has been flowed. Moved : _flags (for Immediate and delivered status), expiry, messageID. Created base class to maintain counts of data and objects in queue. Removed this responsibility from the AMQQueues and on to the QueueEntryLists. This will more easily allow the QEL structure to be flowed to disk at a later stage. Updated tests as a result of moves. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748516 13f79535-47bb-0310-9956-ffa450edef68