|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gigaspaces.start.Locator
public class Locator
The Locator class derives the location of GigaSpaces Technologies system directories and provides various utilities for finding files and directories
Field Summary | |
---|---|
static java.lang.String |
GS_GRID_BOOT_LIB
|
static java.lang.String |
GS_GRID_LIB
|
static java.lang.String |
GS_HOME
|
static java.lang.String |
GS_JINI_LIB
|
static java.lang.String |
GS_LIB
|
Constructor Summary | |
---|---|
Locator()
|
Method Summary | |
---|---|
static java.lang.String |
checkDirFormat(java.lang.String dir)
Make sure the directory exists, that read access is permitted and the name has a File.separator as it's last character |
static java.util.Properties |
deriveDirectories(java.lang.Class clazz)
Derive the location of product directories based on a class We fill a properties object with all the product directories variables. |
static java.lang.String |
derivePath(java.lang.String fileName)
Derive the location of a file or subdirectory, starting from the GigaSpaces base directory and scanning sub-directories. |
static java.lang.String |
derivePath(java.lang.String baseDir,
java.lang.String fileName)
Derive the location of a file or subdirectory, starting from the GigaSpaces base directory and scanning sub-directories. |
static java.lang.String |
getGSDeploymentDir()
Derive the location of the "deployment" directory in the distribution. |
static java.io.File |
getProductHomeDirectory()
|
static java.lang.String |
getProductHomeDirectoryName()
|
static java.io.File |
getProductUIHomeDirectory()
|
static java.lang.String |
getProductUIHomeDirectoryName()
|
static java.io.File |
getUIStatisticsHistoryHomeDirectory()
|
static java.lang.String |
getUIStatisticsHistoryHomeDirectoryName()
|
static java.lang.String |
includes(java.lang.String fileName)
The import utility provides a specialized enabler to include a file into a deployment descriptor. |
static java.lang.String |
readFile(java.lang.String fileName)
Read the contents of the file. |
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 GS_HOME
public static final java.lang.String GS_LIB
public static final java.lang.String GS_GRID_LIB
public static final java.lang.String GS_GRID_BOOT_LIB
public static final java.lang.String GS_JINI_LIB
Constructor Detail |
---|
public Locator()
Method Detail |
---|
public static java.util.Properties deriveDirectories(java.lang.Class clazz)
public static java.lang.String derivePath(java.lang.String fileName)
fileName
- The file name to locate. This parameter must not be null
null
is returnedpublic static java.lang.String getGSDeploymentDir() throws java.io.IOException
$GS_HOME/config/deployment
null
is returned
java.io.IOException
public static java.lang.String includes(java.lang.String fileName)
$GS_HOME/config/deployment/includes
public static java.lang.String derivePath(java.lang.String baseDir, java.lang.String fileName)
fileName
- The file name to locate. This parameter must not be nullbaseDir
- The directory to base/start the location from. Must not
be null. If the value start wih a "$", the value is interpreted as a
System property. If the
null
is returnedpublic static java.lang.String readFile(java.lang.String fileName)
fileName
- The name of the file to locate and read from. This
parameter must not be null
public static java.lang.String checkDirFormat(java.lang.String dir)
File.separator
as it's last character
dir
- A non-null String
File.separator
as it's
last character
java.lang.NullPointerException
- if the dir param is null
java.lang.IllegalArgumentException
- if the dir directory does not exist or
cannot be read frompublic static java.lang.String getProductHomeDirectoryName()
public static java.io.File getProductHomeDirectory()
public static java.lang.String getProductUIHomeDirectoryName()
public static java.io.File getProductUIHomeDirectory()
public static java.lang.String getUIStatisticsHistoryHomeDirectoryName()
public static java.io.File getUIStatisticsHistoryHomeDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |