public interface ServerConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCKING_SHUTDOWN
Constant that holds the name of the environment property for
specifying whether or not the server should shutdown
synchronously (true) or asynchronously (false).
|
static String |
BOOT_LIBRARY_LIST
Constant that holds the name of the environment property
for specifying a comma seperated list of the basenames of
to the boot libraries required load the core system.
|
static String |
BOOTSTRAP_URL
The bootstrap url
|
static String |
COMMON_BASE_URL
Constant that holds the name of the environment property
for specifying the base URL for files and directories
common to different server configurations
|
static String |
COMMON_BASE_URL_SUFFIX
The suffix used when generating the default value for
COMMON_BASE_URL |
static String |
COMMON_LIBRARY_URL
Constant that holds the name of the environment property
for specifying a library directory URL that points to libraries
shared by the various server configurations.
|
static boolean |
DEFAULT_BLOCKING_SHUTDOWN
The default value for
BLOCKING_SHUTDOWN. |
static boolean |
DEFAULT_EXIT_ON_SHUTDOWN
The default value for
EXIT_ON_SHUTDOWN. |
static boolean |
DEFAULT_INSTALL_LIFE_THREAD
The default value for
INSTALL_LIFE_THREAD. |
static String |
DEFAULT_PARITION_NAME
The default partition name
|
static boolean |
DEFAULT_PLATFORM_MBEANSERVER
The default value for
PLATFORM_MBEANSERVER. |
static boolean |
DEFAULT_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY
The default value for
REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY. |
static String |
DEFAULT_ROOT_DEPLOYMENT_FILENAME
The default value for
ROOT_DEPLOYMENT_FILENAME. |
static String |
DEFAULT_SERVER_NAME
The default value for
SERVER_NAME. |
static String |
EXIT_ON_SHUTDOWN
Constant that holds the name of the environment property
for specifying whether or not the server should exit the
JVM on shutdown.
|
static String |
HOME_DIR
Constant that holds the name of the environment property
for specifying the home directory for JBoss.
|
static String |
HOME_URL
Constant that holds the name of the environment property
for specifying the home URL for JBoss.
|
static String |
INSTALL_LIFE_THREAD
Constant that holds the name of the environment property
for specifying whether or not to install the lifethread
|
static String |
LIBRARY_URL
Constant that holds the name of the environment property
for specifying the URL where JBoss will read library files
from.
|
static String |
LIBRARY_URL_SUFFIX
The suffix used when generating the default value for
LIBRARY_URL,
COMMON_LIBRARY_URL and SERVER_LIBRARY_URL. |
static String |
NATIVE_DIR_PROPERTY
The location of native libraries property
|
static String |
NATIVE_LOAD_PROPERTY
Whether to load native libraries
|
static String |
PARTITION_NAME_PROPERTY
The partition name property
|
static String |
PARTITION_UDP_PORT_PROPERTY
The udp port property
|
static String |
PARTITION_UDP_PROPERTY
The udp address property
|
static String |
PATCH_URL
Constant that holds the name of the environment property
for specifying the URL where JBoss will read patch library files
from.
|
static String |
PLATFORM_MBEANSERVER
Constant that holds the name of the environment property for specifying
whether or not to use as the main jboss server the MBeanServer returned
from ManagementFactory.getPlatformMBeanServer(), when running under jdk1.5+
|
static String |
REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY
Constant that holds the name of the environment property for
specifying whether or not the server should log and ignore
exceptions when setting the URLStreamHandlerFactory.
|
static String |
ROOT_DEPLOYMENT_FILENAME
Constant that holds the name of the environment property
for specifying the root deployment filename (relative to the server
config URL that will be deployed to finalize the boot strap process.
|
static String |
SERVER_BASE_DIR
Constant that holds the name of the environment property
for specifying the base directory for calculating server
home directories.
|
static String |
SERVER_BASE_DIR_SUFFIX
The suffix used when generating the default value for
SERVER_BASE_DIR. |
static String |
SERVER_BASE_URL
Constant that holds the name of the environment property
for specifying the base URL for calculating server
home URLs.
|
static String |
SERVER_BASE_URL_SUFFIX
The suffix used when generating the default value for
SERVER_BASE_URL. |
static String |
SERVER_BIND_ADDRESS
Constant that holds the name of the environment property
for specifying the bind address for all jboss services
|
static String |
SERVER_CONFIG_URL
Constant that holds the name of the environment property
for specifying the server configuration URL.
|
static String |
SERVER_CONFIG_URL_SUFFIX
The suffix used when generating the default value for
SERVER_CONFIG_URL. |
static String |
SERVER_DATA_DIR
Constant that holds the name of the environment property
for specifying the directory which JBoss will use for
persistent data file storage.
|
static String |
SERVER_DATA_DIR_SUFFIX
The suffix used when generating the default value for
SERVER_DATA_DIR. |
static String |
SERVER_HOME_DIR
Constant that holds the name of the environment property
for specifying the server home directory for JBoss.
|
static String |
SERVER_HOME_URL
Constant that holds the name of the environment property
for specifying the server home URL for JBoss.
|
static String |
SERVER_LIBRARY_URL
Constant that holds the name of the environment property
for specifying the URL where JBoss will read server specific
library files from.
|
static String |
SERVER_LOG_DIR
Constant that holds the name of the environment property
for specifying the server log directory for JBoss.
|
static String |
SERVER_LOG_DIR_SUFFIX
The suffix used when generating the default value for
SERVER_LOG_DIR. |
static String |
SERVER_NAME
Constant that holds the name of the environment property
for specifying the name of the server which will be used to
calculate the servers home directory and url.
|
static String |
SERVER_TEMP_DIR
Constant that holds the name of the environment property
for specifying the directory which JBoss will use for
temporary file storage.
|
static String |
SERVER_TEMP_DIR_SUFFIX
The suffix used when generating the default value for
SERVER_TEMP_DIR. |
static String |
SERVER_TYPE
Constant that holds the name of the environment property
for specifying the class type of the server to create.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBlockingShutdown()
Get the BlockingShutdown value.
|
URL |
getBootstrapURL()
Get the bootstrap url
|
URL |
getCommonBaseURL()
Get the common base URL.
|
URL |
getCommonLibraryURL()
Get the common library URL.
|
boolean |
getExitOnShutdown()
Get the current value of the exit on shutdown flag.
|
File |
getHomeDir()
Get the local home directory which the server is running from.
|
URL |
getHomeURL()
Get the home URL which the server is running from.
|
URL |
getLibraryURL()
Get the library URL for the server.
|
URL |
getPatchURL()
Get the patch URL for the server.
|
boolean |
getPlatformMBeanServer()
Get the current value of the flag that indicates if we are
using the platform MBeanServer as the main jboss server.
|
boolean |
getRequireJBossURLStreamHandlerFactory()
Get the RequireJBossURLStreamHandlerFactory value.
|
String |
getRootDeploymentFilename()
Get the filename of the root deployable that will be used to finalize
the bootstrap process.
|
File |
getServerBaseDir()
Get the base directory for calculating server home directories.
|
URL |
getServerBaseURL()
Get the base directory for calculating server home URLs.
|
URL |
getServerConfigURL()
Get the server configuration URL.
|
File |
getServerDataDir()
Get the directory where local data will be stored.
|
File |
getServerHomeDir()
Get the server home directory.
|
URL |
getServerHomeURL()
Get the server home URL.
|
URL |
getServerLibraryURL()
Get the server library URL.
|
File |
getServerLogDir()
Get the directory where log files will be stored.
|
String |
getServerName()
Get the name of the server.
|
File |
getServerNativeDir()
Get the native dir for unpacking
|
File |
getServerTempDeployDir()
Get the temporary deployment dir for unpacking
|
File |
getServerTempDir()
Get the directory where temporary files will be stored.
|
String |
getSpecificationVersion()
Get the server Specification-Version
|
boolean |
isInstallLifeThread()
Whether to install the lifethread
|
void |
setBlockingShutdown(boolean blockingShutdown)
Set the BlockingShutdown value.
|
void |
setExitOnShutdown(boolean flag)
Enable or disable exiting the JVM when
Server.shutdown() is called. |
void |
setRequireJBossURLStreamHandlerFactory(boolean requireJBossURLStreamHandlerFactory)
Set the RequireJBossURLStreamHandlerFactory value.
|
void |
setRootDeploymentFilename(String filename)
Set the filename of the root deployable that will be used to finalize
the bootstrap process.
|
static final String DEFAULT_PARITION_NAME
static final String PARTITION_NAME_PROPERTY
static final String PARTITION_UDP_PROPERTY
static final String PARTITION_UDP_PORT_PROPERTY
static final String NATIVE_LOAD_PROPERTY
static final String NATIVE_DIR_PROPERTY
static final String BOOT_LIBRARY_LIST
These libraries will be loaded from LIBRARY_URL.
static final String SERVER_TYPE
static final String BOOTSTRAP_URL
If not set then the server will default to SERVER_CONFIG_URL/bootstrap.xml.
static final String ROOT_DEPLOYMENT_FILENAME
If not set then the server will default to DEFAULT_ROOT_DEPLOYMENT_FILENAME.
static final String HOME_DIR
static final String HOME_URL
If not set then the value of HOME_DIR will converted into a URL.
static final String LIBRARY_URL
Defaults to HOME_URL/lib/
static final String PATCH_URL
If this value is a file URL, then all .zip and .jar files inside will be prepended to the classpath. Otherwise the URL will be added to the classpath. If not set then the no patch files will be loaded.
static final String SERVER_NAME
Defaults to default.
static final String SERVER_BASE_DIR
Defaults to HOME_DIR/server.
static final String SERVER_HOME_DIR
Defaults to SERVER_BASE_DIR/SERVER_NAME.
static final String SERVER_LOG_DIR
Defaults to SERVER_HOME_DIR/log.
static final String SERVER_TEMP_DIR
Defaults to SERVER_HOME_DIR/tmp .
static final String SERVER_DATA_DIR
Defaults to SERVER_HOME_DIR/data.
static final String SERVER_BASE_URL
Defaults to HOME_URL/server.
static final String SERVER_HOME_URL
Defaults to SERVER_BASE_URL/SERVER_NAME.
static final String SERVER_CONFIG_URL
Defaults to SERVER_HOME_URL/conf .
static final String SERVER_LIBRARY_URL
Defaults to SERVER_HOME_URL/lib/
static final String COMMON_BASE_URL
Defaults to HOME_URL/common/
static final String COMMON_LIBRARY_URL
Defaults to COMMON_BASE_URL/lib/
static final String SERVER_BIND_ADDRESS
static final String EXIT_ON_SHUTDOWN
If not set then the server will default to exiting on shutdown.
static final String BLOCKING_SHUTDOWN
If not set then the server will default to asynchronous shutdown.
static final String INSTALL_LIFE_THREAD
If not set then the server will default to installing the lifethread.
static final String REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY
If not set then the server will default to asynchronous shutdown.
static final String PLATFORM_MBEANSERVER
If not set then jboss will instantiate its own MBeanServer
static final String LIBRARY_URL_SUFFIX
LIBRARY_URL,
COMMON_LIBRARY_URL and SERVER_LIBRARY_URL.static final String COMMON_BASE_URL_SUFFIX
COMMON_BASE_URLstatic final String SERVER_CONFIG_URL_SUFFIX
SERVER_CONFIG_URL.static final String SERVER_BASE_DIR_SUFFIX
SERVER_BASE_DIR.static final String SERVER_BASE_URL_SUFFIX
SERVER_BASE_URL.static final String SERVER_DATA_DIR_SUFFIX
SERVER_DATA_DIR.static final String SERVER_LOG_DIR_SUFFIX
SERVER_LOG_DIR.static final String SERVER_TEMP_DIR_SUFFIX
SERVER_TEMP_DIR.static final String DEFAULT_SERVER_NAME
SERVER_NAME.static final boolean DEFAULT_EXIT_ON_SHUTDOWN
EXIT_ON_SHUTDOWN.static final boolean DEFAULT_BLOCKING_SHUTDOWN
BLOCKING_SHUTDOWN.static final boolean DEFAULT_INSTALL_LIFE_THREAD
INSTALL_LIFE_THREAD.static final boolean DEFAULT_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY
REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY.static final boolean DEFAULT_PLATFORM_MBEANSERVER
PLATFORM_MBEANSERVER.static final String DEFAULT_ROOT_DEPLOYMENT_FILENAME
ROOT_DEPLOYMENT_FILENAME.URL getBootstrapURL()
File getHomeDir()
URL getHomeURL()
URL getLibraryURL()
URL getPatchURL()
String getServerName()
File getServerBaseDir()
File getServerHomeDir()
File getServerLogDir()
File getServerTempDir()
File getServerDataDir()
URL getServerBaseURL()
URL getServerHomeURL()
URL getServerLibraryURL()
URL getServerConfigURL()
URL getCommonBaseURL()
URL getCommonLibraryURL()
boolean getPlatformMBeanServer()
PLATFORM_MBEANSERVER
property must be set, and the jvm must be jdk1.5+void setExitOnShutdown(boolean flag)
Server.shutdown() is called.
If enabled, then shutdown calls Server#exit(). If disabled, then
only the shutdown hook will be run.flag - True to enable calling exit on shutdown.boolean getExitOnShutdown()
boolean getBlockingShutdown()
void setBlockingShutdown(boolean blockingShutdown)
blockingShutdown - The new BlockingShutdown value.boolean isInstallLifeThread()
boolean getRequireJBossURLStreamHandlerFactory()
void setRequireJBossURLStreamHandlerFactory(boolean requireJBossURLStreamHandlerFactory)
requireJBossURLStreamHandlerFactory - The new RequireJBossURLStreamHandlerFactory value.void setRootDeploymentFilename(String filename)
filename - The filename of the root deployable.String getRootDeploymentFilename()
File getServerNativeDir()
File getServerTempDeployDir()
String getSpecificationVersion()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.