- 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 void triggerJob(JobKey jobKey, JobDataMap data) throws SchedulerException { try { getRemoteScheduler().triggerJob(jobKey, data); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void triggerJob(JobKey jobKey, JobDataMap data) throws SchedulerException { try { getRemoteScheduler().triggerJob(jobKey, data); } 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 void triggerJob(String jobName, String groupName, JobDataMap data) throws SchedulerException { try { getRemoteScheduler().triggerJob(schedCtxt, jobName, groupName, data); } 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 void triggerJob(String jobName, String groupName, JobDataMap data) throws SchedulerException { try { getRemoteScheduler().triggerJob(schedCtxt, jobName, groupName, data); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }