@Override
  protected void postPeerModification(MasterProcedureEnv env) throws IOException {
    LOG.info("Successfully disabled peer {}", peerId);
    MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost();
    if (cpHost != null) {
      cpHost.postDisableReplicationPeer(peerId);
    }
  }
The procedure for disabling a replication peer.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/DisablePeerProcedure.java