@Service public class ServerEnvironmentImpl extends Object implements ServerEnvironment, org.glassfish.hk2.api.PostConstruct
This primarily replaces all the system variables in V2.
ServerEnvironment.Status| 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 |
DEFAULT_INSTANCE_NAME, kCompileJspDirName| 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()
A Java KeyStore which is locked by administrator's master password.
|
File |
getLibPath()
Gets the directory for hosting user-provided jar files.
|
File |
getMasterPasswordFile()
A JCEKS keystore which is locked with a fixed-key.
|
String |
getProp(String key)
Return the value of one property.
|
Map<String,String> |
getProps() |
RuntimeType |
getRuntimeType()
Returns the process type of this instance.
|
com.sun.enterprise.module.bootstrap.StartupContext |
getStartupContext()
return the startup context used to initialize this runtime
|
ServerEnvironment.Status |
getStatus()
Gets the server status
|
File |
getTrustStore()
The truststore used by the server.
|
boolean |
isDas()
Am I a running GlassFish DAS server?
|
boolean |
isDebug() |
boolean |
isEmbedded() |
boolean |
isInstance()
Am I a running GlassFish server instance?
|
boolean |
isMicro() |
boolean |
isVerbose() |
void |
postConstruct()
This is where the real initialization happens.
|
void |
setStatus(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()
getDomainName in interface ServerEnvironmentpublic File getInstanceRoot()
getInstanceRoot in interface ServerEnvironment@Deprecated public File getDomainRoot()
getInstanceRoot()getDomainRoot in interface ServerEnvironmentpublic com.sun.enterprise.module.bootstrap.StartupContext getStartupContext()
ServerEnvironmentgetStartupContext in interface ServerEnvironmentpublic File getConfigDirPath()
ROOT/configgetConfigDirPath in interface ServerEnvironmentpublic File getApplicationRepositoryPath()
ROOT/applicationsgetApplicationRepositoryPath in interface ServerEnvironmentpublic File getApplicationStubPath()
ROOT/generatedgetApplicationStubPath in interface ServerEnvironmentpublic File getInitFilePath()
public File getLibPath()
ROOT/libgetLibPath in interface ServerEnvironmentpublic File getApplicationEJBStubPath()
getApplicationEJBStubPath in interface ServerEnvironmentpublic File getApplicationGeneratedXMLPath()
getApplicationGeneratedXMLPath in interface ServerEnvironmentpublic File getApplicationCompileJspPath()
getApplicationCompileJspPath in interface ServerEnvironmentpublic File getApplicationPolicyFilePath()
getApplicationPolicyFilePath in interface ServerEnvironmentpublic File getApplicationAltDDPath()
ROOT/generated/altddgetApplicationAltDDPath in interface ServerEnvironmentpublic final String getProp(String key)
key - the name of the propertypublic File getDefaultAdminConsoleFolderOnDisk()
public File getMasterPasswordFile()
ServerEnvironmentgetMasterPasswordFile in interface ServerEnvironmentpublic File getJKS()
ServerEnvironmentgetJKS in interface ServerEnvironmentpublic File getTrustStore()
ServerEnvironmentgetTrustStore in interface ServerEnvironmentpublic ServerEnvironment.Status getStatus()
ServerEnvironmentgetStatus in interface ServerEnvironmentpublic void setStatus(ServerEnvironment.Status status)
public boolean isEmbedded()
public RuntimeType getRuntimeType()
ServerEnvironmentgetRuntimeType in interface ServerEnvironmentpublic String getInstanceName()
getInstanceName in interface ServerEnvironmentpublic boolean isInstance()
isInstance in interface ServerEnvironmentpublic boolean isDas()
isDas in interface ServerEnvironmentpublic boolean isMicro()
isMicro in interface ServerEnvironmentpublic boolean isDebug()
public boolean isVerbose()
Copyright © 2017. All rights reserved.