default boolean isPeerEnabled() {
    return getPeerState() == PeerState.ENABLED;
  }
Test whether the peer is enabled.
@return {@code true} if enabled, otherwise {@code false}.
hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationPeer.java