public class Environment extends Object
| Modifier and Type | Field and Description |
|---|---|
Path |
appDir
app_dir:
The application source package directory
|
Path |
appExtraFiles
Convenient directory for application to embed custom extra files, like runtime dependencies.
|
String |
appId
app_id:
The unique ID of the application being deployed
|
int |
appPort
app_port:
The genapp assigned port for the application
|
String |
appUser
app_user:
The user associated with the application being deployed
|
Path |
clickstackDir
directory that contains the plugin's setup script, aka
plugin_dir |
Path |
controlDir
control_dir:
The control subdirectory located within the genapp directory
|
static String |
DEFAULT_JAVA_VERSION |
protected FileSystem |
fs |
Path |
genappDir
genapp_dir:
The genapp subdirectory located within the application directory
|
Path |
javaHome |
Path |
logDir
log_dir:
The conventional location for application logs
|
protected org.slf4j.Logger |
logger |
Path |
packageDir
pkd_dir:
The application source package directory
|
| Constructor and Description |
|---|
Environment(Path appDir,
Path clickstackDir,
Path packageDir,
String appUser,
String appId,
int appPort) |
Environment(Path appDir,
Path clickstackDir,
Path packageDir,
String appUser,
String appId,
int appPort,
Path controlDir,
Path logDir) |
public static final String DEFAULT_JAVA_VERSION
protected final org.slf4j.Logger logger
protected final FileSystem fs
@Nonnull public final Path clickstackDir
plugin_dir@Nonnull public final String appUser
app_user: The user associated with the application being deployed
public final int appPort
app_port: The genapp assigned port for the application
@Nonnull public final Path controlDir
control_dir: The control subdirectory located within the genapp directory
@Nonnull public final Path genappDir
genapp_dir: The genapp subdirectory located within the application directory
This variable is equivalent to $appDir/.genapp.
Plugins may use this variable to reference files located in the genapp subdirectory. These may be files created by other plugins that have already performed their setup operations or files that the plugin itself creates.
@Nonnull public final Path appExtraFiles
This variable is equivalent to $appDir/app-extra-files
public Path javaHome
Copyright © 2013. All Rights Reserved.