Examples of stop()


Examples of org.socialmusicdiscovery.server.api.plugin.Plugin.stop()

     */
    public void stopPlugin(String pluginId) throws PluginException {
        Plugin plugin = runningPlugins.get(pluginId);
        if (plugin != null) {
            System.out.println("Stopping " + pluginId + ": " + plugin.getClass().getName());
            plugin.stop();
            runningPlugins.remove(pluginId);
            System.out.println("Stopped " + pluginId + ": OK");
        }
    }
}
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.logic.injections.database.DatabaseProvider.stop()

            System.out.println("\n\nExiting...\n");

            this.shutdown();

            provider.stop();
            System.out.flush();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here

Examples of org.sodbeans.phonemic.tts.TextToSpeech.stop()

            if (!compiler.isExecuting() && !compiler.isDebuggerActive())
               return;

            // Stop the debugger
            compiler.stopDebugger(false);
            speech.stop();
            String message = "Stop debugging";
            if (TextToSpeechOptions.isScreenReading()) {
                speech.speak(message, SpeechPriority.HIGHEST);
            }
        } else {
View Full Code Here

Examples of org.sonar.api.utils.TimeProfiler.stop()

    if (projectReferentials == null) {
      TimeProfiler profiler = new TimeProfiler(LOG).start("Load project referentials");
      try {
        projectReferentials = loader.load(reactor, taskProps);
      } finally {
        profiler.stop();
      }
    }
    return projectReferentials;
  }
}
View Full Code Here

Examples of org.sonar.core.profiling.StopWatch.stop()

      return super.execute().actionGet();
    } catch (Exception e) {
      throw new IllegalStateException(String.format("Fail to execute %s", toString()), e);
    } finally {
      if (profiling.isProfilingEnabled(Profiling.Level.BASIC)) {
        fullProfile.stop("%s", toString());
      }
    }
  }

  @Override
View Full Code Here

Examples of org.sonatype.ldaptestsuite.LdapServer.stop()

      throws Exception
  {
    for (Entry<String, LdapServer> entry : this.ldapServerMap.entrySet()) {
      LdapServer ldapServer = entry.getValue();
      logger.info("Stopping LDAP server: " + entry.getKey());
      ldapServer.stop();
      ldapServer = null;
    }
    this.ldapServerMap = null;

    super.tearDown();
View Full Code Here

Examples of org.sonatype.tests.http.server.fluent.Server.stop()

            containsInAnyOrder(ORG_SOMEORG_ARTIFACT_10_POM, ORG_SOMEORG_ARTIFACT_10_POM + ".sha1",
                ORG_SOMEORG_ARTIFACT_10_JAR, ORG_SOMEORG_ARTIFACT_10_JAR + ".sha1"));
      }
    }
    finally {
      server.stop();
    }
  }

  /**
   * A proxy "transitions" from having prefixes file to not having prefixes file (and not being scraped either). The
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.stop()

    template.convertAndSend("foo.end", "message");
    result = getResult(consumer);
    assertEquals("message", result);

    consumer.stop();
    cachingConnectionFactory.destroy();

  }

  @Test
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.stop()

    template.convertAndSend("retry.test.exchange", "retry.test.binding", "Hello, world!");
    template.convertAndSend("retry.test.exchange", "retry.test.binding", "Hello, world!");
    assertTrue(latch.await(10, TimeUnit.SECONDS));
    Thread.sleep(2000);
    assertEquals(0, ((Map) new DirectFieldAccessor(cache).getPropertyValue("map")).size());
    container.stop();
    ctx.close();
  }

  @SuppressWarnings("rawtypes")
  @Test
View Full Code Here

Examples of org.springframework.batch.core.JobExecution.stop()

    // wait a bit for the job to be started
    while (!(JobUtils.getStatus(victimJob).isRunning() || JobUtils.getStatus(victimJob).isFinished())) {
      Thread.sleep(WAIT_FOR_JOB_TO_START);
    }

    batchJob.stop();

    checkHadoopJobWasKilled(victimJob);
  }

  private static void checkHadoopJobWasKilled(Job victimJob) throws Exception {
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.