public Collection<HiveServer2Instance> getHiveServer2Instances() {
      return hiveServer2Instances;
    }
Returns all HS2 instances in Active-Passive standy modes.
service/src/java/org/apache/hive/service/servlet/HS2Peers.java