public Cluster getCluster() {
    return m_cluster;
  }
Gets the cluster that this instance of the {@link MasterHostResolver} is
initialized with.

@return the cluster (not {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java