Package org.hibernate.search.util.configuration.impl

Examples of org.hibernate.search.util.configuration.impl.MaskedProperty.containsKey()


    return delegatedBackend.getExclusiveWriteLock();
  }

  private static void assertLegacyOptionsNotUsed(Properties props, String indexName) {
    MaskedProperty jgroupsCfg = new MaskedProperty( props, "worker.backend.jgroups" );
    if ( jgroupsCfg.containsKey( "configurationFile" )
        || jgroupsCfg.containsKey( "configurationXml" )
        || jgroupsCfg.containsKey( "configurationString" )
        || jgroupsCfg.containsKey( "clusterName" ) ) {
      throw log.legacyJGroupsConfigurationDefined( indexName );
    }
View Full Code Here


  }

  private static void assertLegacyOptionsNotUsed(Properties props, String indexName) {
    MaskedProperty jgroupsCfg = new MaskedProperty( props, "worker.backend.jgroups" );
    if ( jgroupsCfg.containsKey( "configurationFile" )
        || jgroupsCfg.containsKey( "configurationXml" )
        || jgroupsCfg.containsKey( "configurationString" )
        || jgroupsCfg.containsKey( "clusterName" ) ) {
      throw log.legacyJGroupsConfigurationDefined( indexName );
    }
  }
View Full Code Here

  private static void assertLegacyOptionsNotUsed(Properties props, String indexName) {
    MaskedProperty jgroupsCfg = new MaskedProperty( props, "worker.backend.jgroups" );
    if ( jgroupsCfg.containsKey( "configurationFile" )
        || jgroupsCfg.containsKey( "configurationXml" )
        || jgroupsCfg.containsKey( "configurationString" )
        || jgroupsCfg.containsKey( "clusterName" ) ) {
      throw log.legacyJGroupsConfigurationDefined( indexName );
    }
  }
View Full Code Here

  private static void assertLegacyOptionsNotUsed(Properties props, String indexName) {
    MaskedProperty jgroupsCfg = new MaskedProperty( props, "worker.backend.jgroups" );
    if ( jgroupsCfg.containsKey( "configurationFile" )
        || jgroupsCfg.containsKey( "configurationXml" )
        || jgroupsCfg.containsKey( "configurationString" )
        || jgroupsCfg.containsKey( "clusterName" ) ) {
      throw log.legacyJGroupsConfigurationDefined( indexName );
    }
  }

  public boolean blocksForACK() {
View Full Code Here

    String customImplementation = optimizerCfg.getProperty( "implementation" );
    if ( customImplementation != null && (! "default".equalsIgnoreCase( customImplementation ) ) ) {
      return ClassLoaderHelper.instanceFromName( OptimizerStrategy.class, customImplementation, callback.getClass(), "Optimizer Strategy" );
    }
    else {
      boolean incremental = optimizerCfg.containsKey( "operation_limit.max" )
        || optimizerCfg.containsKey( "transaction_limit.max" );
      OptimizerStrategy optimizerStrategy;
      if ( incremental ) {
        optimizerStrategy = new IncrementalOptimizerStrategy();
        optimizerStrategy.initialize( callback, optimizerCfg );
View Full Code Here

    if ( customImplementation != null && (! "default".equalsIgnoreCase( customImplementation ) ) ) {
      return ClassLoaderHelper.instanceFromName( OptimizerStrategy.class, customImplementation, callback.getClass(), "Optimizer Strategy" );
    }
    else {
      boolean incremental = optimizerCfg.containsKey( "operation_limit.max" )
        || optimizerCfg.containsKey( "transaction_limit.max" );
      OptimizerStrategy optimizerStrategy;
      if ( incremental ) {
        optimizerStrategy = new IncrementalOptimizerStrategy();
        optimizerStrategy.initialize( callback, optimizerCfg );
      }
View Full Code Here

    String customImplementation = optimizerCfg.getProperty( "implementation" );
    if ( customImplementation != null && (! "default".equalsIgnoreCase( customImplementation ) ) ) {
      return ClassLoaderHelper.instanceFromName( OptimizerStrategy.class, customImplementation, callback.getClass(), "Optimizer Strategy" );
    }
    else {
      boolean incremental = optimizerCfg.containsKey( "operation_limit.max" )
        || optimizerCfg.containsKey( "transaction_limit.max" );
      OptimizerStrategy optimizerStrategy;
      if ( incremental ) {
        optimizerStrategy = new IncrementalOptimizerStrategy();
        optimizerStrategy.initialize( callback, optimizerCfg );
View Full Code Here

    if ( customImplementation != null && (! "default".equalsIgnoreCase( customImplementation ) ) ) {
      return ClassLoaderHelper.instanceFromName( OptimizerStrategy.class, customImplementation, callback.getClass(), "Optimizer Strategy" );
    }
    else {
      boolean incremental = optimizerCfg.containsKey( "operation_limit.max" )
        || optimizerCfg.containsKey( "transaction_limit.max" );
      OptimizerStrategy optimizerStrategy;
      if ( incremental ) {
        optimizerStrategy = new IncrementalOptimizerStrategy();
        optimizerStrategy.initialize( callback, optimizerCfg );
      }
View Full Code Here

          "Optimizer Strategy",
          serviceManager
      );
    }
    else {
      boolean incremental = maskedProperty.containsKey( "operation_limit.max" )
          || maskedProperty.containsKey( "transaction_limit.max" );
      OptimizerStrategy optimizerStrategy;
      if ( incremental ) {
        optimizerStrategy = new IncrementalOptimizerStrategy();
        optimizerStrategy.initialize( callback, maskedProperty );
View Full Code Here

          serviceManager
      );
    }
    else {
      boolean incremental = maskedProperty.containsKey( "operation_limit.max" )
          || maskedProperty.containsKey( "transaction_limit.max" );
      OptimizerStrategy optimizerStrategy;
      if ( incremental ) {
        optimizerStrategy = new IncrementalOptimizerStrategy();
        optimizerStrategy.initialize( callback, maskedProperty );
      }
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.