- 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 Set<JobKey> getJobKeys(GroupMatcher<JobKey> matcher) throws SchedulerException { try { return getRemoteScheduler().getJobKeys(matcher); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public Set<JobKey> getJobKeys(GroupMatcher<JobKey> matcher) throws SchedulerException { try { return getRemoteScheduler().getJobKeys(matcher); } catch (RemoteException re) { throw invalidateHandleCreateException( "Error communicating with remote scheduler.", re); } }