|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.server.ServerEnvironmentImpl
@Service public class ServerEnvironmentImpl
Defines various global configuration for the running GlassFish instance.
This primarily replaces all the system variables in V2.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.api.admin.ServerEnvironment |
|---|
ServerEnvironment.Status |
| Field Summary | |
|---|---|
static String |
DEFAULT_ADMIN_CONSOLE_APP_NAME
|
static String |
DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT
|
static String |
kConfigDirName
folder where the configuration of this instance is stored |
static String |
kConfigXMLFileName
|
static String |
kConfigXMLFileNameBackup
|
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
|
| Fields inherited from interface org.glassfish.api.admin.ServerEnvironment |
|---|
DEFAULT_INSTANCE_NAME, kCompileJspDirName |
| Constructor Summary | |
|---|---|
ServerEnvironmentImpl()
Compute all the values per default. |
|
ServerEnvironmentImpl(File root)
|
|
| Method Summary | |
|---|---|
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 |
getDomainXML()
|
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()
|
Map<String,String> |
getProps()
|
RuntimeType |
getRuntimeType()
|
com.sun.enterprise.module.bootstrap.StartupContext |
getStartupContext()
|
ServerEnvironment.Status |
getStatus()
|
File |
getTrustStore()
|
boolean |
isDas()
Am I a running GlassFish DAS server? |
boolean |
isEmbedded()
|
boolean |
isInstance()
Am I a running GlassFish server instance? |
void |
postConstruct()
This is where the real initialization happens. |
void |
setStatus(ServerEnvironment.Status status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String kGeneratedDirName
public static final String kRepositoryDirName
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 kConfigDirName
public static final String kInitFileName
public static final String DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT
public static final String DEFAULT_ADMIN_CONSOLE_APP_NAME
| Constructor Detail |
|---|
public ServerEnvironmentImpl()
public ServerEnvironmentImpl(File root)
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstructpublic String getDomainName()
public File getInstanceRoot()
getInstanceRoot in interface ServerEnvironment@Deprecated public File getDomainRoot()
getInstanceRoot()
getDomainRoot in interface ServerEnvironmentpublic com.sun.enterprise.module.bootstrap.StartupContext getStartupContext()
getStartupContext in interface ServerEnvironmentpublic File getConfigDirPath()
ROOT/config
getConfigDirPath in interface ServerEnvironmentpublic File getApplicationRepositoryPath()
ROOT/applications
getApplicationRepositoryPath in interface ServerEnvironmentpublic File getApplicationStubPath()
ROOT/generated
getApplicationStubPath in interface ServerEnvironmentpublic File getInitFilePath()
public File getLibPath()
ROOT/lib
getLibPath 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 Map<String,String> getProps()
public File getDefaultAdminConsoleFolderOnDisk()
public File getMasterPasswordFile()
getMasterPasswordFile in interface ServerEnvironmentpublic File getJKS()
getJKS in interface ServerEnvironmentpublic File getTrustStore()
getTrustStore in interface ServerEnvironmentpublic File getDomainXML()
getDomainXML in interface ServerEnvironmentpublic ServerEnvironment.Status getStatus()
getStatus in interface ServerEnvironmentpublic void setStatus(ServerEnvironment.Status status)
public boolean isEmbedded()
public RuntimeType getRuntimeType()
getRuntimeType in interface ServerEnvironmentpublic String getInstanceName()
getInstanceName in interface ServerEnvironmentpublic boolean isInstance()
isInstance in interface ServerEnvironmentpublic boolean isDas()
isDas in interface ServerEnvironment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||