Interface AppAdmin

  • public interface AppAdmin
    The application administration interface to App Engine. Use this API to update, configure, and otherwise manage an App Engine application. Use AppAdminFactory to retrieve an AppAdmin instance configured for a specific application.

    Synchronous versus Asynchronous requests: Some requests, such as update(, occur asynchronously and must be monitored with a listener. Other requests, such as updateIndexes(), are made synchronously. In either case, work often continues to occur asynchronously on the remote server after the request has been completed.

    Error handling: Most configuration operations require communicating to App Engine's remote administration server occur over a network connection. In cases where unrecoverable failures occur (such as a network failure), this API throws an AdminException.

    Application updates occur transactionally. If a failure occurs during update, you must rollback() the incomplete transaction before beginning another.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static class  AppAdmin.LogSeverity
      The severity levels for App Engine application logging.
      static class  AppAdmin.UpdateOptions
      Settable options for configuring the behavior of update operations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void configureBackend(java.lang.String backendName)
      Reconfigure the backend with the specified name.
      java.util.List<CronEntry> cronInfo()
      Locally parses an application's configured cron entries and reports the upcoming several execution times.
      java.lang.String debugVersion()
      Sends a synchronous request to turn on debugging for the specified vm version.
      java.lang.String debugVersionState()
      Sends a synchronous request to get the status of a debug request for the specified version.
      void deleteBackend(java.lang.String backendName)
      Delete the backend with the specified name.
      java.lang.String deleteVersion(java.lang.String appId, java.lang.String moduleId, java.lang.String versionId)
      Sends a synchronous request to delete the specified version getResourceLimits()
      Gets the resource limits.
      AppAdmin.UpdateOptions getUpdateOptions()
      Returns the AppAdmin.UpdateOptions for this AppAdmin.
      java.util.List<BackendsXml.Entry> listBackends()
      Retrieve a list of registered backends with their associated state.
      java.lang.String listVersions()
      Sends a synchronous request to retrieve the list of versions for each module.
      void migrateTraffic()
      Sends a synchronous request to start a traffic migration. requestLogs(int numDays, AppAdmin.LogSeverity severity, boolean includeAll)
      Retrieves application logs from the remote administration server.
      void rollback()
      Rolls back an "in-progress" transaction.
      void rollbackAllBackends()
      Rolls back an "in-progress" transaction on all backends.
      void rollbackBackend(java.lang.String backend)
      Rolls back an "in-progress" transaction on a backend.
      void setBackendState(java.lang.String backendName, BackendsXml.State newState)
      Update the state of the backend with the specified name to newState.
      void setDefaultVersion()
      Sends a synchronous request to update the application's default version.
      void stageApplicationWithDefaultResourceLimits( stagingDir)
      Stage an application directory with default resource limits
      void stageApplicationWithRemoteResourceLimits( stagingDir)
      Stage an application directory with remote resource limits
      void startModuleVersion()
      Start the specified module version.
      void stopModuleVersion()
      Stop the specified module version.
      void update(UpdateListener listener)
      Uploads a new version of the application and updates its indexes.
      void updateAllBackends(