Examples of SUPERVISOR


Examples of br.ufra.pibid.modelo.entidade.Supervisor

    public SupervisorRN() {
    }

    public Supervisor novo() {
        return new Supervisor();
    }
View Full Code Here

Examples of co.paralleluniverse.actors.behaviors.Supervisor

    /**
     * Main loop: loops over all spaceships and initiates each spaceship's actions. Simulates an IO thread receiving commands over the net.
     */
    private void run() throws Exception {
        final Supervisor sup = new SupervisorActor(SupervisorActor.RestartStrategy.ONE_FOR_ONE) {
            @Override
            protected void init() throws InterruptedException, SuspendExecution {
                for (int i = 0; i < N; i++)
                    addChild(new Supervisor.ChildSpec("ship-" + i, Supervisor.ChildMode.PERMANENT, 5, 1, TimeUnit.SECONDS, 3, ActorSpec.of(Spaceship.class, Spaceships.this, i, phaser)));
            }
View Full Code Here

Examples of com.alibaba.jstorm.daemon.supervisor.Supervisor

      Map supervisorConf = deepCopyMap(conf);
      String supervisorDir = getTmpDir();
      tmpDirs.add(supervisorDir);
      supervisorConf.put(Config.STORM_LOCAL_DIR, supervisorDir);
      Supervisor supervisor = new Supervisor();
      IContext context = getLocalContext(supervisorConf);

      state.setNimbusServer(instance);
      state.setNimbus(instance.launcherLocalServer(nimbusConf,
          new DefaultInimbus()));
      state.setZookeeper(zookeeper);
      state.setConf(conf);
      state.setTmpDir(tmpDirs);
      state.setSupervisor(supervisor
          .mkSupervisor(supervisorConf, context));
      return state;
    } catch (Exception e) {
      LOG.error("prepare cluster error!", e);
      state.clean();
View Full Code Here

Examples of org.jgroups.protocols.rules.SUPERVISOR

    protected void destroy() {
        Util.close(b,a);
    }

    public void testFailureDetectionRule() {
        SUPERVISOR sva=(SUPERVISOR)a.getProtocolStack().findProtocol(SUPERVISOR.class);
        sva.installRule(500, new RestartFailureDetector());

        SUPERVISOR svb=(SUPERVISOR)b.getProtocolStack().findProtocol(SUPERVISOR.class);
        svb.installRule(500, new RestartFailureDetector());

        assertFailureDetectorRunning(a, b);

        System.out.println("stopping failure detection, waiting for failure detection restart rule to restart failure detection");
        stopFailureDetection(a, b);
View Full Code Here

Examples of org.jgroups.protocols.rules.SUPERVISOR

                                 new FD(),
                                 new NAKACK2().setValue("use_mcast_xmit", false),
                                 new UNICAST3(),
                                 new STABLE().setValue("max_bytes", 50000),
                                 new GMS().setValue("print_local_addr", false),
                                 new SUPERVISOR());
        ch.setName(name);
        return ch;
    }
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.