Examples of ConfigManager


Examples of com.cloudera.flume.master.ConfigManager

   *
   * TODO (jon) this implementation is less than idea, should use bulk update
   */
  @Override
  synchronized public void loadConfigFile(String from) throws IOException {
    ConfigManager cfgs = new ConfigManager();
    cfgs.loadConfigFile(from);
    String defaultFlow = FlumeConfiguration.get().getDefaultFlowName();
    for (Entry<String, FlumeConfigData> e : cfgs.getAllConfigs().entrySet()) {
      FlumeConfigData fcd = e.getValue();
      // Flow names aren't saved with this mechanism.
      try {
        setConfig(e.getKey(), defaultFlow, fcd.sourceConfig, fcd.sinkConfig);
      } catch (FlumeSpecException e1) {
View Full Code Here

Examples of com.cloudera.flume.master.ConfigManager

      this.statman = statman;
    }

    public ConfigurationManager createConfigMan() {
      // Create with all memory based config managers
      return new FailoverConfigurationManager(new ConfigManager(),
          new ConfigManager(), new ConsistentHashFailoverChainManager(3));
    }
View Full Code Here

Examples of com.cloudera.flume.master.ConfigManager

    FlumeNode node = new FlumeNode(cfg);
    node.start();

    // avoiding gossip ack manager until it shuts down cleanly.
    ConfigStore cfgStore = FlumeMaster.createConfigStore(cfg);
    FlumeMaster fm = new FlumeMaster(new CommandManager(), new ConfigManager(
        cfgStore), new StatusManager(), new MasterAckManager(), cfg);

    assertEquals(0, fm.getKnownNodes().size());
    fm.serve();
    LOG.info("flume master 1 open ");
    while (fm.getKnownNodes().size() == 0) {
      Clock.sleep(1000);
    }
    fm.shutdown();
    LOG.info("flume master 1 closed");

    ConfigStore cfgStore2 = FlumeMaster.createConfigStore(cfg);
    FlumeMaster fm2 = new FlumeMaster(new CommandManager(), new ConfigManager(
        cfgStore2), new StatusManager(), new MasterAckManager(), cfg);
    assertEquals(0, fm2.getKnownNodes().size());
    fm2.serve();
    LOG.info("flume master 2 open ");
    while (fm2.getKnownNodes().size() == 0) {
View Full Code Here

Examples of com.forgeessentials.core.config.ConfigManager

        // Check environment
        Environment.check();

        // Load configuration
        configManager = new ConfigManager(FEDIR, "main");
        configManager.registerLoader(configManager.getMainConfigName(), this);
        configManager.registerLoader(configManager.getMainConfigName(), new OutputHandler());

        // Initialize data-API
        StorageManager storageManager = new StorageManager(configManager.getConfig("DataStorage"));
View Full Code Here

Examples of com.jeceira.config.ConfigManager

            // it's okay
        }
       
        factory.setRepositoryName("jeceira-repo");
        factory.resolveConfigurationResource();
        ConfigManager config = factory.getConfigManager();
        DefaultResourceLoader loader = new DefaultResourceLoader();
        Resource res = loader.getResource("/jeceira.xml");
        assertEquals(res, factory.getConfiguration());
       
        factory = new RepositoryFactoryBean();
View Full Code Here

Examples of com.netflix.exhibitor.core.config.ConfigManager

    {
        System.out.println(getVersion());

        this.arguments = arguments;
        log = new ActivityLog(arguments.logWindowSizeLines);
        this.configManager = new ConfigManager(this, configProvider, arguments.configCheckMs);
        this.additionalUITabs = (additionalUITabs != null) ? ImmutableList.copyOf(additionalUITabs) : ImmutableList.<UITab>of();
        this.processOperations = new StandardProcessOperations(this);
        monitorRunningInstance = new MonitorRunningInstance(this);
        cleanupManager = new CleanupManager(this);
        indexCache = new IndexCache(log);
View Full Code Here

Examples of com.sun.sgs.impl.kernel.ConfigManager

                TransactionCoordinator.
                    TXN_DISABLE_PREPAREANDCOMMIT_OPT_PROPERTY,
                false);
       
        // Set our portion of the ConfigManager MXBean
        ConfigManager config = (ConfigManager) collectorHandle.getCollector().
                getRegisteredMBean(ConfigManager.MXBEAN_NAME);
        config.setStandardTxnTimeout(boundedTimeout);
    }
View Full Code Here

Examples of com.sun.sgs.impl.kernel.ConfigManager

            } catch (JMException e) {
                logger.logThrow(Level.CONFIG, e, "Could not register MBean");
            }
           
            /* Set the protocol descriptor in the ConfigMXBean. */
            ConfigManager config = (ConfigManager)
                    collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            if (config == null) {
                logger.log(Level.CONFIG, "Could not find ConfigMXBean");
            } else {
                config.setProtocolDescriptor(
        protocolAcceptor.getDescriptor().toString());
            }
     
  } catch (Exception e) {
      if (logger.isLoggable(Level.CONFIG)) {
View Full Code Here

Examples of com.sun.sgs.impl.kernel.ConfigManager

    // tasks complete
    void taskFinishedSuccess(boolean trans, long ready, long run, long lag) {
        // Don't include unbounded tasks in our statistics.
        if (firstTask) {
            firstTask = false;
            ConfigManager config = (ConfigManager)
                collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            standardTimeout = config.getStandardTxnTimeout();
        }
        if (run > standardTimeout) {
            return;
        }
       
View Full Code Here

Examples of com.sun.sgs.impl.kernel.ConfigManager

                                        WatchdogServiceStats.MXBEAN_NAME);
            } catch (JMException e) {
                logger.logThrow(Level.CONFIG, e, "Could not register MBean");
            }
            // set our data in the ConfigMXBean
            ConfigManager config = (ConfigManager)
                    collector.getRegisteredMBean(ConfigManager.MXBEAN_NAME);
            if (config == null) {
                logger.log(Level.CONFIG, "Could not find ConfigMXBean");
            } else {
                config.setJmxPort(jmxPort);
            }
           
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(Level.CONFIG,
         "node registered, host:{0}, localNodeId:{1}",
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.