public class IgniteSchedulerImpl extends Object implements IgniteScheduler, Externalizable
IgniteScheduler implementation.| Constructor and Description |
|---|
IgniteSchedulerImpl()
Required by
Externalizable. |
IgniteSchedulerImpl(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
<R> IgniteFuture<R> |
callLocal(Callable<R> c)
Executes given callable on internal system thread pool asynchronously.
|
void |
readExternal(ObjectInput in) |
IgniteFuture<?> |
runLocal(Runnable r)
Executes given closure on internal system thread pool asynchronously.
|
Closeable |
runLocal(Runnable r,
long delay,
TimeUnit timeUnit)
Executes given closure after the delay.
|
<R> SchedulerFuture<R> |
scheduleLocal(Callable<R> job,
String ptrn)
Schedules job for execution using local cron-based scheduling.
|
SchedulerFuture<?> |
scheduleLocal(Runnable job,
String ptrn)
Schedules job for execution using local cron-based scheduling.
|
void |
writeExternal(ObjectOutput out) |
public IgniteSchedulerImpl()
Externalizable.public IgniteSchedulerImpl(GridKernalContext ctx)
ctx - Kernal context.public IgniteFuture<?> runLocal(Runnable r)
Note that class IgniteRunnable implements Runnable and class IgniteOutClosure
implements Callable interface.
runLocal in interface IgniteSchedulerr - Runnable to execute. If null - this method is no-op.IgniteScheduler.callLocal(Callable),
IgniteClosurepublic Closeable runLocal(@Nullable Runnable r, long delay, TimeUnit timeUnit)
Note that class IgniteRunnable implements Runnable
runLocal in interface IgniteSchedulerr - Runnable to execute.delay - Initial delay.timeUnit - Time granularity.public <R> IgniteFuture<R> callLocal(Callable<R> c)
Note that class IgniteRunnable implements Runnable and class IgniteOutClosure
implements Callable interface.
callLocal in interface IgniteSchedulerR - Type of the return value for the closure.c - Callable to execute. If null - this method is no-op.IgniteScheduler.runLocal(Runnable),
IgniteOutClosurepublic SchedulerFuture<?> scheduleLocal(Runnable job, String ptrn)
scheduleLocal in interface IgniteSchedulerjob - Job to schedule to run as a background cron-based job.
If null - this method is no-op.ptrn - Scheduling pattern in UNIX cron format with optional prefix {n1, n2}
where n1 is delay of scheduling in seconds and n2 is the number of execution. Both
parameters are optional.public <R> SchedulerFuture<R> scheduleLocal(Callable<R> job, String ptrn)
scheduleLocal in interface IgniteSchedulerjob - Job to schedule to run as a background cron-based job.ptrn - Scheduling pattern in UNIX cron format with optional prefix {n1, n2}
where n1 is delay of scheduling in seconds and n2 is the number of execution. Both
parameters are optional.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017