public class AppAdminFactory
extends java.lang.Object
AppAdmin
for a designated App Engine application.Modifier and Type | Class and Description |
---|---|
static class |
AppAdminFactory.ConnectOptions
The options used to connect to the remote App Engine administration server.
|
static interface |
AppAdminFactory.PasswordPrompt
Callback that is invoked to prompt the user to enter a password.
|
Constructor and Description |
---|
AppAdminFactory() |
Modifier and Type | Method and Description |
---|---|
AppAdmin |
createAppAdmin(AppAdminFactory.ConnectOptions options,
Application app,
java.io.PrintWriter errorWriter)
Creates a new
AppAdmin that can be used to administer the
designated App Engine application. |
com.google.appengine.tools.admin.ApplicationProcessingOptions |
getAppOptions() |
java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> |
getAppVersionUploadClass() |
void |
setAllowAnyRuntime(boolean allowAnyRuntime)
Enables or disables validation of the runtime id provided by the user.
|
void |
setAppVersionUploadClass(java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> klass)
Sets the class used for uploading the application to the server.
|
void |
setBatchMode(boolean flag)
Requests we do upload using batch
*
|
void |
setCallerUploadingDispatch(boolean b)
Sets whether caller will upload dispatch.xml.
|
void |
setCompileJsps(boolean flag)
Requests that *.jsp files should be compiled into Java byte code, or if
false should be left untouched.
|
void |
setDefaultStagingOptions(StagingOptions opts)
Replaces the default staging options to this application options.
|
void |
setFailOnPrecompilationError(boolean fail)
Enables or disables treating (repeated) precompilation errors as fatal when
updating an application.
|
void |
setIgnoreEndpointsFailures(boolean ignore)
Enables or disables ignoring Google Cloud Endpoints failures when updating an app.
|
void |
setJavaCompiler(java.io.File javac)
Specifies the location of a javac executable, used when compiling JSPs.
|
void |
setJavaExecutable(java.io.File java)
Specifies the location of a java executable, used when compiling JSPs.
|
void |
setQuickstart(boolean enable) |
void |
setRuntime(java.lang.String runtime)
Sets the runtime id to use in the generated app.yaml descriptor.
|
void |
setStagingOptions(StagingOptions opts)
Replaces the staging options to this application options.
|
void |
setUseAsyncQuickstart(boolean async)
Use the Async quickstart generator.
|
void |
setUseJava8(boolean java8)
Deprecated.
This method has not effect, and should not be used anymore.
|
public AppAdmin createAppAdmin(AppAdminFactory.ConnectOptions options, Application app, java.io.PrintWriter errorWriter)
AppAdmin
that can be used to administer the
designated App Engine application.options
- The options used to connect to the remote server. Must not
be null
.app
- The application to be administered. May be null
.errorWriter
- A writer to which error logs can be written. The logs
can be used for diagnosis if a failure occurs during operation. May
be null
.null
AppAdminpublic com.google.appengine.tools.admin.ApplicationProcessingOptions getAppOptions()
public java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> getAppVersionUploadClass()
public void setAppVersionUploadClass(java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> klass)
public void setJavaExecutable(java.io.File java)
java.home
is used to identify the
currently-running JVM, and if that directory contains a file named bin/java
(Unix) or bin\\java.exe
(Windows), that is returned.java
- the Java executable to be used.public void setJavaCompiler(java.io.File javac)
java.home
is used to identify the
currently-running JVM. If that pathname ends with "jre", then its parent is
used instead as a hoped-for JDK root. If that directory contains a file
named bin/javac
(Unix) or bin\\javac.exe
(Windows), that is
returned.javac
- the Java compiler executable to be used.public void setCompileJsps(boolean flag)
flag
- true
to compile .jsp filespublic void setDefaultStagingOptions(StagingOptions opts)
opts
- the new staging optionspublic void setStagingOptions(StagingOptions opts)
opts
- the new staging optionspublic void setBatchMode(boolean flag)
flag
- true
to use batch mode for uploadpublic void setUseAsyncQuickstart(boolean async)
async
- true
uses the async quickstart generator.@Deprecated public void setUseJava8(boolean java8)
java8
- true
uses Java8 with Jetty9.public void setRuntime(java.lang.String runtime)
runtime
- the runtime id to use.public void setAllowAnyRuntime(boolean allowAnyRuntime)
allowAnyRuntime
- true
to allow an arbitrary runtime id value,
false
to validate it against the list of supported runtimes.public void setFailOnPrecompilationError(boolean fail)
fail
- true
to abort an update if precompilation fails,
false
to treat it as a warning and continue updating the application.public void setIgnoreEndpointsFailures(boolean ignore)
ignore
- true
to ignore errors updating the Endpoints configuration,
false
to allow them to abort the update.public void setQuickstart(boolean enable)
public void setCallerUploadingDispatch(boolean b)