bug4811: enhanced /gwt/status and /replication/replication?action=STATUS output and use it for application replica set assembly;

/replication/replication?action=STATUS no longer requires the READ_REPLICATOR permission;
its output was contained in the free-to-air /gwt/status output already, so no use in
this additional check
This commit is contained in:
Axel Uhl
2021-01-08 17:30:00 +01:00
parent 5299d29a54
commit c7528905b7
17 changed files with 200 additions and 95 deletions
@@ -12,10 +12,6 @@ import com.rabbitmq.client.QueueingConsumer;
/**
* Identifies a master server instance from which a replica can obtain an initial load and continuous updates.
*
* TODO bug 2465: add the set of {@link Replicable}s that are replicated from the master represented by this descriptor,
* considering that this may be a subset only of the replicables running on this instance or the master server. Example:
* replicating only the SecurityService from some other server but being a master regarding all other Replicables.
*
* @author Frank Mittag, Axel Uhl (d043530)
*
*/
@@ -18,7 +18,7 @@ public interface ReplicationStatus {
/**
* The queue length or {@code null} if no queue exists for the replicable with ID {@link code replicableIdAsString}
*/
Integer getOperationQueueLengthsByReplicableIdAsString(String replicableIdAsString);
Integer getOperationQueueLength(String replicableIdAsString);
int getTotalOperationQueueLength();