Examples of run()


Examples of com.oltpbenchmark.benchmarks.ycsb.procedures.ReadModifyWriteRecord.run()

        for (int i = 0; i < fields.length; i++) {
            fields[i] = TextGenerator.randomStr(rng(), 100);
        } // FOR
       
        this.m.clear();
        proc.run(conn, keyname, fields, this.m);
    }

    private void insertRecord() throws SQLException {
        InsertRecord proc = this.getProcedure(InsertRecord.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.ycsb.procedures.ReadRecord.run()

    private void readRecord() throws SQLException {
        ReadRecord proc = this.getProcedure(ReadRecord.class);
        assert (proc != null);
        int keyname = readRecord.nextInt();
        proc.run(conn, keyname, new HashMap<Integer, String>());
    }

    private void readModifyWriteRecord() throws SQLException {
        ReadModifyWriteRecord proc = this.getProcedure(ReadModifyWriteRecord.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.ycsb.procedures.ScanRecord.run()

    private void scanRecord() throws SQLException {
        ScanRecord proc = this.getProcedure(ScanRecord.class);
        assert (proc != null);
        int keyname = readRecord.nextInt();
        int count = randScan.nextInt();
        proc.run(conn, keyname, count, new ArrayList<Map<Integer, String>>());
    }

    private void readRecord() throws SQLException {
        ReadRecord proc = this.getProcedure(ReadRecord.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.ycsb.procedures.UpdateRecord.run()

    private void updateRecord() throws SQLException {
        UpdateRecord proc = this.getProcedure(UpdateRecord.class);
        assert (proc != null);
        int keyname = readRecord.nextInt();
        Map<Integer, String> values = buildValues(10);
        proc.run(conn, keyname, values);
    }

    private void scanRecord() throws SQLException {
        ScanRecord proc = this.getProcedure(ScanRecord.class);
        assert (proc != null);
View Full Code Here

Examples of com.opengamma.bbg.loader.hts.BloombergHTSMasterUpdater.run()

    }
   
    BloombergHTSMasterUpdater loader = new BloombergHTSMasterUpdater(historicalTimeSeriesMaster, historicalTimeSeriesProvider, new BloombergIdentifierProvider(bloombergReferenceDataProvider));
    configureOptions(getCommandLine(), loader);
   
    loader.run();
  }

  private static void configureOptions(CommandLine line, BloombergHTSMasterUpdater dataLoader) {
    if (line.hasOption(START_OPTION)) {
      String startOption = line.getOptionValue(START_OPTION);
View Full Code Here

Examples of com.opengamma.examples.bloomberg.loader.CurveNodeHistoricalDataLoader.run()

  private void loadCurveNodeHistoricalData() {
    final Log log = new Log("Loading historical and futures data");
    try {
      final CurveNodeHistoricalDataLoader curveNodeHistoricalDataLoader = new CurveNodeHistoricalDataLoader();
      final FXSpotRateHistoricalDataLoader fxSpotRateHistoricalDataLoader = new FXSpotRateHistoricalDataLoader();
      curveNodeHistoricalDataLoader.run(getToolContext());
      fxSpotRateHistoricalDataLoader.run(getToolContext());
      _historicalDataToLoad.addAll(curveNodeHistoricalDataLoader.getCurveNodesExternalIds());
      _historicalDataToLoad.addAll(curveNodeHistoricalDataLoader.getInitialRateExternalIds());
      _historicalDataToLoad.addAll(fxSpotRateHistoricalDataLoader.getFXSpotRateExternalIds());
      _futuresToLoad.addAll(curveNodeHistoricalDataLoader.getFuturesExternalIds());
View Full Code Here

Examples of com.opengamma.examples.bloomberg.loader.DemoEquityOptionCollarPortfolioLoader.run()

    try {
      final DemoEquityOptionCollarPortfolioLoader loader = new DemoEquityOptionCollarPortfolioLoader();
      loader.setNumOptions(2);
      loader.setNumMembers(8);
      loader.setNumContracts(new BigDecimal(500));
      loader.run(getToolContext());
      log.done();
    } catch (final RuntimeException t) {
      log.fail(t);
    }
  }
View Full Code Here

Examples of com.opengamma.examples.bloomberg.loader.ExampleAUDSwapPortfolioLoader.run()

  private void loadAUDSwapPortfolio() {
    final Log log = new Log("Creating example AUD swap portfolio");
    try {
      final ExampleAUDSwapPortfolioLoader swapLoader = new ExampleAUDSwapPortfolioLoader();
      swapLoader.run(getToolContext());
      log.done();
    } catch (final RuntimeException t) {
      log.fail(t);
    }
  }
View Full Code Here

Examples of com.opengamma.examples.bloomberg.loader.ExampleCurveAndSurfaceDefinitionLoader.run()

  private void loadCurveAndSurfaceDefinitions() {
    final Log log = new Log("Creating curve and surface definitions");
    try {
      final ExampleCurveAndSurfaceDefinitionLoader curveLoader = new ExampleCurveAndSurfaceDefinitionLoader();
      curveLoader.run(getToolContext());
      log.done();
    } catch (final RuntimeException t) {
      log.fail(t);
    }
  }
View Full Code Here

Examples of com.opengamma.examples.bloomberg.loader.ExampleCurveConfigurationLoader.run()

  private void loadCurveCalculationConfigurations() {
    final Log log = new Log("Creating curve calculation configurations");
    try {
      final ExampleCurveConfigurationLoader curveConfigLoader = new ExampleCurveConfigurationLoader();
      curveConfigLoader.run(getToolContext());
      log.done();
    } catch (final RuntimeException t) {
      log.fail(t);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.