Examples of Props


Examples of jodd.props.Props

      log.info("Madvoc web application: " + webAppClass.getName());
    }

    // params
    if (paramsFiles != null) {
      Props params = loadMadvocParams(paramsFiles);
      webapp.defineParams(params);
    }

    // configure
    webapp.registerMadvocComponents();
View Full Code Here

Examples of kafka.etl.Props

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    SimpleKafkaETLJob job = new SimpleKafkaETLJob("SimpleKafkaETLJob",
        props);
    job.execute();
  }
View Full Code Here

Examples of kafka.etl.Props

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    DataGenerator job = new DataGenerator("DataGenerator", props);
    job.run();
  }
View Full Code Here

Examples of org.eclipse.jetty.start.Props

    private final Path basePath;

    public CommandLineConfigSource(String rawargs[])
    {
        this.args = new RawArgs();
        this.props = new Props();
        for (String arg : rawargs)
        {
            this.args.addArg(arg,ORIGIN_CMD_LINE);
            this.props.addPossibleProperty(arg,ORIGIN_CMD_LINE);
        }
View Full Code Here

Examples of org.eclipse.jetty.start.Props

    public DirConfigSource(String id, Path dir, int weight, boolean canHaveArgs) throws IOException
    {
        this.id = id;
        this.dir = dir.toAbsolutePath();
        this.weight = weight;
        this.props = new Props();

        this.args = new RawArgs();

        if (canHaveArgs)
        {
View Full Code Here

Examples of org.rhq.helpers.pluginGen.Props

         }
      }
     
      PluginGen pg = new PluginGen();
     
      Props root = new Props();
      root.setPluginName("Infinispan");
      root.setPluginDescription("Supports management and monitoring of Infinispan");
      root.setName("Infinispan Cache Manager");
      root.setPkg("org.infinispan.jopr");
      root.setDependsOnJmxPlugin(true);
      root.setManualAddOfResourceType(true);
      root.setDiscoveryClass("CacheManagerDiscovery");
      root.setComponentClass("CacheManagerComponent");
      root.setSingleton(true);
      root.setCategory(ResourceCategory.SERVER);
      populateMetricsAndOperations(globalClasses, root, false);
     
      SimpleProperty connect = new SimpleProperty("connectorAddress");
      connect.setDescription("JMX Remoting address of the remote Infinispan Instance");
      connect.setReadOnly(false);
      root.getSimpleProps().add(connect);
      
      SimpleProperty objectName = new SimpleProperty("objectName");
      objectName.setDescription("ObjectName of the Manager");
      objectName.setType("string");
      objectName.setReadOnly(true);
      root.getSimpleProps().add(objectName);
      Template defaultTemplate = new Template("defaultManualDiscovery");
      defaultTemplate.setDescription("The default setup for Infinispan");
      SimpleProperty connect2 = new SimpleProperty("connectorAddress");
      connect2.setDisplayName("URL of the remote server");
      connect2.setDefaultValue("service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:6996/jmxrmi");
      defaultTemplate.getSimpleProps().add(connect2);
      root.getTemplates().add(defaultTemplate);

      Props cache = new Props();
      cache.setName("Infinispan Cache");
      cache.setPkg("org.infinispan.jopr");
      cache.setDependsOnJmxPlugin(true);
      cache.setDiscoveryClass("CacheDiscovery");
      cache.setComponentClass("CacheComponent");
      cache.setSingleton(false);
      cache.setCategory(ResourceCategory.SERVICE);
      populateMetricsAndOperations(namedCacheClasses, cache, true);
     
      root.getChildren().add(cache);
        
      pg.createFile(root, "descriptor", "rhq-plugin.xml", "../../../src/main/resources/META-INF");
View Full Code Here

Examples of org.rhq.helpers.pluginGen.Props

         }
      }
     
      PluginGen pg = new PluginGen();
     
      Props root = new Props();
      root.setPluginName("Infinispan");
      root.setPluginDescription("Supports management and monitoring of Infinispan");
      root.setName("Infinispan Cache Manager");
      root.setPkg("org.infinispan.jopr");
      root.setDependsOnJmxPlugin(true);
      root.setDiscoveryClass("CacheManagerDiscovery");
      root.setComponentClass("CacheManagerComponent");
      root.setSingleton(false);
      root.setCategory(ResourceCategory.SERVICE);
      Set<TypeKey> servers = new HashSet<TypeKey>();
      servers.add(new TypeKey("JMX Server", "JMX"));
      servers.add(new TypeKey("JBossAS Server", "JBossAS"));
      servers.add(new TypeKey("JBossAS Server", "JBossAS5"));
      root.setRunsInsides(servers);
      populateMetricsAndOperations(globalClasses, root, false);

      Props cache = new Props();
      cache.setName("Infinispan Cache");
      cache.setPkg("org.infinispan.jopr");
      cache.setDependsOnJmxPlugin(true);
      cache.setDiscoveryClass("CacheDiscovery");
      cache.setComponentClass("CacheComponent");
      cache.setSingleton(false);
      cache.setCategory(ResourceCategory.SERVICE);
      populateMetricsAndOperations(namedCacheClasses, cache, true);
     
      root.getChildren().add(cache);

      String metaInfDir = "../../../src/main/resources/META-INF";
View Full Code Here

Examples of org.sonar.process.Props

    Properties properties = new Properties();
    properties.setProperty(ProcessConstants.CLUSTER_NAME, clusterName);
    properties.setProperty(ProcessConstants.CLUSTER_NODE_NAME, "test");
    properties.setProperty(ProcessConstants.SEARCH_PORT, clusterPort.toString());
    properties.setProperty(ProcessConstants.PATH_HOME, homeDir.getAbsolutePath());
    searchServer = new SearchServer(new Props(properties));
  }
View Full Code Here

Examples of voldemort.utils.Props

        repo.addNodeStore(1, new InMemoryStorageEngine<ByteArray, byte[], byte[]>(STORE_NAME));
        repo.addNodeStore(2, new FailingStore<ByteArray, byte[], byte[]>(STORE_NAME));

        MetadataStore metadataStore = ServerTestUtils.createMetadataStore(cluster,
                                                                          ServerTestUtils.getStoreDefs(1));
        Props props = new Props();
        props.put("node.id", 0);
        props.put("voldemort.home", "/");
        pusher = new BlockingSlopPusherJob(repo,
                                           metadataStore,
                                           new NoopFailureDetector(),
                                           new VoldemortConfig(props),
                                           new ScanPermitWrapper(1));
View Full Code Here

Examples of voldemort.utils.Props

    public void setUp() throws Exception {
        bdbMasterDir = TestUtils.createTempDir();
        FileDeleteStrategy.FORCE.delete(bdbMasterDir);

        // lets use all the default values.
        Props props = new Props();
        props.put("node.id", 1);
        props.put("voldemort.home", "test/common/voldemort/config");
        VoldemortConfig voldemortConfig = new VoldemortConfig(props);
        voldemortConfig.setBdbCacheSize(10 * 1024 * 1024);
        voldemortConfig.setBdbOneEnvPerStore(true);
        voldemortConfig.setBdbDataDirectory(bdbMasterDir.toURI().getPath());
        voldemortConfig.setBdbPrefixKeysWithPartitionId(true);
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.