public ProxyRepository getRepository() { return (ProxyRepository) super.getRepository(); } }
/** * Gets the repository. * * @return the repository */ public Repository getRepository() { return getEventSender(); }
@Override public String toString() { return getClass().getSimpleName() + "{" + "repositoryId=" + getRepository().getId() + '}'; } }
protected void inspect(final Event<?> evt) { final UpdateSiteProxyRepository updateSite = ((RepositoryEvent) evt).getRepository().adaptToFacet(UpdateSiteProxyRepository.class); if (updateSite != null && (evt instanceof RepositoryEventExpireNotFoundCaches || ((RepositoryConfigurationUpdatedEvent) evt).isRemoteUrlChanged())) { final ScheduledTask<?> mirrorTask = UpdateSiteMirrorTask.submit(scheduler, updateSite, false); log.debug("Submitted " + mirrorTask.getName()); } } }