|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.cmemdp.marketdata.cfg.ConfigHelper
public class ConfigHelper
Constructor Summary | |
---|---|
ConfigHelper()
|
Method Summary | |
---|---|
static Configuration |
loadConfiguration(java.net.URL src)
Load Configuration instance from URL |
static Configuration.Subscription |
newOverwriteSubscription(java.lang.String id)
Creates new Subscription instance with a given Id and overwrite attribute=true |
static Configuration.Subscription |
newSubscription(java.lang.String id)
Creates new Subscription instance with a given Id |
static Configuration.Subscription |
newSubscription(java.lang.String id,
java.lang.Long[] secIdArray,
boolean overwriteFlag,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Ids and Subscription Options. |
static Configuration.Subscription |
newSubscription(java.lang.String id,
java.lang.Long[] secIdArray,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Ids and Subscription Options |
static Configuration.Subscription |
newSubscriptionByGroup(java.lang.String id,
java.lang.String[] secGroupArray,
boolean overwriteFlag,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Group Names and Subscription Options. |
static Configuration.Subscription |
newSubscriptionByGroup(java.lang.String id,
java.lang.String[] secGroupArray,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Group Names and Subscription Options |
static Configuration.Subscription |
newSubscriptionBySecDesc(java.lang.String id,
java.lang.String[] secDescArray,
boolean overwriteFlag,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Ids and Subscription Options. |
static Configuration.Subscription |
newSubscriptionBySecDesc(java.lang.String id,
java.lang.String[] secDescArray,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Descriptions and Subscription Options |
static Configuration.Subscription |
newSubscriptionBySymbol(java.lang.String id,
java.lang.String[] secSymbArray,
boolean overwriteFlag,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Symbols and Subscription Options. |
static Configuration.Subscription |
newSubscriptionBySymbol(java.lang.String id,
java.lang.String[] secSymbArray,
Configuration.SubscriptionOption[] options)
Creates new Subscription instance by a given list of Security Symbols and Subscription Options |
static boolean |
validate(Configuration cfg)
Validate a given Configuration instance. |
static boolean |
validateNewSubscription(Configuration cfg,
Configuration.Subscription subscription)
Validate a given Subscription instance in scope if a given Configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigHelper()
Method Detail |
---|
public static Configuration loadConfiguration(java.net.URL src) throws ConfigurationException
src
- URL to Configuration
ConfigurationException
public static boolean validate(Configuration cfg) throws ConfigurationException
cfg
- a Configuration instance
ConfigurationException
public static boolean validateNewSubscription(Configuration cfg, Configuration.Subscription subscription) throws ConfigurationException
cfg
- a Configuration instancesubscription
- a Subscription instance
ConfigurationException
public static Configuration.Subscription newSubscription(java.lang.String id)
id
- id of a new Subscription
public static Configuration.Subscription newOverwriteSubscription(java.lang.String id)
id
- id of a new Subscription
public static Configuration.Subscription newSubscription(java.lang.String id, java.lang.Long[] secIdArray, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecIdArray
- a set of Security Idsoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscription(java.lang.String id, java.lang.Long[] secIdArray, boolean overwriteFlag, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecIdArray
- a set of Security IdsoverwriteFlag
- a state of overwrite attributeoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscriptionBySecDesc(java.lang.String id, java.lang.String[] secDescArray, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecDescArray
- a set of Security Descriptionsoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscriptionBySecDesc(java.lang.String id, java.lang.String[] secDescArray, boolean overwriteFlag, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecDescArray
- a set of Security DescriptionsoverwriteFlag
- a state of overwrite attributeoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscriptionBySymbol(java.lang.String id, java.lang.String[] secSymbArray, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecSymbArray
- a set of Security Symbolsoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscriptionBySymbol(java.lang.String id, java.lang.String[] secSymbArray, boolean overwriteFlag, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecSymbArray
- a set of Security SymbolsoverwriteFlag
- a state of overwrite attributeoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscriptionByGroup(java.lang.String id, java.lang.String[] secGroupArray, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecGroupArray
- a set of Security Group Namesoptions
- a set of Subscription Options
public static Configuration.Subscription newSubscriptionByGroup(java.lang.String id, java.lang.String[] secGroupArray, boolean overwriteFlag, Configuration.SubscriptionOption[] options)
id
- id of a new SubscriptionsecGroupArray
- a set of Security Group NamesoverwriteFlag
- a state of overwrite attributeoptions
- a set of Subscription Options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |