@Override
  protected void updatePeerStorage(MasterProcedureEnv env) throws ReplicationException {
    env.getReplicationPeerManager().disablePeer(peerId);
  }
The procedure for disabling a replication peer.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/DisablePeerProcedure.java