|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.dailyprojectdata.server.ServerProperties
public class ServerProperties
Provides access to the values stored in the dailyprojectdata.properties file.
Field Summary | |
---|---|
static java.lang.String |
CACHE_CAPACITY
The total capacity of each SensorBaseClient cache. |
static java.lang.String |
CACHE_ENABLED
Indicates whether SensorBaseClient caching is enabled. |
static java.lang.String |
CACHE_MAX_LIFE
The maxLife in days for each instance in each SensorBaseClient cache. |
static java.lang.String |
CONTEXT_ROOT_KEY
The dailyprojectdata context root. |
static java.lang.String |
FRONTSIDECACHE_ENABLED
Whether or not the front side cache is enabled. |
static java.lang.String |
HOSTNAME_KEY
The dailyprojectdata hostname key. |
static java.lang.String |
LOGGING_LEVEL_KEY
The logging level key. |
static java.lang.String |
PORT_KEY
The dailyprojectdata port key. |
static java.lang.String |
RESTLET_LOGGING_KEY
The Restlet Logging key. |
static java.lang.String |
SENSORBASE_FULLHOST_KEY
The sensorbase fully qualified host name, such as http://localhost:9876/sensorbase. |
static java.lang.String |
TEST_HOSTNAME_KEY
The test installation key. |
static java.lang.String |
TEST_INSTALL_KEY
The test installation key. |
static java.lang.String |
TEST_PORT_KEY
The dpd port key during testing. |
static java.lang.String |
TEST_SENSORBASE_FULLHOST_KEY
The test installation key. |
static java.lang.String |
XML_DIR_KEY
The XML directory key. |
Constructor Summary | |
---|---|
ServerProperties()
Creates a new ServerProperties instance. |
Method Summary | |
---|---|
java.lang.String |
echoProperties()
Returns a string containing all current properties in alphabetical order. |
java.lang.String |
get(java.lang.String key)
Returns the value of the Server Property specified by the key. |
long |
getCacheCapacity()
Returns the in-memory capacity for each cache. |
double |
getCacheMaxLife()
Returns the caching max life as a double. |
java.lang.String |
getFullHost()
Returns the fully qualified host name, such as "http://localhost:9877/dailyprojectdata/". |
boolean |
isCacheEnabled()
Returns true if caching is enabled in this service. |
boolean |
isFrontSideCacheEnabled()
Returns true if front side caching is enabled in this service. |
void |
setTestProperties()
Sets the following properties' values to their "test" equivalent. |
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 SENSORBASE_FULLHOST_KEY
public static final java.lang.String HOSTNAME_KEY
public static final java.lang.String CONTEXT_ROOT_KEY
public static final java.lang.String LOGGING_LEVEL_KEY
public static final java.lang.String PORT_KEY
public static final java.lang.String XML_DIR_KEY
public static final java.lang.String RESTLET_LOGGING_KEY
public static final java.lang.String TEST_PORT_KEY
public static final java.lang.String TEST_INSTALL_KEY
public static final java.lang.String TEST_HOSTNAME_KEY
public static final java.lang.String TEST_SENSORBASE_FULLHOST_KEY
public static final java.lang.String CACHE_ENABLED
public static final java.lang.String CACHE_MAX_LIFE
public static final java.lang.String CACHE_CAPACITY
public static final java.lang.String FRONTSIDECACHE_ENABLED
Constructor Detail |
---|
public ServerProperties()
Method Detail |
---|
public void setTestProperties()
public java.lang.String get(java.lang.String key)
key
- Should be one of the public static final strings in this class.
public java.lang.String getFullHost()
public boolean isCacheEnabled()
public boolean isFrontSideCacheEnabled()
public double getCacheMaxLife()
public long getCacheCapacity()
public java.lang.String echoProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |