Class LaunchContextImpl
java.lang.Object
com.inductiveautomation.ignition.client.launch.LaunchContextImpl
- All Implemented Interfaces:
- LaunchContext
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.launch.LaunchContextLaunchContext.WritableProject
- 
Field SummaryFields inherited from interface com.inductiveautomation.ignition.client.launch.LaunchContextCONDENSED_FONT_ATTRIBUTE, FRAMEWORK_ATTRIBUTE, SSO_PASSWORD, SSO_USERNAME
- 
Constructor SummaryConstructorsConstructorDescriptionLaunchContextImpl(ResourceBundle bundle, LaunchSpec spec, File cacheDir, LaunchParent parent, Map<String, Object> attributes) 
- 
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.This is the project snapshot that we can send to the gw to get changes.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) voidsetDownloadRequiredManifest(LaunchManifest downloadRequiredManifest) voidsetGatewayAddress(GatewayAddress gatewayAddress) voidsetGatewayAddresses(List<GatewayAddress> gatewayAddresses) voidsetGwCacheDir(File gwCacheDir) voidsetLaunchManifest(LaunchManifest launchManifest) voidsetTranDBLocation(File tranDBLocation) 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.
- 
Constructor Details- 
LaunchContextImplpublic LaunchContextImpl(ResourceBundle bundle, LaunchSpec spec, File cacheDir, LaunchParent parent, Map<String, Object> attributes) throws LaunchException- Throws:
- LaunchException
 
 
- 
- 
Method Details- 
getScopeCode- Specified by:
- getScopeCodein interface- LaunchContext
- Returns:
- "C" for client, "D" for designer
 
- 
getBundle
- 
getCacheDirDescription copied from interface:LaunchContextThe base of the cache dirs: %USER_HOME%/.ignition/cache/- Specified by:
- getCacheDirin interface- LaunchContext
 
- 
getResourceDirDescription copied from interface:LaunchContextThe base of the cached resources: %USER_HOME%/.ignition/cache/resources/- Specified by:
- getResourceDirin interface- LaunchContext
 
- 
logDescription copied from interface:LaunchContextA shortcut for:getLog().printf(message, args); getLog().println(); - Specified by:
- login interface- LaunchContext
 
- 
getLogDescription copied from interface:LaunchContextA 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.- Specified by:
- getLogin interface- LaunchContext
 
- 
getLogContents
- 
getTranslationDBLocationDescription copied from interface:LaunchContextReturns 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.- Specified by:
- getTranslationDBLocationin interface- LaunchContext
 
- 
setTranDBLocation
- 
getLaunchManifestDescription copied from interface:LaunchContextThis 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.- Specified by:
- getLaunchManifestin interface- LaunchContext
 
- 
setLaunchManifest
- 
getDownloadRequiredManifest
- 
setDownloadRequiredManifest
- 
getGwCacheDirDescription copied from interface:LaunchContextThe 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.- Specified by:
- getGwCacheDirin interface- LaunchContext
 
- 
setGwCacheDir
- 
getMainClassDescription copied from interface:LaunchContextThe name of the class that should be started during StartupStep- Specified by:
- getMainClassin interface- LaunchContext
 
- 
getGatewayAddresses- Specified by:
- getGatewayAddressesin interface- LaunchContext
 
- 
setGatewayAddresses
- 
updateGatewayAddressListCacheDescription copied from interface:LaunchContextUpdates 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- Specified by:
- updateGatewayAddressListCachein interface- LaunchContext
 
- 
getGatewayAddress- Specified by:
- getGatewayAddressin interface- LaunchContext
 
- 
setGatewayAddress
- 
getProjectNameDescription copied from interface:LaunchContextThe name of the project. May not be used in all scopes- Specified by:
- getProjectNamein interface- LaunchContext
 
- 
getPlatformEditionDescription copied from interface:LaunchContextThe platform edition. Standard edition = "", Edge edition = "edge"- Specified by:
- getPlatformEditionin interface- LaunchContext
 
- 
getEdgeFlagsDescription copied from interface:LaunchContextCurrently should return an empty list if edition is not edge.- Specified by:
- getEdgeFlagsin interface- LaunchContext
 
- 
getProjectCacheFile- Specified by:
- getProjectCacheFilein interface- LaunchContext
 
- 
getProjectCacheChkFile- Specified by:
- getProjectCacheChkFilein interface- LaunchContext
 
- 
getProjectCacheSignatureFileThis is the project snapshot that we can send to the gw to get changes.
- 
updateProjectCacheDescription copied from interface:LaunchContextThis overload of updateProjectCache takes a WriteableProject, which lets the project be streamed. We cannot remove the old byte[] version, because of re-targeting compatibility.- Specified by:
- updateProjectCachein interface- LaunchContext
- Throws:
- IOException
 
- 
getParent- Specified by:
- getParentin interface- LaunchContext
 
- 
getUserObjectpublic byte[] getUserObject()Description copied from interface:LaunchContextReturns a serialized user object (if any) that was passed as part of a restart- Specified by:
- getUserObjectin interface- LaunchContext
 
- 
getAttributeDescription copied from interface:LaunchContextA 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.- Specified by:
- getAttributein interface- LaunchContext
 
- 
getAttribute- Specified by:
- getAttributein interface- LaunchContext
 
- 
setAttribute- Specified by:
- setAttributein interface- LaunchContext
 
- 
getAttributesDescription copied from interface:LaunchContextRetrieves the raw attribute map- Specified by:
- getAttributesin interface- LaunchContext
 
 
-