Example #1
0
  public void stop(final BundleContext context) throws Exception {
    trace("Trying to cancel " + rcs.getName() + " job");
    rcs.cancel();
    trace("Trying to cancel " + refreshJob.getName() + " job");
    refreshJob.cancel();

    rcs.join();
    refreshJob.join();

    trace("Jobs terminated");
    super.stop(context);
    plugin = null;
  }
Example #2
0
 private void setupRepoChangeScanner() {
   rcs = new RCS();
   rcs.schedule(RCS.REPO_SCAN_INTERVAL);
 }