Package com.opengamma.master.config

Examples of com.opengamma.master.config.ConfigMaster


  //-------------------------------------------------------------------------
  @Override
  protected void doRun() {
    final ConfigSource configSource = getToolContext().getConfigSource();
    final ConfigMaster configMaster = getToolContext().getConfigMaster();

    // Find all matching curves
    final List<YieldCurveDefinition> curves = getCurveDefinitionNames(configMaster, getCommandLine().getOptionValue(CURVE_NAME_OPT));

    // build list of curve dates so that we pre-load contracts out several years where possible.
View Full Code Here


  }

  //-------------------------------------------------------------------------
  @Override
  protected void doRun() {
    ConfigMaster master = getToolContext().getConfigMaster();
    String[] args = getCommandLine().getArgs();
    CurrencyPairsConfigDocumentLoader loader = new CurrencyPairsConfigDocumentLoader(master, args[0], args[1]);
    loader.run();
  }
View Full Code Here

  }

  //-------------------------------------------------------------------------
  @Override
  protected void doRun() {
    ConfigMaster master = getToolContext().getConfigMaster();
    ExternalIdOrderConfigDocumentLoader loader = new ExternalIdOrderConfigDocumentLoader(master, DEFAULT_CONFIG_NAME);
    loader.run();
  }
View Full Code Here

*/
public class ExampleCurveConfigurationLoader extends AbstractTool<ToolContext> {

  @Override
  protected void doRun() throws Exception {
    final ConfigMaster configMaster = getToolContext().getConfigMaster();
    new MultiCurveCalculationConfigPopulator(configMaster);
  }
View Full Code Here

@Scriptable
public class ExampleCurveAndSurfaceDefinitionLoader extends AbstractTool<ToolContext> {

  @Override
  protected void doRun() throws Exception {
    final ConfigMaster configMaster = getToolContext().getConfigMaster();
    new YieldCurveConfigPopulator(configMaster, true);
    ExampleFXOptionVolatilitySurfaceConfigPopulator.populateVolatilitySurfaceConfigMaster(configMaster, ExampleViewsPopulator.CURRENCY_PAIRS);
    ExampleATMSwaptionVolatilitySurfaceConfigPopulator.populateVolatilitySurfaceConfigMaster(configMaster, ExampleViewsPopulator.SWAPTION_SURFACES);
    ExampleFXForwardCurveConfigPopulator.populateCurveConfigMaster(configMaster, ExampleViewsPopulator.CURRENCY_PAIRS);
    new VolatilityCubeConfigPopulator(configMaster);
View Full Code Here

@Scriptable
public class ExampleCurrencyConfigurationLoader extends AbstractTool<ToolContext> {

  @Override
  protected void doRun() throws Exception {
    final ConfigMaster configMaster = getToolContext().getConfigMaster();
    CurrencyPairsConfigPopulator.populateCurrencyPairsConfigMaster(configMaster);
    CurrencyMatrixConfigPopulator.populateCurrencyMatrixConfigMaster(configMaster);
  }
View Full Code Here

 
  private void loadDefaultVolatilityCubeDefinition() {
    final Log log = new Log("Creating volatility cube definitions");
    try {
      final ToolContext toolContext = getToolContext();
      final ConfigMaster configMaster = toolContext.getConfigMaster();
      final ConfigItem<VolatilityCubeDefinition> item = ConfigItem.of(createDefaultVolatilityCubeDefinition(), "SECONDARY_USD", VolatilityCubeDefinition.class);
      ConfigMasterUtils.storeByName(configMaster, item);
      log.done();
    } catch (final RuntimeException t) {
      log.fail(t);
View Full Code Here

*/
public class ExampleFXImpliedCurveConfigurationLoader extends AbstractTool<ToolContext> {

  @Override
  protected void doRun() throws Exception {
    final ConfigMaster configMaster = getToolContext().getConfigMaster();
    new ExampleFXImpliedMultiCurveCalculationConfigPopulator(configMaster);
  }
View Full Code Here

  }

  //-------------------------------------------------------------------------
  @Override
  protected void doRun() {
    ConfigMaster configMaster = getToolContext().getConfigMaster();   
    List<HistoricalTimeSeriesRatingRule> rules = new ArrayList<HistoricalTimeSeriesRatingRule>();
    rules.add(new HistoricalTimeSeriesRatingRule(DATA_SOURCE_NAME, "BLOOMBERG", 1));
    rules.add(new HistoricalTimeSeriesRatingRule(DATA_SOURCE_NAME, SimulatedHistoricalDataGenerator.OG_DATA_SOURCE, 2));
    rules.add(new HistoricalTimeSeriesRatingRule(DATA_PROVIDER_NAME, "CMPL", 1));
    rules.add(new HistoricalTimeSeriesRatingRule(DATA_PROVIDER_NAME, SimulatedHistoricalDataGenerator.OG_DATA_PROVIDER, 2));
View Full Code Here

  private boolean _publishRest = true;


  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final ConfigMaster master = new InMemoryConfigMaster();
    final ComponentInfo info = new ComponentInfo(ConfigMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteConfigMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryConfigMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);
View Full Code Here

TOP

Related Classes of com.opengamma.master.config.ConfigMaster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.