Examples of addListener()


Examples of bdjunit.framework.TestResult.addListener()

   }
            
    public TestResult doRun(Test suite) {
        TestResult result= new TestResult();
        //result.addListener(this.testListener);
        result.addListener(this);
        suite.run(result);
        // Tests Result
        if (result.failureCount() == 0 && result.errorCount() == 0)
        {   // all tests OK
            fStrBuf.append("\nOK");
View Full Code Here

Examples of cascading.flow.Flow.addListener()

     .addTailSink( wcPipe, wcTap );

    //run ambrose and cascading
    Flow tfidfFlow = flowConnector.connect( flowDef );
    EmbeddedAmbroseCascadingNotifier server = new EmbeddedAmbroseCascadingNotifier();
    tfidfFlow.addListener(server);
    tfidfFlow.addStepListener(server);
    tfidfFlow.complete();
    }
  }
View Full Code Here

Examples of cascading.flow.planner.BaseFlowStep.addListener()

    public void onStepRunning( FlowStep flowStep )
      {
      }
    };
    step.addListener( listener );

    assertTrue( "no listener found", step.hasListeners() );

    step.removeListener( listener );
View Full Code Here

Examples of ch.powerunit.impl.DefaultPowerUnitRunnerImpl.addListener()

            try {
                Class<?> cls = Class.forName(c);
                PowerUnitRunner r = new DefaultPowerUnitRunnerImpl(cls);
                DefaultTestResultListener def = new DefaultTestResultListener(
                        outputPath, DEFAULT_OUT);
                r.addListener(def);
                r.run();// NOSONAR
                success &= !def.isError();
                resumedSucess.append(def.getResumedSucess());
                resumedFailure.append(def.getResumedFailure());
                resumedSkipped.append(def.getResumedSkipped());
View Full Code Here

Examples of ch.qos.logback.classic.LoggerContext.addListener()

  private void installLevelChangePropagator() {
    LoggerContext context = getLoggerContext();
    final LevelChangePropagator levelChangePropagator = new LevelChangePropagator();
    levelChangePropagator.setResetJUL(true);
    levelChangePropagator.setContext(context);
    context.addListener(levelChangePropagator);
  }


  private void injectAppenders() {
    LoggerContext ctx = getLoggerContext();
View Full Code Here

Examples of co.cask.cdap.app.runtime.ProgramController.addListener()

        runtimeService.run(program, new SimpleProgramOptions(id.getId(), new BasicArguments(), userArguments, debug));

      ProgramController controller = runtimeInfo.getController();
      final String runId = controller.getRunId().getId();

      controller.addListener(new AbstractListener() {
        @Override
        public void stopped() {
          store.setStop(id, runId,
                        TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS),
                        ProgramController.State.STOPPED.toString());
View Full Code Here

Examples of com.adito.agent.client.tunneling.RemoteTunnelChannel.addListener()

  }

  public Channel createChannel(MultiplexedConnection connection, String type) {
    if(type.equals(RemoteTunnelChannel.CHANNEL_TYPE)) {
      RemoteTunnelChannel channel = new RemoteTunnelChannel(agent);
      channel.addListener(new RemoteTunnelChannelListener(agent));
      return channel;
    }
    return null;
  }
}
View Full Code Here

Examples of com.aelitis.azureus.core.instancemanager.AZInstanceManager.addListener()

  {
    AZInstanceManager i_man = azureus_core.getInstanceManager();
   
    final AZInstance  my_instance = i_man.getMyInstance();
   
    i_man.addListener(
      new AZInstanceManagerListener()
      {
        private InetAddress external_address;
       
        public void
View Full Code Here

Examples of com.aelitis.azureus.core.pairing.PairingManager.addListener()

          }
        };
       
      pairing_listener.somethingChanged( pm );
     
      pm.addListener( pairing_listener );

      setupPairing( p_sid, pairing_enable.getValue());
     
      ParameterListener update_pairing_listener =
        new ParameterListener()
View Full Code Here

Examples of com.aelitis.azureus.core.speedmanager.SpeedManager.addListener()

            {
              sm.reset();
            }
        });
       
     sm.addListener(
             new SpeedManagerListener()
             {
               private final SpeedManagerListener  listener = this;
              
               public void
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.