public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_DIR
The local name of the configuration folder inside the install location of the container.
|
static String |
CONTAINER_LOCATION_PROPERTY
The system property that identifies the install location of the container.
|
static String |
DEFAULT_INSTALL_DIRECTORY |
static int |
DEFAULT_PORT
The default timeout on startup.
|
static int |
DEFAULT_STARTUP_TIMEOUT
The default timeout on startup.
|
static String |
ETC_DIR
The local name of the deployment folder inside the install location of the container.
|
static String |
LIB_DIR
The local name of the library folder inside the install location of the container.
|
static String |
PORT_PROPERTY
The name of the property for the timeout on startup
|
static String |
PROPERTY_FILE |
static String |
STARTUP_TIMEOUT_PROPERTY
The name of the property for the timeout on startup
|
static String |
STORAGE_DIR
The local name of the storage folder inside the install location of the container.
|
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
findContainerLocation()
Returns a singleton
Properties with the CONTAINER_LOCATION_PROPERTY set to the installation of a container found on
the local file system. |
static Properties |
findContainerProperties()
Returns the
Properties in a PROPERTY_FILE. |
public static final String CONTAINER_LOCATION_PROPERTY
public static final String DEFAULT_INSTALL_DIRECTORY
public static final String PROPERTY_FILE
public static final String STARTUP_TIMEOUT_PROPERTY
public static final int DEFAULT_STARTUP_TIMEOUT
public static final String CONFIG_DIR
public static final String ETC_DIR
public static final String LIB_DIR
public static final String STORAGE_DIR
public static final String PORT_PROPERTY
public static final int DEFAULT_PORT
public static Properties findContainerLocation()
Properties with the CONTAINER_LOCATION_PROPERTY set to the installation of a container found on
the local file system.
The search for the install location follows this strategy:
CONTAINER_LOCATION_PROPERTY system property.
DEFAULT_INSTALL_DIRECTORY in the working directory.
DEFAULT_INSTALL_DIRECTORY in the parent directory of the working directory.
DEFAULT_INSTALL_DIRECTORY in the user's home.
Properties with the CONTAINER_LOCATION_PROPERTY set to the installation of a container.public static Properties findContainerProperties() throws IllegalStateException
Properties in a PROPERTY_FILE.
The search for the PROPERTY_FILE considers the following locations, in the order in which they are listed:
IllegalStateException - if PROPERTY_FILE cannot be foundCopyright © 2017. All Rights Reserved.