public interface GenericApplication
| Modifier and Type | Interface and Description |
|---|---|
static interface |
GenericApplication.ErrorHandler
Interface describing the application's error handlers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanStagingDirectory()
deletes the staging directory, if one was created.
|
File |
createStagingDirectory(ApplicationProcessingOptions opts)
Creates a new staging directory, if needed, or returns the existing one if already created.
|
File |
createStagingDirectory(ApplicationProcessingOptions opts,
File stagingDir)
Creates (if necessary) and populates a user specified staging directory
|
void |
exportRepoInfoFile()
Generates source context file in the staging directory.
|
String |
getApiVersion()
Returns the desired API version for the current application, or
"none" if no API version was used. |
String |
getAppId()
Returns the application identifier
|
String |
getAppYaml()
Returns the yaml string describing this application's configuration.
|
com.google.apphosting.utils.config.BackendsXml |
getBackendsXml()
Returns the BackendsXml describing the applications' backends.
|
com.google.apphosting.utils.config.CronXml |
getCronXml()
Returns the CronXml describing the applications' cron jobs.
|
com.google.apphosting.utils.config.DispatchXml |
getDispatchXml()
Returns the possibly empty
DispatchXml descriptor for this
application or null if none is configured. |
com.google.apphosting.utils.config.DosXml |
getDosXml()
Returns the DosXml describing the applications' DoS entries.
|
List<GenericApplication.ErrorHandler> |
getErrorHandlers()
Returns the list of error handlers for this application
|
com.google.apphosting.utils.config.IndexesXml |
getIndexesXml()
Returns the IndexesXml describing the applications' indexes.
|
String |
getInstanceClass()
Returns the application instance class name or null if not specified.
|
String |
getMimeTypeIfStatic(String path)
Returns the mime-type if path corresponds to static content,
null otherwise. |
String |
getModule()
Returns the application module name or null if not specified.
|
String |
getPath()
Returns a path to an exploded WAR directory for the application.
|
com.google.apphosting.utils.config.QueueXml |
getQueueXml()
Returns the QueueXml describing the applications' task queues.
|
String |
getRuntime()
Returns the runtime this application uses.
|
File |
getStagingDir()
Returns the staging directory, or
null if none has been created. |
String |
getVersion()
Returns the application version
|
boolean |
isPrecompilationEnabled()
Returns whether precompilation is enabled for this application
|
void |
resetProgress() |
void |
setDetailsWriter(PrintWriter detailsWriter) |
void |
setListener(UpdateListener l) |
void |
statusUpdate(String message) |
void |
statusUpdate(String message,
int amount) |
String getAppId()
String getVersion()
String getRuntime()
String getModule()
String getInstanceClass()
boolean isPrecompilationEnabled()
List<GenericApplication.ErrorHandler> getErrorHandlers()
String getMimeTypeIfStatic(String path)
null otherwise.nullcom.google.apphosting.utils.config.CronXml getCronXml()
nullcom.google.apphosting.utils.config.QueueXml getQueueXml()
nullcom.google.apphosting.utils.config.DispatchXml getDispatchXml()
DispatchXml descriptor for this
application or null if none is configured.com.google.apphosting.utils.config.DosXml getDosXml()
nullcom.google.apphosting.utils.config.IndexesXml getIndexesXml()
nullcom.google.apphosting.utils.config.BackendsXml getBackendsXml()
nullString getApiVersion()
"none" if no API version was used.IllegalStateException - if createStagingDirectory has not been called.String getPath()
null path pointing to a directoryFile getStagingDir()
null if none has been created.void resetProgress()
File createStagingDirectory(ApplicationProcessingOptions opts) throws IOException
opts - User-specified options for processing the application.IOExceptionFile createStagingDirectory(ApplicationProcessingOptions opts, File stagingDir) throws IOException
opts - User-specified options for processing the application.stagingDir - User-specified staging directory (must be empty or not exist)IOException - if an error occurs trying to create or populate the staging directoryvoid exportRepoInfoFile()
Does nothing if the source directory is not in a Git repo or if the source context file already exists. If the operation fails, this function logs and continues. The deployment is never blocked if we can't generate the source context file.
void cleanStagingDirectory()
void setListener(UpdateListener l)
void setDetailsWriter(PrintWriter detailsWriter)
void statusUpdate(String message, int amount)
void statusUpdate(String message)
String getAppYaml()
Copyright © 2022. All rights reserved.