public class ClientProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_HOME_DIR
The full path to the client's home directory.
|
static String |
LOGGING_LEVEL_KEY
The logging level key.
|
static String |
PORT_KEY
The wattdepot server port key.
|
static String |
TEST_PORT_KEY
The wattdepot server port key during testing.
|
static String |
USER_NAME
Name of property used to store the username.
|
static String |
USER_PASSWORD
Name of property used to store the password.
|
static String |
WATTDEPOT_SERVER_HOST
The wattdepot server host.
|
Constructor and Description |
---|
ClientProperties()
Creates a new ClientProperties instance using the default filename.
|
ClientProperties(String clientSubdir)
Creates a new ClientProperties instance loaded from the given directory
name.
|
Modifier and Type | Method and Description |
---|---|
String |
echoProperties()
Returns a string containing all current properties in alphabetical order.
|
String |
get(String key)
Returns the value of the Server Property specified by the key.
|
void |
setTestProperties()
Sets the properties to their "test" equivalents and updates the system
properties.
|
public static final String CLIENT_HOME_DIR
public static final String USER_NAME
public static final String USER_PASSWORD
public static final String WATTDEPOT_SERVER_HOST
public static final String PORT_KEY
public static final String TEST_PORT_KEY
public static final String LOGGING_LEVEL_KEY
public ClientProperties()
public ClientProperties(String clientSubdir)
clientSubdir
- The name of the subdirectory used to store all files for the
client.public String echoProperties()
public String get(String key)
key
- Should be one of the public static final strings in this class.public void setTestProperties()
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.