QPID-5410: [Java Broker/BDB]. Introduce a thin facade (EnvironmentFacade) between the BDBMessage and BDB JE's Environment/ReplicatedEnvironment. The motivation behind this facade is principally HA; there are a number of cases where JE requires the ReplicatedEnvironment is recreated. The facade layer allows for this to be done transparently from the upper tiers (the BDBMessageStore). The facade has two implementations StandardFacade used in the non-HA use case, and ReplicatedEnvironmentFacade in the HA case.

Key changes:

* BDBMessageStore reverts to a single implementation without knowledge of HA.
* BDBMessageStore now interacts with JE via the facade.
* BDBHAVirtualHost is now responsible for the creation of ReplicatedEnvironmentFacade
* BDBHAMessageStoreManagerMBean interrogates the facade
* ReplicatedEnvironmentFacade monitors the group for changes in state (nodes becoming uncontactable etc), if such a state change is detected, the DatabasePinger
fires a single transaction to determine if quorum still exists.  If quorum does not exist, the environment is restarted, thus transition the environment into
the UNKNOWN state.



git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1581797 13f79535-47bb-0310-9956-ffa450edef68
QPID-5410: Merge info associated with this change.



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