com.ibm.websphere.samples.asynchbeans.wstrader
Class Config
java.lang.Object
com.ibm.websphere.samples.asynchbeans.wstrader.Config
public class Config
- extends java.lang.Object
Various configuration information and constants for the application.
Method Summary |
static java.lang.String |
getAppProperty(java.lang.String key,
java.lang.String dftValue)
Retrive a property from the application's configuration file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIENT_COOKIE_NAME
public static final java.lang.String CLIENT_COOKIE_NAME
- See Also:
- Constant Field Values
CLIENT_PARAM_CLIENTID
public static final java.lang.String CLIENT_PARAM_CLIENTID
- See Also:
- Constant Field Values
CLIENT_PARAM_TICKERS
public static final java.lang.String CLIENT_PARAM_TICKERS
- See Also:
- Constant Field Values
CLIENT_PARAM_ADDTICKER
public static final java.lang.String CLIENT_PARAM_ADDTICKER
- See Also:
- Constant Field Values
CLIENT_PARAM_RMVTICKER
public static final java.lang.String CLIENT_PARAM_RMVTICKER
- See Also:
- Constant Field Values
CLIENT_PARAM_STREAM_NAME
public static final java.lang.String CLIENT_PARAM_STREAM_NAME
- See Also:
- Constant Field Values
APP_AB_TOPIC_CONNECTION
public static final java.lang.String APP_AB_TOPIC_CONNECTION
- See Also:
- Constant Field Values
APP_AB_LISTENER_REGISTRY
public static final java.lang.String APP_AB_LISTENER_REGISTRY
- See Also:
- Constant Field Values
CLIENT_AB_SERVLET_LISTENER
public static final java.lang.String CLIENT_AB_SERVLET_LISTENER
- See Also:
- Constant Field Values
CLIENT_AB_TICKERS
public static final java.lang.String CLIENT_AB_TICKERS
- See Also:
- Constant Field Values
CLIENT_AB_TICKERS_OLD
public static final java.lang.String CLIENT_AB_TICKERS_OLD
- See Also:
- Constant Field Values
CLIENT_HEARTBEAT_INTERVAL
public static final int CLIENT_HEARTBEAT_INTERVAL
- See Also:
- Constant Field Values
CLIENT_HEARTBEAT_STALE
public static final int CLIENT_HEARTBEAT_STALE
- See Also:
- Constant Field Values
CLIENT_HEARTBEAT_DEAD
public static final int CLIENT_HEARTBEAT_DEAD
- See Also:
- Constant Field Values
PRICEGEN_HEARTBEAT_INTERVAL
public static final int PRICEGEN_HEARTBEAT_INTERVAL
- See Also:
- Constant Field Values
PRICEGEN_HEARTBEAT_STALE
public static final int PRICEGEN_HEARTBEAT_STALE
- See Also:
- Constant Field Values
PRICEGEN_HEARTBEAT_DEAD
public static final int PRICEGEN_HEARTBEAT_DEAD
- See Also:
- Constant Field Values
STREAMSERVER_HEARTBEAT_INTERVAL
public static final int STREAMSERVER_HEARTBEAT_INTERVAL
- See Also:
- Constant Field Values
STREAMSERVER_HEARTBEAT_STALE
public static final int STREAMSERVER_HEARTBEAT_STALE
- See Also:
- Constant Field Values
STREAMSERVER_HEARTBEAT_DEAD
public static final int STREAMSERVER_HEARTBEAT_DEAD
- See Also:
- Constant Field Values
PRICEGEN_PRICETYPE_STATIC
public static final java.lang.String PRICEGEN_PRICETYPE_STATIC
- See Also:
- Constant Field Values
PRICEGEN_PRICETYPE_UP
public static final java.lang.String PRICEGEN_PRICETYPE_UP
- See Also:
- Constant Field Values
PRICEGEN_PRICETYPE_DOWN
public static final java.lang.String PRICEGEN_PRICETYPE_DOWN
- See Also:
- Constant Field Values
Config
public Config()
getAppProperty
public static java.lang.String getAppProperty(java.lang.String key,
java.lang.String dftValue)
throws java.io.IOException
- Retrive a property from the application's configuration file.
- Parameters:
key
- Property to retrievedftValue
- Default value to return if the property could not be retrieved.
- Returns:
- Returns the value of the property or the default value.
- Throws:
java.io.IOException