public interface LaunchContext
Modifier and Type | Interface and Description |
---|---|
static interface |
LaunchContext.WritableProject |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRAMEWORK_ATTRIBUTE |
static java.lang.String |
SSO_PASSWORD |
static java.lang.String |
SSO_USERNAME |
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttribute(java.lang.String key)
A free-for-all map of objects that clients can use to communicate between launches.
|
<T> T |
getAttribute(java.lang.String key,
T defaultValue) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Retrieves the raw attribute map
|
java.io.File |
getCacheDir()
The base of the cache dirs: %USER_HOME%/.ignition/cache/
|
GatewayAddress |
getGatewayAddress() |
java.util.List<GatewayAddress> |
getGatewayAddresses() |
byte[] |
getGlobalProjectCacheBytes() |
byte[] |
getGlobalProjectDownloadBytes() |
java.io.File |
getGwCacheDir()
The actual cache directory for the specific gateway that we ended up connecting to.
|
LaunchManifest |
getLaunchManifest()
This LaunchManifest is downloaded from the gateway during ConnectStep.
|
java.io.PrintWriter |
getLog()
A PrintWriter that steps can use to log their progress.
|
java.lang.String |
getMainClass()
The name of the class that should be started during StartupStep
|
LaunchParent |
getParent() |
java.lang.String |
getPlatformEdition()
The platform edition.
|
byte[] |
getProjectCacheBytes() |
byte[] |
getProjectDownloadBytes() |
java.lang.String |
getProjectName()
The name of the project.
|
java.lang.String |
getProjectVersion()
The version of the project to use.
|
java.io.File |
getResourceDir()
The base of the cached resources: %USER_HOME%/.ignition/cache/resources/
|
java.lang.String |
getScopeCode() |
java.io.File |
getTranslationDBLocation()
Returns the location of the cached translation term db file.
|
byte[] |
getUserObject()
Returns a serialized user object (if any) that was passed as part of a restart
|
void |
log(java.lang.String message,
java.lang.Object... args)
A shortcut for:
|
void |
setAttribute(java.lang.String key,
java.lang.Object value) |
void |
updateGatewayAddressListCache(java.util.List<GatewayAddress> addrs)
Updates the cache with a list of gateway addresses that will be available for use next time this project is
loaded.
|
void |
updateGlobalProjectCache(byte[] projectBytes,
long editCount,
java.util.UUID uuid)
Deprecated.
|
void |
updateGlobalProjectCache(LaunchContext.WritableProject project,
long editCount,
java.util.UUID uuid) |
void |
updateProjectCache(byte[] projectBytes,
long editCount,
java.util.UUID uuid)
Deprecated.
|
void |
updateProjectCache(LaunchContext.WritableProject project,
long editCount,
java.util.UUID uuid)
This overload of updateProjectCache takes a WriteableProject, which lets the project be streamed.
|
static final java.lang.String FRAMEWORK_ATTRIBUTE
static final java.lang.String SSO_USERNAME
static final java.lang.String SSO_PASSWORD
LaunchParent getParent()
java.lang.String getScopeCode()
java.io.File getCacheDir()
java.io.File getResourceDir()
void log(java.lang.String message, java.lang.Object... args)
getLog().printf(message, args); getLog().println();
java.io.PrintWriter getLog()
LaunchManifest getLaunchManifest()
java.io.File getGwCacheDir()
java.lang.String getMainClass()
java.util.List<GatewayAddress> getGatewayAddresses()
GatewayAddress getGatewayAddress()
java.lang.String getProjectName()
java.lang.String getProjectVersion()
java.lang.String getPlatformEdition()
byte[] getProjectCacheBytes()
byte[] getGlobalProjectCacheBytes()
java.io.File getTranslationDBLocation()
@Deprecated void updateProjectCache(byte[] projectBytes, long editCount, java.util.UUID uuid) throws java.io.IOException
java.io.IOException
@Deprecated void updateGlobalProjectCache(byte[] projectBytes, long editCount, java.util.UUID uuid) throws java.io.IOException
java.io.IOException
void updateProjectCache(LaunchContext.WritableProject project, long editCount, java.util.UUID uuid) throws java.io.IOException
java.io.IOException
void updateGlobalProjectCache(LaunchContext.WritableProject project, long editCount, java.util.UUID uuid) throws java.io.IOException
java.io.IOException
void updateGatewayAddressListCache(java.util.List<GatewayAddress> addrs)
byte[] getProjectDownloadBytes()
byte[] getGlobalProjectDownloadBytes()
byte[] getUserObject()
<T> T getAttribute(java.lang.String key)
<T> T getAttribute(java.lang.String key, T defaultValue)
void setAttribute(java.lang.String key, java.lang.Object value)
java.util.Map<java.lang.String,java.lang.Object> getAttributes()