com.ibm.websphere.samples.asynchbeans.wstrader.tickstream
Class TickStreamConfig
java.lang.Object
com.ibm.websphere.samples.asynchbeans.wstrader.tickstream.TickStreamConfig
public class TickStreamConfig
- extends java.lang.Object
Various configuration information and constants for the application.
Field Summary |
static java.lang.String |
AS_NAME
The name of the Asynch Bean used for this Price Generator |
static java.lang.String |
REGISTRY_KEY_TICKSTREAM_AUTOSTART
If true, automatically start the price generator when the application starts. |
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 |
AS_NAME
public static final java.lang.String AS_NAME
- The name of the Asynch Bean used for this Price Generator
- See Also:
- Constant Field Values
REGISTRY_KEY_TICKSTREAM_AUTOSTART
public static java.lang.String REGISTRY_KEY_TICKSTREAM_AUTOSTART
- If true, automatically start the price generator when the application starts.
TickStreamConfig
public TickStreamConfig()
getAppProperty
public static java.lang.String getAppProperty(java.lang.String key,
java.lang.String dftValue)
throws java.io.IOException,
java.io.FileNotFoundException
- 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
java.io.FileNotFoundException