com.ibm.websphere.samples.asynchbeans.wstrader
Class Config

java.lang.Object
  extended by com.ibm.websphere.samples.asynchbeans.wstrader.Config

public class Config
extends java.lang.Object

Various configuration information and constants for the application.


Field Summary
static java.lang.String APP_AB_LISTENER_REGISTRY
           
static java.lang.String APP_AB_TOPIC_CONNECTION
           
static java.lang.String CLIENT_AB_SERVLET_LISTENER
           
static java.lang.String CLIENT_AB_TICKERS
           
static java.lang.String CLIENT_AB_TICKERS_OLD
           
static java.lang.String CLIENT_COOKIE_NAME
           
static int CLIENT_HEARTBEAT_DEAD
           
static int CLIENT_HEARTBEAT_INTERVAL
           
static int CLIENT_HEARTBEAT_STALE
           
static java.lang.String CLIENT_PARAM_ADDTICKER
           
static java.lang.String CLIENT_PARAM_CLIENTID
           
static java.lang.String CLIENT_PARAM_RMVTICKER
           
static java.lang.String CLIENT_PARAM_STREAM_NAME
           
static java.lang.String CLIENT_PARAM_TICKERS
           
static int PRICEGEN_HEARTBEAT_DEAD
           
static int PRICEGEN_HEARTBEAT_INTERVAL
           
static int PRICEGEN_HEARTBEAT_STALE
           
static java.lang.String PRICEGEN_PRICETYPE_DOWN
           
static java.lang.String PRICEGEN_PRICETYPE_STATIC
           
static java.lang.String PRICEGEN_PRICETYPE_UP
           
static int STREAMSERVER_HEARTBEAT_DEAD
           
static int STREAMSERVER_HEARTBEAT_INTERVAL
           
static int STREAMSERVER_HEARTBEAT_STALE
           
 
Constructor Summary
Config()
           
 
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
 

Field Detail

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
Constructor Detail

Config

public Config()
Method Detail

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 retrieve
dftValue - 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