public static ReplicaSealStatus convertPartitionStateToReplicaSealSatus(PartitionState partitionState) {
    ReplicaSealStatus replicaSealStatus = null;
    switch (partitionState) {
      case READ_ONLY:
        replicaSealStatus = ReplicaSealStatus.SEALED;
        break;
      case PARTIAL_READ_WRITE:
        replicaSealStatus = ReplicaSealStatus.PARTIALLY_SEALED;
        break;
      case READ_WRITE:
        replicaSealStatus = ReplicaSealStatus.NOT_SEALED;
        break;
    }
    return replicaSealStatus;
  }
Returns the replica's {@link ReplicaSealStatus} based on the specified {@link PartitionState}.
@param partitionState {@link PartitionState} object.
@return ReplicaSealStatus object.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapUtils.java