com.google.appengine.tools.admin
Class AppAdminFactory
- java.lang.Object
-
- com.google.appengine.tools.admin.AppAdminFactory
-
public class AppAdminFactory extends java.lang.ObjectCreates a newAppAdminfor a designated App Engine application.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAppAdminFactory.ConnectOptionsThe options used to connect to the remote App Engine administration server.static interfaceAppAdminFactory.PasswordPromptCallback that is invoked to prompt the user to enter a password.
-
Constructor Summary
Constructors Constructor and Description AppAdminFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AppAdmincreateAppAdmin(AppAdminFactory.ConnectOptions options, Application app, java.io.PrintWriter errorWriter)Creates a newAppAdminthat can be used to administer the designated App Engine application.com.google.appengine.tools.admin.ApplicationProcessingOptionsgetAppOptions()java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload>getAppVersionUploadClass()voidsetAllowAnyRuntime(boolean allowAnyRuntime)Enables or disables validation of the runtime id provided by the user.voidsetAppVersionUploadClass(java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> klass)Sets the class used for uploading the application to the server.voidsetBatchMode(boolean flag)Requests we do upload using batch *voidsetCallerUploadingDispatch(boolean b)Sets whether caller will upload dispatch.xml.voidsetCompileJsps(boolean flag)Requests that *.jsp files should be compiled into Java byte code, or if false should be left untouched.voidsetDefaultStagingOptions(StagingOptions opts)Replaces the default staging options to this application options.voidsetFailOnPrecompilationError(boolean fail)Enables or disables treating (repeated) precompilation errors as fatal when updating an application.voidsetIgnoreEndpointsFailures(boolean ignore)Enables or disables ignoring Google Cloud Endpoints failures when updating an app.voidsetJavaCompiler(java.io.File javac)Specifies the location of a javac executable, used when compiling JSPs.voidsetJavaExecutable(java.io.File java)Specifies the location of a java executable, used when compiling JSPs.voidsetQuickstart(boolean enable)voidsetRuntime(java.lang.String runtime)Sets the runtime id to use in the generated app.yaml descriptor.voidsetStagingOptions(StagingOptions opts)Replaces the staging options to this application options.voidsetUseAsyncQuickstart(boolean async)Use the Async quickstart generator.voidsetUseJava8(boolean java8)Use Java8 and Jetty9.
-
-
-
Method Detail
-
createAppAdmin
public AppAdmin createAppAdmin(AppAdminFactory.ConnectOptions options, Application app, java.io.PrintWriter errorWriter)
Creates a newAppAdminthat can be used to administer the designated App Engine application.- Parameters:
options- The options used to connect to the remote server. Must not benull.app- The application to be administered. May benull.errorWriter- A writer to which error logs can be written. The logs can be used for diagnosis if a failure occurs during operation. May benull.- Returns:
- a not
nullAppAdmin
-
getAppOptions
public com.google.appengine.tools.admin.ApplicationProcessingOptions getAppOptions()
-
getAppVersionUploadClass
public java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> getAppVersionUploadClass()
-
setAppVersionUploadClass
public void setAppVersionUploadClass(java.lang.Class<? extends com.google.appengine.tools.admin.AppVersionUpload> klass)
Sets the class used for uploading the application to the server. Should only be used for advanced customization of the upload process.
-
setJavaExecutable
public void setJavaExecutable(java.io.File java)
Specifies the location of a java executable, used when compiling JSPs. By default, the system propertyjava.homeis used to identify the currently-running JVM, and if that directory contains a file namedbin/java(Unix) orbin\\java.exe(Windows), that is returned.- Parameters:
java- the Java executable to be used.
-
setJavaCompiler
public void setJavaCompiler(java.io.File javac)
Specifies the location of a javac executable, used when compiling JSPs. By default, the system propertyjava.homeis 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 namedbin/javac(Unix) orbin\\javac.exe(Windows), that is returned.- Parameters:
javac- the Java compiler executable to be used.
-
setCompileJsps
public void setCompileJsps(boolean flag)
Requests that *.jsp files should be compiled into Java byte code, or if false should be left untouched.- Parameters:
flag-trueto compile .jsp files
-
setDefaultStagingOptions
public void setDefaultStagingOptions(StagingOptions opts)
Replaces the default staging options to this application options.- Parameters:
opts- the new staging options
-
setStagingOptions
public void setStagingOptions(StagingOptions opts)
Replaces the staging options to this application options.- Parameters:
opts- the new staging options
-
setBatchMode
public void setBatchMode(boolean flag)
Requests we do upload using batch *- Parameters:
flag-trueto use batch mode for upload
-
setUseAsyncQuickstart
public void setUseAsyncQuickstart(boolean async)
Use the Async quickstart generator.- Parameters:
async-trueuses the async quickstart generator.
-
setUseJava8
public void setUseJava8(boolean java8)
Use Java8 and Jetty9.- Parameters:
java8-trueuses Java8 with Jetty9.
-
setRuntime
public void setRuntime(java.lang.String runtime)
Sets the runtime id to use in the generated app.yaml descriptor.- Parameters:
runtime- the runtime id to use.
-
setAllowAnyRuntime
public void setAllowAnyRuntime(boolean allowAnyRuntime)
Enables or disables validation of the runtime id provided by the user.- Parameters:
allowAnyRuntime-trueto allow an arbitrary runtime id value,falseto validate it against the list of supported runtimes.
-
setFailOnPrecompilationError
public void setFailOnPrecompilationError(boolean fail)
Enables or disables treating (repeated) precompilation errors as fatal when updating an application.- Parameters:
fail-trueto abort an update if precompilation fails,falseto treat it as a warning and continue updating the application.
-
setIgnoreEndpointsFailures
public void setIgnoreEndpointsFailures(boolean ignore)
Enables or disables ignoring Google Cloud Endpoints failures when updating an app.- Parameters:
ignore-trueto ignore errors updating the Endpoints configuration,falseto allow them to abort the update.
-
setQuickstart
public void setQuickstart(boolean enable)
-
setCallerUploadingDispatch
public void setCallerUploadingDispatch(boolean b)
Sets whether caller will upload dispatch.xml.
-
-