|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.Spark
public final class Spark
In many cases, you will need to know the structure of the Spark installation, such as the directory structures, what
type of system Spark is running on, and also the arguments which were passed into Spark on startup. The Spark
class provides some simple static calls to retrieve this information.
Method Summary | |
---|---|
static java.lang.String |
getArgumentValue(java.lang.String argumentName)
Returns the value associated with a passed in argument. |
static java.io.File |
getBinDirectory()
Returns the bin directory of the Spark install. |
static java.io.File |
getLogDirectory()
Returns the log directory. |
static java.io.File |
getResourceDirectory()
Returns the resource directory of the Spark install. |
static java.lang.String |
getUserConf()
Keep track of the users configuration directory. |
static java.lang.String |
getUserHome()
Returns the User specific directory for this Spark instance. |
static void |
installBaseUIProperties()
|
static boolean |
isCustomBuild()
|
static boolean |
isLinux()
Return if we are running on Linux. |
static boolean |
isMac()
Return if we are running on a mac. |
static boolean |
isWindows()
Return if we are running on windows. |
static void |
main(java.lang.String[] args)
Invocation method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- - Will receive arguments from Java Web Start.public static boolean isWindows()
public static boolean isMac()
public static java.lang.String getArgumentValue(java.lang.String argumentName)
String value = Spark.getArgumentValue("username");
argumentName
- the name of the argument to retrieve.
public static java.io.File getBinDirectory()
public static java.io.File getResourceDirectory()
public static java.io.File getLogDirectory()
public static boolean isLinux()
public static java.lang.String getUserConf()
public static java.lang.String getUserHome()
public static boolean isCustomBuild()
public static void installBaseUIProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |