Package org.quartz

Examples of org.quartz.UnableToInterruptJobException


                job = jec.getJobInstance();
                if (job instanceof InterruptableJob) {
                    ((InterruptableJob)job).interrupt();
                    interrupted = true;
                } else {
                    throw new UnableToInterruptJobException(
                            "Job " + jobDetail.getKey() +
                            " can not be interrupted, since it does not implement " +                       
                            InterruptableJob.class.getName());
                }
            }                       
View Full Code Here


                job = jec.getJobInstance();
                if (job instanceof InterruptableJob) {
                    ((InterruptableJob)job).interrupt();
                    return true;
                } else {
                    throw new UnableToInterruptJobException(
                        "Job " + jec.getJobDetail().getKey() +
                        " can not be interrupted, since it does not implement " +                       
                        InterruptableJob.class.getName());
                }
            }                       
View Full Code Here

                job = jec.getJobInstance();
                if (job instanceof InterruptableJob) {
                    ((InterruptableJob)job).interrupt();
                    interrupted = true;
                } else {
                    throw new UnableToInterruptJobException(
                        "Job '"
                        + jobName
                        + "' of group '"
                        + groupName
                        + "' can not be interrupted, since it does not implement "
View Full Code Here

/* 1887 */       job = jec.getJobInstance();
/* 1888 */       if ((job instanceof InterruptableJob)) {
/* 1889 */         ((InterruptableJob)job).interrupt();
/* 1890 */         interrupted = true; continue;
/*      */       }
/* 1892 */       throw new UnableToInterruptJobException("Job '" + jobName + "' of group '" + groupName + "' can not be interrupted, since it does not implement " + InterruptableJob.class.getName());
/*      */     }
/*      */
/* 1904 */     return interrupted;
/*      */   }
View Full Code Here

/*      */   {
/*      */     try
/*      */     {
/* 1074 */       return getRemoteScheduler().interrupt(this.schedCtxt, jobName, groupName);
/*      */     } catch (RemoteException re) {
/* 1076 */       throw new UnableToInterruptJobException(invalidateHandleCreateException("Error communicating with remote scheduler.", re));
/*      */     } catch (SchedulerException se) {
/*      */     }
/* 1079 */     throw new UnableToInterruptJobException(se);
/*      */   }
View Full Code Here

     */
    public boolean interrupt(String jobName, String groupName) throws UnableToInterruptJobException  {
        try {
            return getRemoteScheduler().interrupt(schedCtxt, jobName, groupName);
        } catch (RemoteException re) {
            throw new UnableToInterruptJobException(invalidateHandleCreateException(
                    "Error communicating with remote scheduler.", re));
        } catch (SchedulerException se) {
            throw new UnableToInterruptJobException(se);
        }
    }
View Full Code Here

                job = jec.getJobInstance();
                if (job instanceof InterruptableJob) {
                    ((InterruptableJob)job).interrupt();
                    interrupted = true;
                } else {
                    throw new UnableToInterruptJobException(
                        "Job '"
                        + jobName
                        + "' of group '"
                        + groupName
                        + "' can not be interrupted, since it does not implement "
View Full Code Here

            return ((Boolean)invoke(
                    "interrupt",
                    new Object[] { schedulingContext, jobName, groupName},
                    new String[] { SchedulingContext.class.getName(), String.class.getName(), String.class.getName() })).booleanValue();
        } catch (SchedulerException se) {
            throw new UnableToInterruptJobException(se);
        }
    }
View Full Code Here

     */
    public boolean interrupt(String jobName, String groupName) throws UnableToInterruptJobException  {
        try {
            return getRemoteScheduler().interrupt(schedCtxt, jobName, groupName);
        } catch (RemoteException re) {
            throw new UnableToInterruptJobException(invalidateHandleCreateException(
                    "Error communicating with remote scheduler.", re));
        } catch (SchedulerException se) {
            throw new UnableToInterruptJobException(se);
        }
    }
View Full Code Here

            return ((Boolean)invoke(
                    "interrupt",
                    new Object[] { schedulingContext, jobName, groupName},
                    new String[] { SchedulingContext.class.getName(), String.class.getName(), String.class.getName() })).booleanValue();
        } catch (SchedulerException se) {
            throw new UnableToInterruptJobException(se);
        }
    }
View Full Code Here

TOP

Related Classes of org.quartz.UnableToInterruptJobException

Copyright © 2018 www.massapicom. 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.