@Override
  public void validate() {
    if (getMcastPort() < MIN_MCAST_PORT || getMcastPort() > MAX_MCAST_PORT) {
      throw new IllegalArgumentException(
          String.format("mcastPort must be an integer inclusively between %s and %s",

              MIN_MCAST_PORT, MAX_MCAST_PORT));
    }

    LogLevel.getLogWriterLevel(logLevel);

    if (logFileSizeLimit < MIN_LOG_FILE_SIZE_LIMIT
        || logFileSizeLimit > MAX_LOG_FILE_SIZE_LIMIT) {
      throw new IllegalArgumentException(
          String.format("LogFileSizeLimit must be an integer between %s and %s",
              MIN_LOG_FILE_SIZE_LIMIT,
              MAX_LOG_FILE_SIZE_LIMIT));
    }

    if (logDiskSpaceLimit < MIN_LOG_DISK_SPACE_LIMIT
        || logDiskSpaceLimit > MAX_LOG_DISK_SPACE_LIMIT) {
      throw new IllegalArgumentException(
          String.format("LogDiskSpaceLimit must be an integer between %s and %s",
              MIN_LOG_DISK_SPACE_LIMIT,
              MAX_LOG_DISK_SPACE_LIMIT));
    }

    parseEntityConfigXMLFile();
  }
Makes sure that the mcast port and locators are correct and consistent.

@throws IllegalArgumentException If configuration is not valid
geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java