QPID-4062 : [Java Tests] add misssing file from previous checkin

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349531 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Separate QueueGuard from ReplicatingSubscription.

QueueGuard: implements QueueObserver to delay completion of new messages.
ReplicatingSubscription: Implements subscription, sends messages & events to backup.

These were previously combined as one. QueueGuard is now separated out
so that it can be created before the ReplicatingSubscription, in
anticipation of an expected backup connecting. This is needed for 2 reasons:
- new queues must be guarded until they are backuped up.
- after a failover, all queues must be guarded until backups are ready.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349538 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Introduced RemoteBackup to track backup status.

The primary creates RemoteBackup object for each connected or expected
backup. On first being promoted, the new primary has a RemoteBackup
for each of the known backups at the time of the failure.

The RemoteBackup manages queue guards for its backup and
tracks it's readiness.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349540 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Move calls to ConfigurationObserver outside of locks.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349541 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Guard should not complete messages from the internal event queue.

ReplicatingSubscription::acknowledge was calling Guard::complete for messages on the
internal event queue as well as the replicated queue. Corrected to only complete
messages from the replicated queue.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349542 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Improvements to HA log messages, clarify primary/backp role.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349543 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: HA bug fixes around ha::QueueGuard

- Remove nested calls between QueueGuard::dequeued and ReplicatingSubscription
- ReplicatingSubscription can't start ahead of QueueGuard::getReadyPosition()
- Fix QueueGuard firstSafe calcultatoin
- Replace DequeueRemover with DequeueScanner in ReplicatingSubscription
- Removed bad assertions in ReplicatingSubscription and QueueGuard

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349544 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Lock in Queue::getPosition.

Needed to ensure serialization of position changes with setObservers for ha plugin.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349546 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: HA bug fixes around transition to ready status

- Simplify QueueGuard::firstSafe calculation.
- Fix error in setting initial queues - was not checking if replicated.
- Send ready status to backups. Tests hang, deadlock in opened()->RemoteBackup on primary?
- Fix deadlock in QueueGuard.
- Don't start guards inside ConnectionObserver::opened.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349547 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Fix errors in CMakeLists.txt for ha code.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349857 13f79535-47bb-0310-9956-ffa450edef68
QPID-4061 - Added statistic: Number of unacknowledged messages in a session


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349865 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Fix error in CMakeLists.txt to link ha library.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349873 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA:
    *Cleaned up JBoss7 configuration
    *Documentated cluster configuration for connection URL
    *Minor typo fixes

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349981 13f79535-47bb-0310-9956-ffa450edef68
QPID-4065 - Remove the message's trace list during Queue::reRoute


git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350003 13f79535-47bb-0310-9956-ffa450edef68
QPID-3603: Bug fixes to HA code, passing test_failover_send_receive

- Updated HA logging messages to conform to new [Category] log format.
- QueueGuard fencepost error, set firstSafe correctly
- ReplicatingSubscription passing correct broker info to getGuard()
- Don't remove RemoteBackups on disconnect: fixes race where backup rejects connection but primary sees closed.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350069 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Simple fix to make JBoss7 compilation classpath generic

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350293 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Correct template to be strictly standards comformant (work with clang 3.1 & probably gcc 4.7)

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350376 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: CMakeLists.txt: moved reference to pthread from HA link list to linux specific section.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350381 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Fix build errors and warnings on windows in HA code.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350383 13f79535-47bb-0310-9956-ffa450edef68
QPID-4049: Linux C++ broker crashes when client connects SSL with expired certificate

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