@Override
    public boolean setReplicaSealedState(ReplicaId replicaId, ReplicaSealStatus replicaSealStatus) {
      String replicaPath = replicaId.getReplicaPath();
      switch (replicaSealStatus) {
        case SEALED:
          sealedReplicas.add(replicaPath);
          partiallySealedReplicas.remove(replicaPath);
          break;
        case PARTIALLY_SEALED:
          partiallySealedReplicas.add(replicaPath);
          sealedReplicas.remove(replicaPath);
          break;
        case NOT_SEALED:
          partiallySealedReplicas.remove(replicaPath);
          sealedReplicas.remove(replicaPath);
      }
      return true;
    }
An implementation of {@link ClusterParticipant} that helps check consistency between participants.
ambry-server/src/test/java/com/github/ambry/server/ParticipantsConsistencyTest.java