@Override
  public DistributionLocatorConfig[] getDistributionLocatorConfigs() {
    if (system != null) {
      DistributionLocator[] locators = system.getDistributionLocators();
      DistributionLocatorConfig[] configs = new DistributionLocatorConfig[locators.length];
      for (int i = 0; i < locators.length; i++) {
        configs[i] = locators[i].getConfig();
      }
      return configs;

    } else {
      Object[] array = new DistributionLocatorConfig[locatorConfigs.size()];
      return (DistributionLocatorConfig[]) locatorConfigs.toArray(array);
    }
  }
Returns the configurations of all managed distribution locators
geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java