Examples of NexusStoppedEvent


Examples of org.sonatype.nexus.proxy.events.NexusStoppedEvent

  @Override
  protected void tearDown()
      throws Exception
  {
    // FIXME: This needs to be fired as many component relies on this to cleanup
    eventBus.post(new NexusStoppedEvent(null));
    try {
      lookup(SecuritySystem.class).stop();
      lookup(CacheManager.class).shutdown();
    }
    finally {
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStoppedEvent

   * Condition is satisfied when negated is not satisfied.
   */
  @Test
  public void unsatisfiedWhenNexusStopped() {
    underTest.handle(new NexusStartedEvent(this));
    underTest.handle(new NexusStoppedEvent(this));
    assertThat(underTest.isSatisfied(), is(false));

    verifyEventBusEvents(satisfied(underTest), unsatisfied(underTest));
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStoppedEvent

    eventBus.post(new NexusStoppingEvent(this));

    // kill services + notify
    nexusScheduler.shutdown();

    eventBus.post(new NexusStoppedEvent(this));
    eventSubscriberHost.stop();

    nexusConfiguration.dropInternals();
    securitySystem.stop();
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStoppedEvent

  protected void tearDown()
      throws Exception
  {
    // FIXME: This needs to be fired as many component relies on this to cleanup (like EHCache)
    if (eventBus != null) {
      eventBus.post(new NexusStoppedEvent(null));
    }
    waitForTasksToStop();
    super.tearDown();
    // remove Shiro thread locals, as things like DelegatingSubjects might lead us to old instance of SM
    ThreadContext.remove();
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStoppedEvent

  public void passivateWhenNexusIsShutdown()
      throws Exception
  {
    underTest.enable();
    underTest.activate();
    eventBus.post(new NexusStoppedEvent(this));

    verify(capability).onPassivate();
  }
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.