Examples of ExpireCacheTask


Examples of org.sonatype.nexus.tasks.ExpireCacheTask

        logMessage =
            "The Local URL of repository \"" + event.getRepository().getName() + "\" (id="
                + event.getRepository().getId() + ") has been changed, expiring its caches.";
      }

      ExpireCacheTask task = nexusScheduler.createTaskInstance(ExpireCacheTask.class);
      task.setRepositoryId(event.getRepository().getId());
      nexusScheduler.submit(taskName, task);
      log.info(logMessage);
    }
  }
View Full Code Here

Examples of org.sonatype.nexus.tasks.ExpireCacheTask

  @Override
  @DELETE
  public void delete(Context context, Request request, Response response)
      throws ResourceException
  {
    ExpireCacheTask task = getNexusScheduler().createTaskInstance(ExpireCacheTask.class);

    String repositoryId = getRepositoryId(request);
    if (repositoryId == null) {
      repositoryId = getRepositoryGroupId(request);
    }
    task.setRepositoryId(repositoryId);

    task.setResourceStorePath(getResourceStorePath(request));

    handleDelete(task, request);
  }
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.