|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ServerPrefs>
org.opensha.commons.util.ServerPrefs
public enum ServerPrefs
This enum stores preferences for servers that OpenSHA connects to. This includes hostnames
for servers such as apache tomcat, port numbers for RMI, and the current build type.
To get the server prefs instance in use by this build, use ServerPrefUtils.SERVER_PREFS.
ServerPrefUtils| Enum Constant Summary | |
|---|---|
DEV_PREFS
Preferences for development (trunk) |
|
PRODUCTION_PREFS
Preferences for stable production releases |
|
| Method Summary | |
|---|---|
static ServerPrefs |
fromBuildType(String buildType)
Returns the server type with the given build type string |
DevStatus |
getBuildType()
String designating the build type, such as "nightly" or "dist". |
String |
getHostName()
The host name of the server being used, such as "opensha.usc.edu" |
String |
getServletBaseURL()
The the base URL for servlets, for example: http://opensha.usc.edu:8080/OpenSHA/ |
String |
getTomcatDir()
|
static ServerPrefs |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ServerPrefs[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ServerPrefs DEV_PREFS
public static final ServerPrefs PRODUCTION_PREFS
| Method Detail |
|---|
public static ServerPrefs[] values()
for (ServerPrefs c : ServerPrefs.values()) System.out.println(c);
public static ServerPrefs valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getServletBaseURL()
public String getTomcatDir()
public DevStatus getBuildType()
public String getHostName()
public static ServerPrefs fromBuildType(String buildType)
buildType -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||