public class Environment extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
accountName
CloudBees account
|
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
|
String |
appName
Application name
|
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
|
String |
serverInstanceId
Identifier of the server on which the app is deployed, usually the EC2 Instance ID, otherwise the server hostname
|
| Constructor and Description |
|---|
Environment(Path appDir,
Path clickstackDir,
Path packageDir,
String appUser,
String appId,
int appPort,
Path controlDir,
Path logDir,
String appName,
String accountName,
String serverInstanceId) |
Environment(Path appDir,
Path clickstackDir,
Path packageDir,
String appUser,
String appId,
int appPort,
String appName,
String accountName,
String serverInstanceId) |
public static final String DEFAULT_JAVA_VERSION
@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
$appDir/app-extra-files@Nonnull public final String serverInstanceId
protected final org.slf4j.Logger logger
protected final FileSystem fs
public Path javaHome
public Environment(@Nonnull Path appDir, @Nonnull Path clickstackDir, @Nonnull Path packageDir, @Nonnull String appUser, @Nonnull String appId, int appPort, @Nonnull String appName, @Nonnull String accountName, @Nonnull String serverInstanceId)
public Environment(@Nonnull Path appDir, @Nonnull Path clickstackDir, @Nonnull Path packageDir, @Nonnull String appUser, @Nonnull String appId, int appPort, @Nonnull Path controlDir, @Nonnull Path logDir, @Nonnull String appName, @Nonnull String accountName, @Nonnull String serverInstanceId)
Copyright © 2013-2014. All Rights Reserved.