|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.mycontainer.Utils
public class Utils
API-wide utilities and constants.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
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 found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||