Package com.google.apphosting.runtime
Class AppVersion
- java.lang.Object
-
- com.google.apphosting.runtime.AppVersion
-
- All Implemented Interfaces:
CloudDebuggerCallback
public class AppVersion extends Object implements CloudDebuggerCallback
AppVersionencapsulates the configuration information associated with one version of a particular application. Do not construct aAppVersiondirectly, instead useAppVersionFactory.- See Also:
AppVersionFactory,AppVersionKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppVersion.BuilderBuilder for AppVersion.-
Nested classes/interfaces inherited from interface com.google.apphosting.runtime.CloudDebuggerCallback
CloudDebuggerCallback.ClassType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppVersion.Builderbuilder()Return a builder for an AppVersion instance.ClassLoadergetClassLoader()Returns the customClassLoaderthat will safely load classes and resource files that were published along with this application version.CloudDebuggerCallback.ClassTypegetClassType(Class<?> cls)Classifies Java class.ApplicationEnvironmentgetEnvironment()Returns the environment which was configured for the application.AppVersionKeygetKey()Returns theAppVersionKeythat can be used as an identifier for thisAppVersion.StringgetPublicRoot()Returns the parent directory for all static and resource files.FilegetRootDirectory()Returns the top-level directory under which all application version resource files are made available.SessionsConfiggetSessionsConfig()com.google.apphosting.base.protos.SourceContextgetSourceContext()ThreadGroupPoolgetThreadGroupPool()booleanisResourceFile(String path)Returns true ifpathis a resource file that was uploaded as part of this application.booleanisStaticFile(String path)Returns true ifpathis a static file that was uploaded to BlobStore for use by this application.
-
-
-
Method Detail
-
builder
public static AppVersion.Builder builder()
Return a builder for an AppVersion instance.
-
getKey
public AppVersionKey getKey()
Returns theAppVersionKeythat can be used as an identifier for thisAppVersion.
-
getRootDirectory
public File getRootDirectory()
Returns the top-level directory under which all application version resource files are made available.
-
getClassLoader
public ClassLoader getClassLoader()
Returns the customClassLoaderthat will safely load classes and resource files that were published along with this application version.
-
getEnvironment
public ApplicationEnvironment getEnvironment()
Returns the environment which was configured for the application.
-
getSessionsConfig
public SessionsConfig getSessionsConfig()
-
isResourceFile
public boolean isResourceFile(String path)
Returns true ifpathis a resource file that was uploaded as part of this application.
-
isStaticFile
public boolean isStaticFile(String path)
Returns true ifpathis a static file that was uploaded to BlobStore for use by this application.
-
getPublicRoot
public String getPublicRoot()
Returns the parent directory for all static and resource files.
-
getThreadGroupPool
public ThreadGroupPool getThreadGroupPool()
-
getClassType
public CloudDebuggerCallback.ClassType getClassType(Class<?> cls)
Description copied from interface:CloudDebuggerCallbackClassifies Java class.The debugger hides or shows local variables and fields based on the class classification.
- Specified by:
getClassTypein interfaceCloudDebuggerCallback
-
getSourceContext
public com.google.apphosting.base.protos.SourceContext getSourceContext()
-
-