Examples of ExecutorConfig


Examples of org.apache.aurora.gen.ExecutorConfig

        .setOwner(owner)
        .setJobName(jobName)
        .setNumCpus(cpus)
        .setRamMb(ramMb)
        .setDiskMb(diskMb)
        .setExecutorConfig(new ExecutorConfig("aurora", "config"))));
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.MesosTaskFactory.ExecutorConfig

  private MesosTaskFactory taskFactory;

  @Before
  public void setUp() {
    taskFactory = new MesosTaskFactoryImpl(new ExecutorConfig(EXECUTOR_PATH));
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.MesosTaskFactory.ExecutorConfig

    Module testModule = new AbstractModule() {
      @Override
      protected void configure() {
        bind(DriverFactory.class).toInstance(driverFactory);
        bind(Log.class).toInstance(log);
        bind(ExecutorConfig.class).toInstance(new ExecutorConfig("/executor/thermos"));
        install(new BackupModule(backupDir, SnapshotStoreImpl.class));
      }
    };

    ClientConfig zkClientConfig = ClientConfig
View Full Code Here

Examples of org.apache.aurora.scheduler.MesosTaskFactory.ExecutorConfig

    };

    Module configModule = new AbstractModule() {
      @Override
      protected void configure() {
        bind(ExecutorConfig.class).toInstance(new ExecutorConfig(THERMOS_EXECUTOR_PATH.get()));
      }
    };

    return ImmutableList.<Module>builder()
        .add(new BackupModule(SnapshotStoreImpl.class))
View Full Code Here

Examples of org.apache.aurora.scheduler.mesos.MesosTaskFactory.ExecutorConfig

                STATS_URL_PREFIX.get()))
        .add(new ZooKeeperClientModule(zkClientConfig))
        .add(new AbstractModule() {
          @Override
          protected void configure() {
            bind(ExecutorConfig.class).toInstance(new ExecutorConfig(THERMOS_EXECUTOR_PATH.get()));
          }
        })
        .add(getMesosModules())
        .build();
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.mesos.MesosTaskFactory.ExecutorConfig

      @Override
      protected void configure() {
        bind(DriverFactory.class).toInstance(driverFactory);
        bind(DriverSettings.class).toInstance(SETTINGS);
        bind(Log.class).toInstance(log);
        bind(ExecutorConfig.class).toInstance(new ExecutorConfig("/executor/thermos"));
        install(new BackupModule(backupDir, SnapshotStoreImpl.class));
      }
    };
    ClientConfig zkClientConfig = ClientConfig
        .create(ImmutableList.of(InetSocketAddress.createUnresolved("localhost", getPort())))
View Full Code Here

Examples of org.apache.aurora.scheduler.mesos.MesosTaskFactory.ExecutorConfig

  private MesosTaskFactory taskFactory;

  @Before
  public void setUp() {
    taskFactory = new MesosTaskFactoryImpl(new ExecutorConfig(EXECUTOR_PATH));
  }
View Full Code Here

Examples of org.apache.servicemix.executors.impl.ExecutorConfig

     * based on the default configuration used in ServiceMix 4
     */
    protected ExecutorFactory createExecutorFactory() {
        ExecutorFactoryImpl factory = new ExecutorFactoryImpl();

        ExecutorConfig config = factory.getDefaultConfig();
        config.setCorePoolSize(1);
        config.setMaximumPoolSize(16);
        config.setQueueSize(0);
        config.setBypassIfSynchronous(true);

        return factory;
    };
View Full Code Here

Examples of org.apache.servicemix.executors.impl.ExecutorConfig

        this.executorFactory = factory;
    }

    public void updated(Dictionary properties) throws ConfigurationException {
        if (executorFactory.getDefaultConfig() == null) {
            executorFactory.setDefaultConfig(new ExecutorConfig(true, null));
        }
        Map<String, ExecutorConfig> configs = new HashMap<String, ExecutorConfig>();
        if (properties != null) {
            for (Enumeration e = properties.keys(); e.hasMoreElements();) {
                String key = (String) e.nextElement();
View Full Code Here

Examples of org.apache.servicemix.executors.impl.ExecutorConfig

        executorFactory.setConfigs(configs);
    }

    private ExecutorConfig getConfig(Map<String, ExecutorConfig> configs, String key) {
        String name = key.substring(0, key.lastIndexOf('.'));
        ExecutorConfig config = configs.get(name);
        if (config == null) {
            config = new ExecutorConfig(false, executorFactory.getDefaultConfig());
            configs.put(name, config);
        }
        return config;
    }
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.