public boolean isActiveInstance() {
    return Boolean.parseBoolean(getProperty(ACTIVE_INSTANCE));
  }
Get whether the current ambari server instance the active instance

@return true / false
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java