Examples of UpdateSiteProxyRepository


Examples of org.sonatype.nexus.plugins.p2.repository.UpdateSiteProxyRepository

  public void on(final RepositoryEventExpireNotFoundCaches e) {
    inspect(e);
  }

  protected void inspect(final Event<?> evt) {
    final UpdateSiteProxyRepository updateSite =
        ((RepositoryEvent) evt).getRepository().adaptToFacet(UpdateSiteProxyRepository.class);

    if (updateSite != null
        && (evt instanceof RepositoryEventExpireNotFoundCaches ||
        ((RepositoryConfigurationUpdatedEvent) evt).isRemoteUrlChanged())) {
View Full Code Here

Examples of org.sonatype.nexus.plugins.p2.repository.UpdateSiteProxyRepository

  @AllowConcurrentEvents
  public void inspect(final RepositoryRegistryEventAdd evt) {
    if (!systemStatusProvider.get().isNexusStarted()) {
      return;
    }
    final UpdateSiteProxyRepository updateSite =
        ((RepositoryRegistryEventAdd) evt).getRepository().adaptToFacet(UpdateSiteProxyRepository.class);

    if (updateSite != null) {
      updateSite.setExposed(false);
      final ScheduledTask<?> mirrorTask = UpdateSiteMirrorTask.submit(scheduler, updateSite, true);
      log.debug("Submitted " + mirrorTask.getName());
    }
  }
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.