Examples of addConfig()


Examples of com.dianping.cat.home.rule.entity.Rule.addConfig()

    for (MetricItem item : rule.getMetricItems()) {
      result.addMetricItem(item);
    }
    for (Config config : decorateConfigOnRead(rule.getConfigs())) {
      transformConfig(config);
      result.addConfig(config);
    }
    return result;
  }

  protected void decorateConfigOnDelete(List<Config> configs) {
View Full Code Here

Examples of com.oldratlee.cooma.Config.addConfig()

        Config config = Config.fromKv("protocol", "p1", "host", "1.2.3.4", "port", "1010", "path", "path1", "key2", "impl2");

        String echo = ext.yell(config, "haha");
        assertEquals("Ext1Impl2-yell", echo);

        config = config.addConfig("key1", "impl3");
        echo = ext.yell(config, "haha");
        assertEquals("Ext1Impl3-yell", echo);
    }

    @Test
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Configs.addConfig()

        return ( exists );
    }
    private static void addConfig(final ConfigContext acc, final Config dc) throws ConfigException {
        final Configs configs = ConfigAPIHelper.getDomainConfigBean(acc).getConfigs();
        dc.setName(SystemPropertyConstants.TEMPLATE_CONFIG_NAME);
        configs.addConfig(dc);
        configureDefaultJmsHost(dc);
        addClientHostNameProperty2SystemJmxConnector(dc);
    }
   
    private static void addClusterSupportElements(final ConfigContext acc) throws ConfigException {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Configs.addConfig()

                sourceConfigName, newConfigName)
           
            //Set the name of the newly created standalone configuration and add it to the
            //list of configurations
            newConfig.setName(newConfigName);
            configs.addConfig(newConfig, OVERWRITE);
            try {
                ConfigContext ctx = getConfigContext();
                if (ctx.isChanged())
                    ctx.flush();
                new AdminNotificationHelper(AdminService.getAdminService().getAdminContext()).sendNotification();
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Configs.addConfig()

        return ( exists );
    }
    private static void addConfig(final ConfigContext acc, final Config dc, final String dcName) throws ConfigException {
        final Configs configs = ConfigAPIHelper.getDomainConfigBean(acc).getConfigs();
        dc.setName(dcName);
        configs.addConfig(dc);
        configureDefaultJmsHost(dc);
        addClientHostNameProperty2SystemJmxConnector(dc);
    }

    private static void addClusterSupportElements(final ConfigContext acc) throws ConfigException {
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.addConfig()

   
    ConfigFactory configFactory = injector.getInstance(ConfigFactory.class);
    Config config = configFactory.createNew(cluster, "global",
        new HashMap<String,String>() {{ put("a", "b"); }});
    config.setVersionTag("version1");
    cluster.addConfig(config);
    cluster.addDesiredConfig("_test", config);
   
   
    clusters.mapHostsToCluster(hostNames, clusterName);
    Service hdfs = cluster.addService(serviceName);
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.addConfig()

    Config config = configFactory.createNew(cluster, "global",
      new HashMap<String, String>() {{
        put("a", "b");
      }});
    config.setVersionTag("version1");
    cluster.addConfig(config);
    cluster.addDesiredConfig("_test", config);


    clusters.mapHostsToCluster(hostNames, clusterName);
    Service hdfs = cluster.addService(serviceName);
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.addConfig()

        request.getProperties());
    config.setVersionTag(request.getVersionTag());

    config.persist();

    cluster.addConfig(config);
  }

  @Override
  public void createUsers(Set<UserRequest> requests) throws AmbariException {
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.addConfig()

      new HashMap<String, String>() {{
        put("key1", "value1");
      }});
    config2.setVersionTag("version1");

    cluster.addConfig(config1);
    cluster.addConfig(config2);

    Service hdfs = cluster.addService("HDFS");
    hdfs.persist();
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.addConfig()

        put("key1", "value1");
      }});
    config2.setVersionTag("version1");

    cluster.addConfig(config1);
    cluster.addConfig(config2);

    Service hdfs = cluster.addService("HDFS");
    hdfs.persist();

    Service mapred = cluster.addService("YARN");
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.