Package com.sun.enterprise.util
Class SystemPropertyConstants
- java.lang.Object
-
- com.sun.enterprise.util.SystemPropertyConstants
-
public class SystemPropertyConstants extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SystemPropertyConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAccessLogDefaultValue()
Returns the default value (as would appear in the domain.xml on installation) of file where the acess log of a virtual server is stored, as a String.static String
getAdminScriptLocation(String installRoot)
static String
getAsAdminScriptLocation()
Returns the system specific file.separator delimited path to the asadmin script.static String
getAsAdminScriptLocation(String installRoot)
static String
getComponentName()
Returns the component identifier associated with the INSTALL_ROOT.static String
getDocRootDefaultValue()
Returns the default value (as would appear in the domain.xml on installation) of docroot of a virtual server, as a String.static String
getPropertyAsValue(String name)
A method that returns the passed String as a property that can be replaced at run time.static boolean
isSystemPropertySyntax(String s)
static String
unSystemProperty(String sp)
Returns the string removing the "system-property syntax" from it.
-
-
-
Field Detail
-
SLASH
public static final String SLASH
Field used by Monitoring to encode a forward slash and/or dot- See Also:
- Constant Field Values
-
MONDOT
public static final String MONDOT
- See Also:
- Constant Field Values
-
UNIX_ASENV_FILENAME
public static final String UNIX_ASENV_FILENAME
Field- See Also:
- Constant Field Values
-
WINDOWS_ASENV_FILENAME
public static final String WINDOWS_ASENV_FILENAME
Field- See Also:
- Constant Field Values
-
WEB_SERVICES_LIB_PROPERTY
public static final String WEB_SERVICES_LIB_PROPERTY
Field- See Also:
- Constant Field Values
-
PERL_ROOT_PROPERTY
public static final String PERL_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
IMQ_LIB_PROPERTY
public static final String IMQ_LIB_PROPERTY
Field- See Also:
- Constant Field Values
-
IMQ_BIN_PROPERTY
public static final String IMQ_BIN_PROPERTY
Field- See Also:
- Constant Field Values
-
CONFIG_ROOT_PROPERTY
public static final String CONFIG_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
INSTALL_ROOT_PROPERTY
public static final String INSTALL_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
PRODUCT_ROOT_PROPERTY
public static final String PRODUCT_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
JAVA_ROOT_PROPERTY
public static final String JAVA_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
JAVA_ROOT_PROPERTY_ASENV
public static final String JAVA_ROOT_PROPERTY_ASENV
- See Also:
- Constant Field Values
-
ICU_LIB_PROPERTY
public static final String ICU_LIB_PROPERTY
Field- See Also:
- Constant Field Values
-
DEFAULT_LOCALE_PROPERTY
public static final String DEFAULT_LOCALE_PROPERTY
Field- See Also:
- Constant Field Values
-
DOMAINS_ROOT_PROPERTY
public static final String DOMAINS_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
INSTANCE_ROOT_PROPERTY
public static final String INSTANCE_ROOT_PROPERTY
Field- See Also:
- Constant Field Values
-
AGENT_CERT_NICKNAME
public static final String AGENT_CERT_NICKNAME
The certificate nick name specified in the System-Jmx-Conenctor of the DAS with which a Node Agent synchronizes- See Also:
- Constant Field Values
-
AGENT_ROOT_PROPERTY
public static final String AGENT_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
AGENT_NAME_PROPERTY
public static final String AGENT_NAME_PROPERTY
- See Also:
- Constant Field Values
-
WEBCONSOLE_LIB_PROPERTY
public static final String WEBCONSOLE_LIB_PROPERTY
Field- See Also:
- Constant Field Values
-
WEBCONSOLE_APP_PROPERTY
public static final String WEBCONSOLE_APP_PROPERTY
- See Also:
- Constant Field Values
-
JATO_ROOT_PROPERTY
public static final String JATO_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
ANT_ROOT_PROPERTY
public static final String ANT_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
ANT_LIB_PROPERTY
public static final String ANT_LIB_PROPERTY
- See Also:
- Constant Field Values
-
JHELP_ROOT_PROPERTY
public static final String JHELP_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
SERVER_NAME
public static final String SERVER_NAME
name of the server instance key- See Also:
- Constant Field Values
-
CLUSTER_NAME
public static final String CLUSTER_NAME
name of the server's cluster- See Also:
- Constant Field Values
-
HADB_ROOT_PROPERTY
public static final String HADB_ROOT_PROPERTY
name of the HADB location property- See Also:
- Constant Field Values
-
NSS_ROOT_PROPERTY
public static final String NSS_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
NSS_BIN_PROPERTY
public static final String NSS_BIN_PROPERTY
- See Also:
- Constant Field Values
-
NATIVE_LAUNCHER
public static final String NATIVE_LAUNCHER
- See Also:
- Constant Field Values
-
NATIVE_LAUNCHER_LIB_PREFIX
public static final String NATIVE_LAUNCHER_LIB_PREFIX
- See Also:
- Constant Field Values
-
KEYSTORE_PROPERTY
public static final String KEYSTORE_PROPERTY
- See Also:
- Constant Field Values
-
JKS_KEYSTORE
public static final String JKS_KEYSTORE
-
TRUSTSTORE_PROPERTY
public static final String TRUSTSTORE_PROPERTY
- See Also:
- Constant Field Values
-
JKS_TRUSTSTORE
public static final String JKS_TRUSTSTORE
-
ADMIN_REALM
public static final String ADMIN_REALM
- See Also:
- Constant Field Values
-
NSS_DB_PROPERTY
public static final String NSS_DB_PROPERTY
- See Also:
- Constant Field Values
-
NSS_DB_PASSWORD_PROPERTY
public static final String NSS_DB_PASSWORD_PROPERTY
- See Also:
- Constant Field Values
-
CLIENT_TRUSTSTORE_PROPERTY
public static final String CLIENT_TRUSTSTORE_PROPERTY
- See Also:
- Constant Field Values
-
CLIENT_TRUSTSTORE_PASSWORD_PROPERTY
public static final String CLIENT_TRUSTSTORE_PASSWORD_PROPERTY
- See Also:
- Constant Field Values
-
PID_FILE
public static final String PID_FILE
- See Also:
- Constant Field Values
-
REF_TS_FILE
public static final String REF_TS_FILE
- See Also:
- Constant Field Values
-
KILLSERV_SCRIPT
public static final String KILLSERV_SCRIPT
- See Also:
- Constant Field Values
-
KILL_SERV_UNIX
public static final String KILL_SERV_UNIX
- See Also:
- Constant Field Values
-
KILL_SERV_WIN
public static final String KILL_SERV_WIN
- See Also:
- Constant Field Values
-
KILL_SERV_OS
public static final String KILL_SERV_OS
-
DEFAULT_SERVER_INSTANCE_NAME
public static final String DEFAULT_SERVER_INSTANCE_NAME
- See Also:
- Constant Field Values
-
DAS_SERVER_NAME
public static final String DAS_SERVER_NAME
- See Also:
- Constant Field Values
-
DAS_SERVER_CONFIG
public static final String DAS_SERVER_CONFIG
- See Also:
- Constant Field Values
-
JDMK_HOME_PROPERTY
public static final String JDMK_HOME_PROPERTY
- See Also:
- Constant Field Values
-
H2_ROOT_PROPERTY
public static final String H2_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
MFWK_HOME_PROPERTY
public static final String MFWK_HOME_PROPERTY
Java ES Monitoring Framework install directory- See Also:
- Constant Field Values
-
DOMAIN_NAME
public static final String DOMAIN_NAME
name of the domain key- See Also:
- Constant Field Values
-
HOST_NAME_PROPERTY
public static final String HOST_NAME_PROPERTY
- See Also:
- Constant Field Values
-
CONFIG_NAME_PROPERTY
public static final String CONFIG_NAME_PROPERTY
- See Also:
- Constant Field Values
-
DOCROOT_PROPERTY
public static final String DOCROOT_PROPERTY
- See Also:
- Constant Field Values
-
ACCESSLOG_PROPERTY
public static final String ACCESSLOG_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_SERVER_SOCKET_ADDRESS
public static final String DEFAULT_SERVER_SOCKET_ADDRESS
- See Also:
- Constant Field Values
-
CLUSTER_AWARE_FEATURE_FACTORY_CLASS
public static final String CLUSTER_AWARE_FEATURE_FACTORY_CLASS
- See Also:
- Constant Field Values
-
DROP_INTERRUPTED_COMMANDS
public static final String DROP_INTERRUPTED_COMMANDS
- See Also:
- Constant Field Values
-
TEMPLATE_CONFIG_NAME
public static final String TEMPLATE_CONFIG_NAME
Name of the default config that determines the configuration for the instances- See Also:
- Constant Field Values
-
DEFAULT_ADMIN_USER
public static final String DEFAULT_ADMIN_USER
- See Also:
- Constant Field Values
-
DEFAULT_ADMIN_PASSWORD
public static final String DEFAULT_ADMIN_PASSWORD
- See Also:
- Constant Field Values
-
OPEN
public static final String OPEN
- See Also:
- Constant Field Values
-
CLOSE
public static final String CLOSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPropertyAsValue
public static String getPropertyAsValue(String name)
A method that returns the passed String as a property that can be replaced at run time.- Parameters:
name
- String that represents a property, e.g INSTANCE_ROOT_PROPERTY in this class. The String may not be null.- Returns:
- a String that represents the replaceable value of passed String. Generally speaking it will be decorated with a pair of braces with $ in the front (e.g. "a" will be returned as "${a}").
- Throws:
IllegalArgumentException
- if the passed String is null
-
unSystemProperty
public static String unSystemProperty(String sp)
Returns the string removing the "system-property syntax" from it. If the given string is not in "system-property syntax" the same string is returned. The "system-propery syntax" is "${...}" The given String may not be null. The returned String may be an empty String, if it is of the form "${}" (rarely so).
-
isSystemPropertySyntax
public static boolean isSystemPropertySyntax(String s)
-
getDocRootDefaultValue
public static String getDocRootDefaultValue()
Returns the default value (as would appear in the domain.xml on installation) of docroot of a virtual server, as a String. Never returns a null. Returned String contains no backslashes. Note that it is not the absolute value of the path on a file system.
-
getAccessLogDefaultValue
public static String getAccessLogDefaultValue()
Returns the default value (as would appear in the domain.xml on installation) of file where the acess log of a virtual server is stored, as a String. Never returns a null. Returned String contains no backslashes. Note that it is not the absolute value of the path on a file system.
-
getAsAdminScriptLocation
public static String getAsAdminScriptLocation()
Returns the system specific file.separator delimited path to the asadmin script. Any changes to file layout should be reflected here. The path will contain '/' as the separator character, regardless of operating platform. Never returns a null. Assumes the the property "INSTALL_ROOT_PROPERTY" is set in the VM before calling this. As of now (September 2005) all the server instances and asadmin VM itself has this property set. The method does not guarantee that the script exists on the given system. It should only be used when caller wants to know the location of the script. Caller should make sure it exists.- Returns:
- String representing the Path to asadmin script. Might return a string beginning with "null", if the INSTALL_ROOT_PROPERTY is not defined
-
getComponentName
public static String getComponentName()
Returns the component identifier associated with the INSTALL_ROOT. For example if INSTALL_ROOT is /home/glassfish4/glassfish the component name will "glassfish".- Returns:
- String representing the component identifier.
-
-