QPID-3603: HA backups pass identifying info to primary.

Pass hostname, management UUID and status in link connection arguments.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341580 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Renamed brokers and public-brokers to brokers-url and public-url for clarity.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341581 13f79535-47bb-0310-9956-ffa450edef68
QPID-4006: BDB HA. Make passivation async to avoid holding up the BDB thread. Introduce VirtualHost ERROR state to be used when virtual host is unable to activate or passivate itself completely. Change MULTISYNC mode to use WRITE_NO_SYNC. Stop relying on Monitor nodes to perform some tests.

Work of Robbie Gemmell <robbie@apache.org> and myself.

squashme

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341584 13f79535-47bb-0310-9956-ffa450edef68
QPID-3004: Keep the code compatible with clang C++ compiler (and probably gcc 4.7 too)
Fix up intrusive_ptr_add_ref(RefCounted*)/intrusive_ptr_release(RefCounted*) so they are
now found by argument dependent lookup.

Trivial: Added missing newline at end of file

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341608 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Remove final vestiges of non-portable alloca().

Fixed unit_test changes to avoid incorrect array initialisation.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342135 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Rearrange CMake a bit to improve the chances of compiling on non-Linux Unix

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342136 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Rearrange memory status code
Currently only Linux has a useful implementation and everyone else uses a null implementation.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342137 13f79535-47bb-0310-9956-ffa450edef68
QPID-4006: Remove BDB StateChangeListener during Environment#close() to avoid processing an unnecessary DETACHED event (which was causing a stack trace).

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342169 13f79535-47bb-0310-9956-ffa450edef68
QPID-3767: add additional test case for link sharing.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342442 13f79535-47bb-0310-9956-ffa450edef68
QPID-4012: update the priority queue entry sub lists to maintain a record of the priority index they represent, refer to this when comparing queue entries in order to avoid using the metadata later than is possible

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342667 13f79535-47bb-0310-9956-ffa450edef68
QPID-4006: [Java Broker] BDB HA.

Close BDB environment in the event of unexpected exceptions during commit/begin tran.
Install BDB exception listener to log exception arising from its own threads.
Default BDB parameters for sensible defaults for standard Qpid use-cases.
Ensure that closeInternal always closes the environment.
Added MBean operation descriptions.

Work of Robbie Gemmell <robbie@apache.org> and myself.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342712 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: fix some defects found by Coverity static analysis scan of C++ code

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342742 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: eliminate dead code and potential null pointer dereference as found by Coverity

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342759 13f79535-47bb-0310-9956-ffa450edef68
QPID-3995 - Cleans up queues created during Cucumber feature tests 
Applied patch from Darryl Pierce


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342786 13f79535-47bb-0310-9956-ffa450edef68
QPID-3992 - Removed the Boost license text from the Ruby LICENSE file.
Applied patch from Darryl Pierce.


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342788 13f79535-47bb-0310-9956-ffa450edef68
QPID-3936: Java Performance Test Framework - better PSFC support

Change ProducerParticipant to cancel the sending test messages after maximumDuration is reached.  This is required for
deterministic behaviour when using the Producer Side Flow Control feature of the Java Broker, otherwise the send() can
hang indefinitely after consumers have shutdown.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342843 13f79535-47bb-0310-9956-ffa450edef68
QPID-3936: Java Performance Test Framework.

Fix test highlighed by JDK1.7 build on Apache CI - test approach incompatible with the Junit lifecycle.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342861 13f79535-47bb-0310-9956-ffa450edef68
QPID-3997: AuthenticationManagers not cleaned up on error path

We have been seeing ApplicationRegistryShutdownTest fail regularly on JDK1.7 on Jenkins CI for the last week.  This is caused by the ApplicationRegistry
failing to clean up on the error path where many AuthenticationManagers are configured but one is not designated as default.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1342886 13f79535-47bb-0310-9956-ffa450edef68
QPID-4023: restore connection URL setter, add check that URL details have been set before calling connect(), add unit+sys test to verify operation

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343220 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Allow Queue::setPosition() to truncate the queue.

In the new HA code a backup may sometimes be ahead of the new primary after a
fail-over. In that case the backup truncates it's queues to the same position
as the primary so it can continue replicating.

(Note the assertions added to verify setPosition showed up a minor bug in the
old cluster code, which was leaving messages on the cluster update queue after
an update.  This patch fixes the issue.)

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343347 13f79535-47bb-0310-9956-ffa450edef68