code: public void validate() {
      Preconditions.checkState(getMaxLogSize() <= Integer.MAX_VALUE,
          "{} has value {} but must not exceed {}", PropertyKey.MASTER_JOURNAL_LOG_SIZE_BYTES_MAX,
          getMaxLogSize(), Integer.MAX_VALUE);
      Preconditions.checkState(getHeartbeatIntervalMs() < getElectionTimeoutMs() / 2,
          "Heartbeat interval (%sms) should be less than half of the election timeout (%sms)",
          getHeartbeatIntervalMs(), getElectionTimeoutMs());
      Preconditions.checkState(getClusterAddresses().contains(getLocalAddress()),
          "The cluster addresses (%s) must contain the local master address (%s)",
          getClusterAddresses(), getLocalAddress());
    }
docs: Validates the configuration.