Interface LaunchContext
- All Known Implementing Classes:
- LaunchContextImpl
public interface LaunchContext
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescription<T> TgetAttribute(String key) A free-for-all map of objects that clients can use to communicate between launches.<T> TgetAttribute(String key, T defaultValue) Retrieves the raw attribute mapThe base of the cache dirs: %USER_HOME%/.ignition/cache/Currently should return an empty list if edition is not edge.The actual cache directory for the specific gateway that we ended up connecting to.This LaunchManifest is downloaded from the gateway during ConnectStep.getLog()A PrintWriter that steps can use to log their progress.The name of the class that should be started during StartupStepThe platform edition.The name of the project.The base of the cached resources: %USER_HOME%/.ignition/cache/resources/Returns the location of the cached translation term db file.byte[]Returns a serialized user object (if any) that was passed as part of a restartvoidA shortcut for:voidsetAttribute(String key, Object value) voidUpdates the cache with a list of gateway addresses that will be available for use next time this project is loaded.voidThis overload of updateProjectCache takes a WriteableProject, which lets the project be streamed.
- 
Field Details- 
FRAMEWORK_ATTRIBUTE- See Also:
 
- 
CONDENSED_FONT_ATTRIBUTE- See Also:
 
- 
SSO_USERNAME- See Also:
 
- 
SSO_PASSWORD- See Also:
 
 
- 
- 
Method Details- 
getParentLaunchParent getParent()
- 
getScopeCodeString getScopeCode()- Returns:
- "C" for client, "D" for designer
 
- 
getCacheDirFile getCacheDir()The base of the cache dirs: %USER_HOME%/.ignition/cache/
- 
getResourceDirFile getResourceDir()The base of the cached resources: %USER_HOME%/.ignition/cache/resources/
- 
logA shortcut for:getLog().printf(message, args); getLog().println(); 
- 
getLogPrintWriter getLog()A PrintWriter that steps can use to log their progress. Under normal conditions, this log is echoed to System.out. However, if an error ever occurs during the launch procedure, the entire contents of the log will be written to a launch crash file under the user's cache dir.
- 
getLaunchManifestLaunchManifest getLaunchManifest()This LaunchManifest is downloaded from the gateway during ConnectStep. It describes all JAR files that will we'll need to start up the app of this context, including their CRC32 checksums. Will only be set after ConnectStep finishes.
- 
getGwCacheDirFile getGwCacheDir()The actual cache directory for the specific gateway that we ended up connecting to. Only set after CacheStep runs. %USER_HOME%/.ignition/cache/gwHOST_HTTP_HTTPS_CONTEXT/Cx where "x" is the client ID that this JVM has claimed. Each JVM gets its own cache dir so that the they don't step on each other's toes when downloading/modifying jar files.
- 
getMainClassString getMainClass()The name of the class that should be started during StartupStep
- 
getGatewayAddressesList<GatewayAddress> getGatewayAddresses()
- 
getGatewayAddressGatewayAddress getGatewayAddress()
- 
getProjectNameString getProjectName()The name of the project. May not be used in all scopes
- 
getPlatformEditionString getPlatformEdition()The platform edition. Standard edition = "", Edge edition = "edge"
- 
getEdgeFlagsCurrently should return an empty list if edition is not edge.
- 
getProjectCacheFileFile getProjectCacheFile()
- 
getProjectCacheChkFileFile getProjectCacheChkFile()
- 
getTranslationDBLocationFile getTranslationDBLocation()Returns the location of the cached translation term db file. The file will be in the form of "XXX_e{d}_v{d}.dat". The "e{d}" is the edit version, the "v{d}" is the serialization version.
- 
updateProjectCacheThis overload of updateProjectCache takes a WriteableProject, which lets the project be streamed. We cannot remove the old byte[] version, because of re-targeting compatibility.- Throws:
- IOException
 
- 
updateGatewayAddressListCacheUpdates the cache with a list of gateway addresses that will be available for use next time this project is loaded. Should be update when the client receives notification that new cluster gateways have been added
- 
getUserObjectbyte[] getUserObject()Returns a serialized user object (if any) that was passed as part of a restart
- 
getAttributeA free-for-all map of objects that clients can use to communicate between launches. Beware that one should only store types is this map that are loaded by the system classloader - not custom objects. Any custom objects should be serialized to a byte[] first.
- 
getAttribute
- 
setAttribute
- 
getAttributesRetrieves the raw attribute map
 
-