Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
М_указания к лабам_230400.68_совр_тенденции.doc
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
9.28 Mб
Скачать

6.5 Testing the app

Restart the development server to build and run the app:

mvn appengine:devserver

Visit the app in a browser:

localhost:8080

Try posting a greeting. Also try posting a greeting while signed in, and while not signed in.

6.6 Creating required indexes

If your app uses the Datastore, when you run your app on the development server, the development server automatically creates any Datastore indexes required to run in production App Engine. These indexes are generated in guestbook/target/guestbook-1.0-SNAPSHOT/WEB-INF/appengine-generated/datastore-indexes-auto.xml. You'll also notice the file local_db.bin at that same location: this is local storage for the development server to persist your app data between development server sessions. The filedatastore-indexes-auto.xml is automatically uploaded along with your app. local_db.bin is not uploaded.

Important: Be aware that running mvn clean install clears the datastore-indexes-auto.xml file; if you run it on your app prior to uploading to production App Engine, you won't get required indexes and you'll experience a runtime error. You only need to include indexes that are new since the last successful upload. Omitted indexes are not automatically removed.

Practice №7 The study of cloud services Google Apps

Google Apps for Work (formerly Google Apps for Business) is a suite of cloud computing productivity and collaboration software tools and software offered on a subscription basis by Google.

It includes Google’s popular web applications including Gmail, Google Drive, Google Hangouts, Google Calendar, and Google Docs. While these products are available to consumers free of charge, Google Apps for Work adds business-specific features such as custom email addresses at your domain (@yourcompany.com), at least 30 GB of storage for documents and email, and 24/7 phone and email support. As a cloud computing solution, it takes a different approach from off-the-shelf office productivity software by hosting customer information in Google’s network of data centers, rather than on traditional in-house servers that are located within companies.

The range of Google Apps for Work products and services comprises Gmail, Google Calendar, Google Drive, Hangouts, Google Docs, Google Sheets, Google Slides, Google Forms, Google Sites, Google+, and Google Apps Vault. With the exception of Google Apps Vault, all are included in the basic plan, which costs $5 per user per month or $50 per user per year. A premium package, Drive for Work, includes Google Apps Vault plus unlimited storage is available for $10 per user per month.

7.1 Gmail

Launched in a limited rollout on April 1, 2004, Gmail is now the most popular web email service in the world. It became open to all consumers in 2007. As of May 2015, 900 million people use Gmail, according to Google.

The free consumer version of Gmail is supported by text ads related to the contents of people’s email messages. Popular features include 15 GB of free storage, threaded conversations, robust search capabilities, and an app-like interface.

While similar to the free version, Gmail in Google Apps for Work adds a number of features designed for business users.

These include:

  • Custom email including the customer’s domain name (@yourcompany.com)

  • 99.9% guaranteed uptime with zero scheduled downtime for maintenance

  • Either 30 GB or unlimited storage shared with Google Drive, depending on the plan

  • No advertising

  • 24/7 customer support

  • Google Apps Sync for Microsoft Outlook