public boolean removeGlobalJobListener(String name) throws Exception { return scheduler_.getListenerManager().removeJobListener(name); }
public boolean removeJobListener(String name) throws Exception { return scheduler_.getListenerManager().removeJobListener(name); }
@Override public void removeSchedule(TenantIdentifier tenant, JobIdentifier job) throws DCSecurityException { logger.info("Removing schedule for job: " + job); final String jobName = job.getName(); final String tenantId = tenant.getId(); final String jobListenerName = tenantId + "." + jobName; try { _scheduler.deleteJob(new JobKey(jobName, tenantId)); _scheduler.getListenerManager().removeJobListener(jobListenerName); } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } throw new IllegalStateException("Failed to remove job schedule: " + job, e); } removeHotFolder(jobListenerName); }