Examples of LifecycleModule


Examples of com.google.gerrit.lifecycle.LifecycleModule

    bind(WorkQueue.class);
    bind(TransferConfig.class);

    bind(IdentifiedUser.GenericFactory.class).in(SINGLETON);

    install(new LifecycleModule() {
      @Override
      protected void configure() {
        listener().to(LocalDiskRepositoryManager.Lifecycle.class);
        listener().to(CachePool.Lifecycle.class);
        listener().to(WorkQueue.Lifecycle.class);
View Full Code Here

Examples of com.google.gerrit.lifecycle.LifecycleModule

    bind(KeyPairProvider.class).toProvider(HostKeyProvider.class).in(SINGLETON);

    install(new DefaultCommandModule());

    install(new LifecycleModule() {
      @Override
      protected void configure() {
        listener().to(SshLog.class);
        listener().to(SshDaemon.class);
      }
View Full Code Here

Examples of com.google.gerrit.lifecycle.LifecycleModule

    bind(PublickeyAuthenticator.class).to(ToyPubKeyAuth.class);
    bind(KeyPairProvider.class).toProvider(HostKeyProvider.class).in(SINGLETON);

    install(new ToyDefaultCommandModule());

    install(new LifecycleModule() {
      @Override
      protected void configure() {
        listener().to(SshLog.class);
        listener().to(SshDaemon.class);
      }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.LifecycleModule

            if(lcms == null) return;
       

            final Set<ServerLifecycleModule> listenerSet = new HashSet<ServerLifecycleModule>();
            for(int i=0;i<lcms.length;i++) {
                final LifecycleModule next = lcms[i];
                   
                if ( isEnabled(next, mServerContext.getConfigContext()) ) {
                    int order = Integer.MAX_VALUE;
                    final String strOrder = next.getLoadOrder();
                    if (strOrder != null) {
                        try {
                            order = Integer.parseInt(strOrder);
                        } catch(NumberFormatException nfe) {
                            nfe.printStackTrace();
                        }
                    }
                    final ServerLifecycleModule slcm =
                        new ServerLifecycleModule(mServerContext, next.getName(), next.getClassName());
                    slcm.setLoadOrder(order);
                    slcm.setClasspath(next.getClasspath());
                    slcm.setIsFatal(next.isIsFailureFatal());
                       
                    final ElementProperty[] s = next.getElementProperty();
                    if(s != null) {
                        for(int j=0;j< s.length;j++) {
                            final ElementProperty next1 = s[j];
                            slcm.setProperty(next1.getName(), next1.getValue());
                        }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.LifecycleModule

        long b = System.currentTimeMillis();

        _logger.log(Level.FINE, "synchronization.start.download.bits", appName);

        LifecycleModule app = null;
        try {
            app = ((Domain)_ctx.getRootConfigBean()).
                                    getApplications().
                                    getLifecycleModuleByName(appName);
        } catch (ConfigException ce) {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.LifecycleModule

                    arr.add(ep);
                }
            }
            if(arr.size()>0)
            {
                LifecycleModule lcm = (LifecycleModule)ApplicationHelper.findApplication(ctx, name);
                lcm.setElementProperty((ElementProperty[])arr.toArray(new ElementProperty[arr.size()]));
            }
        }

        final String isEnabled = (String)values.get(ENABLED);
        boolean enabled = Boolean.valueOf(isEnabled).booleanValue();
View Full Code Here

Examples of com.twitter.common.application.modules.LifecycleModule

    statsProvider = createMock(StatsProvider.class);
    module = new SlaModule(Amount.of(5L, Time.MILLISECONDS));
    injector = Guice.createInjector(
        ImmutableList.<Module>builder()
            .add(module)
            .add(new LifecycleModule())
            .add(new AppLauncherModule())
            .add(new AbstractModule() {
              @Override
              protected void configure() {
                PubsubTestUtil.installPubsub(binder());
View Full Code Here

Examples of com.twitter.common.application.modules.LifecycleModule

        .withCredentials(ZooKeeperClient.digestCredentials("mesos", "mesos"));
    injector = Guice.createInjector(
        ImmutableList.<Module>builder()
            .addAll(SchedulerMain.getModules(
                CLUSTER_NAME, SERVERSET_PATH, zkClientConfig, STATS_URL_PREFIX))
            .add(new LifecycleModule())
            .add(new AppLauncherModule())
            .add(new ZooKeeperClientModule(zkClientConfig))
            .add(testModule)
            .build()
    );
View Full Code Here

Examples of com.twitter.common.application.modules.LifecycleModule

    Injector injector = Guice.createInjector(
        new ServletModule(),
        new LogModule(),
        new StatsModule(),
        new HttpModule(),
        new LifecycleModule(),
        new AbstractModule() {
          <T> T bindMock(Class<T> clazz) {
            T mock = createMock(clazz);
            bind(clazz).toInstance(mock);
            return mock;
View Full Code Here

Examples of com.twitter.common.application.modules.LifecycleModule

        .withCredentials(ZooKeeperClient.digestCredentials("mesos", "mesos"));
    final SchedulerMain main = SchedulerMain.class.newInstance();
    injector = Guice.createInjector(
        ImmutableList.<Module>builder()
            .addAll(main.getModules(CLUSTER_NAME, SERVERSET_PATH, zkClientConfig, STATS_URL_PREFIX))
            .add(new LifecycleModule())
            .add(new AppLauncherModule())
            .add(new ZooKeeperClientModule(zkClientConfig))
            .add(testModule)
            .build()
    );
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.