|
||||||||||
| 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 java.lang.String |
DEFAULT_ADMIN_CONSOLE_APP_NAME
|
static java.lang.String |
DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT
|
static java.lang.String |
kConfigDirName
folder where the configuration of this instance is stored |
static java.lang.String |
kConfigXMLFileName
|
static java.lang.String |
kConfigXMLFileNameBackup
|
static java.lang.String |
kEJBStubDirName
|
static java.lang.String |
kGeneratedDirName
folder where all generated code like compiled jsps, stubs is stored |
static java.lang.String |
kGeneratedXMLDirName
|
static java.lang.String |
kInitFileName
init file name |
static java.lang.String |
kLoggingPropertiesFileName
|
static java.lang.String |
kPolicyFileDirName
|
static java.lang.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(java.io.File root)
|
|
| Method Summary | |
|---|---|
java.io.File |
getApplicationCompileJspPath()
Returns the path for compiled JSP Pages from an application that is deployed on this instance. |
java.io.File |
getApplicationEJBStubPath()
|
java.io.File |
getApplicationGeneratedXMLPath()
|
java.io.File |
getApplicationPolicyFilePath()
Returns the path for policy files for applications deployed on this instance. |
java.io.File |
getApplicationRepositoryPath()
Gets the directory to store deployed applications Normally ROOT/applications |
java.io.File |
getApplicationStubPath()
Gets the directory to store generated stuff. |
java.io.File |
getConfigDirPath()
Gets the directory to store configuration. |
java.io.File |
getDefaultAdminConsoleFolderOnDisk()
Returns the folder where the admin console application's folder (in the name of admin console application) should be found. |
java.lang.String |
getDomainName()
|
java.io.File |
getDomainRoot()
Deprecated. As of GlassFish 3.1 replaced with getInstanceRoot() |
java.io.File |
getDomainXML()
|
java.io.File |
getInitFilePath()
Gets the init.conf file. |
java.lang.String |
getInstanceName()
Every server has a name that can be found in the server element in domain.xml |
java.io.File |
getInstanceRoot()
|
java.io.File |
getJKS()
|
java.io.File |
getLibPath()
Gets the directory for hosting user-provided jar files. |
java.io.File |
getMasterPasswordFile()
|
java.util.Map<java.lang.String,java.lang.String> |
getProps()
|
RuntimeType |
getRuntimeType()
|
com.sun.enterprise.module.bootstrap.StartupContext |
getStartupContext()
|
ServerEnvironment.Status |
getStatus()
|
java.io.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 java.lang.String kGeneratedDirName
public static final java.lang.String kRepositoryDirName
public static final java.lang.String kEJBStubDirName
public static final java.lang.String kGeneratedXMLDirName
public static final java.lang.String kPolicyFileDirName
public static final java.lang.String kConfigXMLFileName
public static final java.lang.String kConfigXMLFileNameBackup
public static final java.lang.String kLoggingPropertiesFileName
public static final java.lang.String kConfigDirName
public static final java.lang.String kInitFileName
public static final java.lang.String DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT
public static final java.lang.String DEFAULT_ADMIN_CONSOLE_APP_NAME
| Constructor Detail |
|---|
public ServerEnvironmentImpl()
public ServerEnvironmentImpl(java.io.File root)
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstructpublic java.lang.String getDomainName()
public java.io.File getInstanceRoot()
getInstanceRoot in interface ServerEnvironment@Deprecated public java.io.File getDomainRoot()
getInstanceRoot()
getDomainRoot in interface ServerEnvironmentpublic com.sun.enterprise.module.bootstrap.StartupContext getStartupContext()
getStartupContext in interface ServerEnvironmentpublic java.io.File getConfigDirPath()
ROOT/config
getConfigDirPath in interface ServerEnvironmentpublic java.io.File getApplicationRepositoryPath()
ROOT/applications
getApplicationRepositoryPath in interface ServerEnvironmentpublic java.io.File getApplicationStubPath()
ROOT/generated
getApplicationStubPath in interface ServerEnvironmentpublic java.io.File getInitFilePath()
public java.io.File getLibPath()
ROOT/lib
getLibPath in interface ServerEnvironmentpublic java.io.File getApplicationEJBStubPath()
getApplicationEJBStubPath in interface ServerEnvironmentpublic java.io.File getApplicationGeneratedXMLPath()
getApplicationGeneratedXMLPath in interface ServerEnvironmentpublic java.io.File getApplicationCompileJspPath()
getApplicationCompileJspPath in interface ServerEnvironmentpublic java.io.File getApplicationPolicyFilePath()
getApplicationPolicyFilePath in interface ServerEnvironmentpublic java.util.Map<java.lang.String,java.lang.String> getProps()
public java.io.File getDefaultAdminConsoleFolderOnDisk()
public java.io.File getMasterPasswordFile()
getMasterPasswordFile in interface ServerEnvironmentpublic java.io.File getJKS()
getJKS in interface ServerEnvironmentpublic java.io.File getTrustStore()
getTrustStore in interface ServerEnvironmentpublic java.io.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 java.lang.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 | |||||||||