|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.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 |
getUserHome()
Returns the User specific directory for this Spark instance. |
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 java.lang.String getUserHome()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |