@Service public class ServerEnvironmentImpl extends Object implements org.glassfish.api.admin.ServerEnvironment, org.glassfish.hk2.api.PostConstruct
This primarily replaces all the system variables in V2.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ADMIN_CONSOLE_APP_NAME |
static String |
DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT |
static String |
kAppAltDDDirName |
static String |
kConfigDirName
folder where the configuration of this instance is stored
|
static String |
kConfigXMLFileName |
static String |
kConfigXMLFileNameBackup |
static String |
kDefaultLoggingPropertiesFileName |
static String |
kEJBStubDirName |
static String |
kGeneratedDirName
folder where all generated code like compiled jsps, stubs is stored
|
static String |
kGeneratedXMLDirName |
static String |
kInitFileName
init file name
|
static String |
kLoggingPropertiesFileName |
static String |
kPolicyFileDirName |
static String |
kRepositoryDirName |
| Constructor and Description |
|---|
ServerEnvironmentImpl()
Compute all the values per default.
|
ServerEnvironmentImpl(File root) |
| Modifier and Type | Method and Description |
|---|---|
File |
getApplicationAltDDPath()
Gets the directory to store external alternate deployment descriptors
Normally
ROOT/generated/altdd |
File |
getApplicationCompileJspPath()
Returns the path for compiled JSP Pages from an application
that is deployed on this instance.
|
File |
getApplicationEJBStubPath() |
File |
getApplicationGeneratedXMLPath() |
File |
getApplicationPolicyFilePath()
Returns the path for policy files for applications
deployed on this instance.
|
File |
getApplicationRepositoryPath()
Gets the directory to store deployed applications
Normally
ROOT/applications |
File |
getApplicationStubPath()
Gets the directory to store generated stuff.
|
File |
getConfigDirPath()
Gets the directory to store configuration.
|
File |
getDefaultAdminConsoleFolderOnDisk()
Returns the folder where the admin console application's folder (in the
name of admin console application) should be found.
|
String |
getDomainName() |
File |
getDomainRoot()
Deprecated.
As of GlassFish 3.1 replaced with
getInstanceRoot() |
File |
getInitFilePath()
Gets the init.conf file.
|
String |
getInstanceName()
Every server has a name that can be found in the server element in domain.xml
|
File |
getInstanceRoot() |
File |
getJKS() |
File |
getLibPath()
Gets the directory for hosting user-provided jar files.
|
File |
getMasterPasswordFile() |
String |
getProp(String key)
Return the value of one property.
|
Map<String,String> |
getProps() |
org.glassfish.api.admin.RuntimeType |
getRuntimeType() |
com.sun.enterprise.module.bootstrap.StartupContext |
getStartupContext() |
org.glassfish.api.admin.ServerEnvironment.Status |
getStatus() |
File |
getTrustStore() |
boolean |
isDas()
Am I a running GlassFish DAS server?
|
boolean |
isDebug() |
boolean |
isEmbedded() |
boolean |
isInstance()
Am I a running GlassFish server instance?
|
boolean |
isVerbose() |
void |
postConstruct()
This is where the real initialization happens.
|
void |
setStatus(org.glassfish.api.admin.ServerEnvironment.Status status) |
public static final String kGeneratedDirName
public static final String kRepositoryDirName
public static final String kAppAltDDDirName
public static final String kEJBStubDirName
public static final String kGeneratedXMLDirName
public static final String kPolicyFileDirName
public static final String kConfigXMLFileName
public static final String kConfigXMLFileNameBackup
public static final String kLoggingPropertiesFileName
public static final String kDefaultLoggingPropertiesFileName
public static final String kConfigDirName
public static final String kInitFileName
public static final String DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT
public static final String DEFAULT_ADMIN_CONSOLE_APP_NAME
public ServerEnvironmentImpl()
public ServerEnvironmentImpl(File root)
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic String getDomainName()
public File getInstanceRoot()
getInstanceRoot in interface org.glassfish.api.admin.ServerEnvironment@Deprecated public File getDomainRoot()
getInstanceRoot()getDomainRoot in interface org.glassfish.api.admin.ServerEnvironmentpublic com.sun.enterprise.module.bootstrap.StartupContext getStartupContext()
getStartupContext in interface org.glassfish.api.admin.ServerEnvironmentpublic File getConfigDirPath()
ROOT/configgetConfigDirPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationRepositoryPath()
ROOT/applicationsgetApplicationRepositoryPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationStubPath()
ROOT/generatedgetApplicationStubPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getInitFilePath()
public File getLibPath()
ROOT/libgetLibPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationEJBStubPath()
getApplicationEJBStubPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationGeneratedXMLPath()
getApplicationGeneratedXMLPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationCompileJspPath()
getApplicationCompileJspPath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationPolicyFilePath()
getApplicationPolicyFilePath in interface org.glassfish.api.admin.ServerEnvironmentpublic File getApplicationAltDDPath()
ROOT/generated/altddgetApplicationAltDDPath in interface org.glassfish.api.admin.ServerEnvironmentpublic final String getProp(String key)
key - the name of the propertypublic File getDefaultAdminConsoleFolderOnDisk()
public File getMasterPasswordFile()
getMasterPasswordFile in interface org.glassfish.api.admin.ServerEnvironmentpublic File getJKS()
getJKS in interface org.glassfish.api.admin.ServerEnvironmentpublic File getTrustStore()
getTrustStore in interface org.glassfish.api.admin.ServerEnvironmentpublic org.glassfish.api.admin.ServerEnvironment.Status getStatus()
getStatus in interface org.glassfish.api.admin.ServerEnvironmentpublic void setStatus(org.glassfish.api.admin.ServerEnvironment.Status status)
public boolean isEmbedded()
public org.glassfish.api.admin.RuntimeType getRuntimeType()
getRuntimeType in interface org.glassfish.api.admin.ServerEnvironmentpublic String getInstanceName()
getInstanceName in interface org.glassfish.api.admin.ServerEnvironmentpublic boolean isInstance()
isInstance in interface org.glassfish.api.admin.ServerEnvironmentpublic boolean isDas()
isDas in interface org.glassfish.api.admin.ServerEnvironmentpublic boolean isDebug()
public boolean isVerbose()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.