Examples of ServiceConfig


Examples of com.hazelcast.config.ServiceConfig

    }

    private Config createConfigWithDummyTxService() {
        Config config = new Config();
        ServicesConfig servicesConfig = config.getServicesConfig();
        servicesConfig.addServiceConfig(new ServiceConfig().setName(DUMMY_TX_SERVICE)
                .setEnabled(true).setServiceImpl(new MapTransactionStressTest.DummyTransactionalService(DUMMY_TX_SERVICE)));
        return config;
    }
View Full Code Here

Examples of com.sun.enterprise.diagnostics.ServiceConfig

        }
               
        for(String instance : instances) {
            try {
                Map instanceMap = new HashMap(8);
                ServiceConfig config = new ServiceConfig(false, null, instance);
                instanceMap.put(ServerTags.CAPTURE_APP_DD, new Boolean(config.isCaptureAppDDEnabled()));
                instanceMap.put(ServerTags.COMPUTE_CHECKSUM, new Boolean(config.isCaptureChecksumEnabled()));
                instanceMap.put(ServerTags.CAPTURE_SYSTEM_INFO, new Boolean(config.isCaptureSystemInfoEnabled()));
                instanceMap.put(ServerTags.CAPTURE_HADB_INFO, new Boolean(config.isCaptureHadbInfoEnabled()));
                instanceMap.put(ServerTags.CAPTURE_INSTALL_LOG, new Boolean(config.isCaptureInstallLogEnabled()));
                instanceMap.put(ServerTags.VERIFY_CONFIG, new Boolean(config.isVerifyDomainEnabled()));
                instanceMap.put(ServerTags.MAX_LOG_ENTRIES, new Integer(config.getMaxNoOfEntries()));
                instanceMap.put(ServerTags.MIN_LOG_LEVEL, new Integer(config.getMinLogLevel()));
                instanceMap.put(ServerTags.LOG_FILE, config.getLogFile());
                configs.put(instance, instanceMap);
            } catch(DiagnosticException de) {
               
            }
        }
View Full Code Here

Examples of de.iritgo.aktera.core.container.ServiceConfig

   * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
   */
  public void configure(Configuration configuration) throws ConfigurationException
  {
    this.configuration = configuration;
    svcConfig = new ServiceConfig(configuration);
  }
View Full Code Here

Examples of de.iritgo.aktera.core.container.ServiceConfig

    }
  }

  public void configure(Configuration configuration) throws ConfigurationException
  {
    svcConfig = new ServiceConfig(configuration);

    // Obtain a reference to the configured DataSource
    dataSourceName = configuration.getChild("dbpool").getValue();

    sql = configuration.getChild("sql").getValue();
View Full Code Here

Examples of jeeves.server.ServiceConfig

              request.addContent(new Element(Geonet.SearchResult.BUILD_SUMMARY).setText("false"));
        GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
        SearchManager searchMan = gc.getBean(SearchManager.class);
        try {
          searcher = searchMan.newSearcher(SearchManager.LUCENE, Geonet.File.SEARCH_LUCENE);
          ServiceConfig sc = new ServiceConfig();
          ((LuceneSearcher)searcher).search(context, request, sc);
        } catch (Exception e) {
          e.printStackTrace();
        }
      } else {
View Full Code Here

Examples of jeeves.server.ServiceConfig

            return "";
        }

        final ServiceContext serviceContext = ServiceContext.get();
        if (serviceContext != null) {
            ServiceConfig config = serviceContext.getBean(ServiceConfig.class);
            if (config != null) {
                String value = config.getValue(key);
                if (value != null) {
                    return value;
                } else {
                    return "";
                }
View Full Code Here

Examples of jeeves.server.ServiceConfig

    GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);

    context.info("Creating searcher");

    Element       params = buildParams();
    ServiceConfig config = new ServiceConfig();

    SearchManager searchMan = gc.getBean(SearchManager.class);
    MetaSearcher  searcher  = searchMan.newSearcher(SearchManager.LUCENE, Geonet.File.SEARCH_LUCENE);

    searcher.search(context, params, config);
View Full Code Here

Examples of jeeves.server.ServiceConfig

                       List<String> categories = query.getCollections();
                       for (String category : categories) {
                           if (!category.equals("geonetwork") && !category.equals("Default")) request.addContent(new Element("category").setText(category));
                       }

                       ServiceConfig config = new ServiceConfig();

                       // perform the search and save search results

                       metasearcher.search(this.srvxtx, request, config);
View Full Code Here

Examples of jeeves.server.ServiceConfig

                       int to = startingFragment + count - 1;

                       Element request = new Element("request");
                       request.addContent(new Element("from").setText(from + ""));
                       request.addContent(new Element("to").setText(to + ""));
                       ServiceConfig config = new ServiceConfig();

                   if(Log.isDebugEnabled(Geonet.Z3950_SERVER))
                       Log.debug(Geonet.Z3950_SERVER, "Search request:\n"
                                       + Xml.getString(request));
                       // get result set
View Full Code Here

Examples of jeeves.server.ServiceConfig

    private static final SearchSuggestion searchSuggestionService = new SearchSuggestion();
    private ServiceContext context;

    @BeforeClass
    public static void initService() throws Exception {
        searchSuggestionService.init("", new ServiceConfig(Lists.newArrayList(
                createServiceConfigParam(SearchSuggestion.CONFIG_PARAM_DEFAULT_SEARCH_FIELD, "any"),
                createServiceConfigParam(SearchSuggestion.CONFIG_PARAM_MAX_NUMBER_OF_TERMS, "10000000"),
                createServiceConfigParam(SearchSuggestion.CONFIG_PARAM_THRESHOLD, "1000")
        )));
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.