- Common ways to obtain RemotableQuartzScheduler
private void myMethod () {RemotableQuartzScheduler r =
Registry registry;String name;(RemotableQuartzScheduler) registry.lookup(name)
QuartzScheduler quartzScheduler;(RemotableQuartzScheduler) UnicastRemoteObject.exportObject(quartzScheduler)
QuartzScheduler quartzScheduler;QuartzSchedulerResources quartzSchedulerResources;(RemotableQuartzScheduler) UnicastRemoteObject.exportObject(quartzScheduler, quartzSchedulerResources.getRMIServerPort())
- Smart code suggestions by Codota
}
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public Date rescheduleJob(TriggerKey triggerKey, Trigger newTrigger) throws SchedulerException { try { return getRemoteScheduler().rescheduleJob(triggerKey, newTrigger); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public Date rescheduleJob(TriggerKey triggerKey, Trigger newTrigger) throws SchedulerException { try { return getRemoteScheduler().rescheduleJob(triggerKey, newTrigger); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ public Date rescheduleJob(String triggerName, String groupName, Trigger newTrigger) throws SchedulerException { try { return getRemoteScheduler().rescheduleJob(schedCtxt, triggerName, groupName, newTrigger); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ public Date rescheduleJob(String triggerName, String groupName, Trigger newTrigger) throws SchedulerException { try { return getRemoteScheduler().rescheduleJob(schedCtxt, triggerName, groupName, newTrigger); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }