public static ReplicationPeers getReplicationPeers(FileSystem fs, ZKWatcher zk,
    Configuration conf) {
    return new ReplicationPeers(fs, zk, conf);
  }
A factory class for instantiating replication objects that deal with replication state.
hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationFactory.java