Examples of datasource()


Examples of org.infinispan.persistence.jdbc.configuration.JdbcStringBasedStoreConfigurationBuilder.dataSource()

   @Override
   protected PersistenceConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder persistence, boolean preload) {
      JdbcStringBasedStoreConfigurationBuilder store = persistence
            .addStore(JdbcStringBasedStoreConfigurationBuilder.class)
            .preload(preload);
      store.dataSource().jndiUrl("osgi:service/javax.sql.DataSource");
      UnitTestDatabaseManager.buildTableManipulation(store.table(), false);
      UnitTestDatabaseManager.setDialect(store);
      return persistence;
   }
}
View Full Code Here

Examples of org.infinispan.persistence.jdbc.configuration.JdbcStringBasedStoreConfigurationBuilder.dataSource()

      JdbcStringBasedStoreConfigurationBuilder storeBuilder = TestCacheManagerFactory
            .getDefaultCacheConfiguration(false)
            .persistence()
               .addStore(JdbcStringBasedStoreConfigurationBuilder.class);

      storeBuilder.dataSource()
            .jndiUrl(getDatasourceLocation());
      UnitTestDatabaseManager.buildTableManipulation(storeBuilder.table(), false);

      JdbcStringBasedStore stringBasedCacheStore = new JdbcStringBasedStore();
      stringBasedCacheStore.init(new InitializationContextImpl(storeBuilder.create(), getCache(), getMarshaller(),
View Full Code Here

Examples of org.jrobin.graph.RrdGraphDef.datasource()

      rrdGraphDef.setImageFormat("png");
      rrdGraphDef.setTitle(rrdDef.getDsDefs()[dsIndex].dump() + " " +
          rrdDef.getArcDefs()[arcIndex].dump());
      LinearInterpolator linearInterpolator = new LinearInterpolator(timestamps, values);
      linearInterpolator.setInterpolationMethod(LinearInterpolator.INTERPOLATE_RIGHT);
      rrdGraphDef.datasource(dsName, linearInterpolator);
      rrdGraphDef.area(dsName, color, dsName + "\\r");
      rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
      rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
      int width = graphPanel.getWidth(), height = graphPanel.getHeight();
      rrdGraphDef.setWidth(width + deltaWidth);
View Full Code Here

Examples of org.jrobin.graph.RrdGraphDef.datasource()

      rrdGraphDef.setImageFormat("png");
      rrdGraphDef.setTitle(rrdDef.getDsDefs()[dsIndex].dump() + " " +
          rrdDef.getArcDefs()[arcIndex].dump());
      LinearInterpolator linearInterpolator = new LinearInterpolator(timestamps, values);
      linearInterpolator.setInterpolationMethod(LinearInterpolator.INTERPOLATE_RIGHT);
      rrdGraphDef.datasource(dsName, linearInterpolator);
      rrdGraphDef.area(dsName, color, dsName + "\\r");
      rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
      rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
      int width = graphPanel.getWidth(), height = graphPanel.getHeight();
      rrdGraphDef.setWidth(width + deltaWidth);
View Full Code Here

Examples of org.jtester.annotations.DbFit.dataSource()

      Class testedClazz = testObject.getClass();
      JdbcTracerManager.suspendThreadMonitorJdbc();// 不记录dbfit的sql语句

      DbFit dbFit = testMethod.getAnnotation(DbFit.class);
      if (dbFit != null) {
        DBEnvironmentFactory.changeDBEnvironment(dbFit.dataSource());
        DbFitModule.setSymbols(dbFit);
      }
      String[] files = AutoFindDbFit.autoFindMethodWhen(testedClazz, testMethod);
      runDbFiles(testedClazz, files);
View Full Code Here

Examples of org.jtester.annotations.DbFit.dataSource()

      Class testedClazz = testObject.getClass();
      JdbcTracerManager.suspendThreadMonitorJdbc();

      DbFit dbFit = testMethod.getAnnotation(DbFit.class);
      if (dbFit != null) {
        DBEnvironmentFactory.changeDBEnvironment(dbFit.dataSource());
        DbFitModule.setSymbols(dbFit);
      }
      String[] files = AutoFindDbFit.autoFindMethodThen(testedClazz, testMethod);
      runDbFiles(testedClazz, files);
      SymbolUtil.cleanSymbols();
View Full Code Here

Examples of org.jtester.annotations.DbFit.dataSource()

      if (dbFit == null) {
        return;
      }
      JdbcTracerManager.suspendThreadMonitorJdbc();// 不记录dbfit的sql语句

      DBEnvironmentFactory.changeDBEnvironment(dbFit.dataSource());
      DbFitModule.setSymbols(dbFit);
      String[] files = AutoFindDbFit.autoFindClassWhen(testClazz);
      runDbFiles(testClazz, files);
      DBEnvironmentFactory.commitCurrentDBEnvironment();
View Full Code Here

Examples of org.rrd4j.graph.RrdGraphDef.datasource()

    gDef.setLazy(false);
    gDef.setStartTime(startTimestamp);
    gDef.setEndTime(stopTimestamp);
    gDef.setTitle(name);
    gDef.setVerticalLabel("Memory");
    gDef.datasource("Init", fileName, "Init", AVERAGE);
    gDef.datasource("Used", fileName, "Used", AVERAGE);
    gDef.datasource("Committed", fileName, "Committed", AVERAGE);
    gDef.datasource("Max", fileName, "Max", AVERAGE);

    gDef.line("Init", Color.GREEN, "Init memory");
View Full Code Here

Examples of org.rrd4j.graph.RrdGraphDef.datasource()

    gDef.setStartTime(startTimestamp);
    gDef.setEndTime(stopTimestamp);
    gDef.setTitle(name);
    gDef.setVerticalLabel("Memory");
    gDef.datasource("Init", fileName, "Init", AVERAGE);
    gDef.datasource("Used", fileName, "Used", AVERAGE);
    gDef.datasource("Committed", fileName, "Committed", AVERAGE);
    gDef.datasource("Max", fileName, "Max", AVERAGE);

    gDef.line("Init", Color.GREEN, "Init memory");
    gDef.area("Max", Color.RED, "Max memory\n");
View Full Code Here

Examples of org.rrd4j.graph.RrdGraphDef.datasource()

    gDef.setEndTime(stopTimestamp);
    gDef.setTitle(name);
    gDef.setVerticalLabel("Memory");
    gDef.datasource("Init", fileName, "Init", AVERAGE);
    gDef.datasource("Used", fileName, "Used", AVERAGE);
    gDef.datasource("Committed", fileName, "Committed", AVERAGE);
    gDef.datasource("Max", fileName, "Max", AVERAGE);

    gDef.line("Init", Color.GREEN, "Init memory");
    gDef.area("Max", Color.RED, "Max memory\n");
    gDef.area("Committed", Color.gray, "Committed memory");
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.