[NO ISSUE][REP] Extensible Replication Strategy Factory
authorMurtadha Hubail <murtadha.hubail@couchbase.com>
Sat, 14 Aug 2021 18:01:57 +0000 (21:01 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Mon, 16 Aug 2021 15:59:38 +0000 (15:59 +0000)
commit3e4bf05fee9bdb879f0256647e532e2499d91c67
tree4523ed53eac638b6b85e0dc910adb86efaf17184
parenta518efb94f6543a4885c1f314a07bc13875a3d38
[NO ISSUE][REP] Extensible Replication Strategy Factory

- user model changes: no
- storage format changes: no
- interface changes: yes

Details:

- Allow specifying replication strategy factory at
  NC application level.
- Add replica getter to replica manager.

Change-Id: I7c71ae2d19c81050c4e338efac155ae39f4b202e
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12825
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/NCAppRuntimeContext.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/ReplicaManager.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/hyracks/bootstrap/NCApplication.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/INcApplicationContext.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/replication/IReplicationStrategyFactory.java [new file with mode: 0644]
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/replication/ReplicationStrategyFactory.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/storage/IReplicaManager.java
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationManager.java