| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelFromAddress(String schedulerName,
String taskName,
Address address,
boolean mayInterruptIfRunning)
Cancels further execution and scheduling of the task
|
boolean |
cancelFromPartition(String schedulerName,
String taskName,
boolean mayInterruptIfRunning)
Cancels further execution and scheduling of the task
|
void |
disposeFromAddress(String schedulerName,
String taskName,
Address address)
Dispose the task from the scheduler
|
void |
disposeFromPartition(String schedulerName,
String taskName)
Dispose the task from the scheduler
|
Object |
getAllScheduledFutures(String schedulerName)
Returns all scheduled tasks in for a given scheduler in the given member.
|
long |
getDelayFromAddress(String schedulerName,
String taskName,
Address address)
Returns the ScheduledFuture's delay in nanoseconds for the task in the scheduler.
|
long |
getDelayFromPartition(String schedulerName,
String taskName)
Returns the ScheduledFuture's delay in nanoseconds for the task in the scheduler.
|
Data |
getResultFromAddress(String schedulerName,
String taskName,
Address address)
Fetches the result of the task (
Callable)
The call will blocking until the result is ready. |
Data |
getResultFromPartition(String schedulerName,
String taskName)
Fetches the result of the task (
Callable)
The call will blocking until the result is ready. |
Object |
getStatsFromAddress(String schedulerName,
String taskName,
Address address)
Returns statistics of the task
|
Object |
getStatsFromPartition(String schedulerName,
String taskName)
Returns statistics of the task
|
boolean |
isCancelledFromAddress(String schedulerName,
String taskName,
Address address)
Checks whether a task as identified from the given handler is already cancelled.
|
boolean |
isCancelledFromPartition(String schedulerName,
String taskName)
Checks whether a task as identified from the given handler is already cancelled.
|
boolean |
isDoneFromAddress(String schedulerName,
String taskName,
Address address)
Checks whether a task is done.
|
boolean |
isDoneFromPartition(String schedulerName,
String taskName)
Checks whether a task is done.
|
void |
shutdown(String schedulerName,
Address address)
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
|
void |
submitToAddress(String schedulerName,
Address address,
byte type,
String taskName,
Data task,
long initialDelayInMillis,
long periodInMillis)
Submits the task to a member for execution, member is provided in the form of an address.
|
void |
submitToPartition(String schedulerName,
byte type,
String taskName,
Data task,
long initialDelayInMillis,
long periodInMillis)
Submits the task to partition for execution, partition is chosen based on multiple criteria of the given task.
|
@Since(value="1.4") void shutdown(String schedulerName, Address address)
schedulerName - Name of the scheduler.address - The cluster member where the shutdown for this scheduler will be sent.@Since(value="1.4") void submitToPartition(String schedulerName, byte type, String taskName, Data task, long initialDelayInMillis, long periodInMillis)
schedulerName - The name of the scheduler.type - type of schedule logic, values 0 for SINGLE_RUN, 1 for AT_FIXED_RATEtaskName - The name of the tasktask - The data form of the Callable or Runnable task to be executed on that schedulerinitialDelayInMillis - initial delay in millisecondsperiodInMillis - period between each run in milliseconds@Since(value="1.4") void submitToAddress(String schedulerName, Address address, byte type, String taskName, Data task, long initialDelayInMillis, long periodInMillis)
schedulerName - The name of the scheduler.address - The address of the member where the task will get scheduled.type - type of schedule logic, values 0 for SINGLE_RUN, 1 for AT_FIXED_RATEtaskName - The name of the tasktask - The data form of the Callable or Runnable task to be executed on that schedulerinitialDelayInMillis - initial delay in millisecondsperiodInMillis - period between each run in milliseconds@Since(value="1.4") Object getAllScheduledFutures(String schedulerName)
schedulerName - The name of the scheduler.@Since(value="1.4") Object getStatsFromPartition(String schedulerName, String taskName)
schedulerName - The name of the scheduler.taskName - The name of the task@Since(value="1.4") Object getStatsFromAddress(String schedulerName, String taskName, Address address)
schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.@Since(value="1.4") long getDelayFromPartition(String schedulerName, String taskName)
schedulerName - The name of the scheduler.taskName - The name of the task@Since(value="1.4") long getDelayFromAddress(String schedulerName, String taskName, Address address)
schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.@Since(value="1.4") boolean cancelFromPartition(String schedulerName, String taskName, boolean mayInterruptIfRunning)
schedulerName - The name of the scheduler.taskName - The name of the taskmayInterruptIfRunning - A boolean flag to indicate whether the task should be interrupted.@Since(value="1.4") boolean cancelFromAddress(String schedulerName, String taskName, Address address, boolean mayInterruptIfRunning)
schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.mayInterruptIfRunning - A boolean flag to indicate whether the task should be interrupted.@Since(value="1.4") boolean isCancelledFromPartition(String schedulerName, String taskName)
schedulerName - The name of the scheduler.taskName - The name of the task@Since(value="1.4") boolean isCancelledFromAddress(String schedulerName, String taskName, Address address)
schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.@Since(value="1.4") boolean isDoneFromPartition(String schedulerName, String taskName)
schedulerName - The name of the scheduler.taskName - The name of the taskjava.util.concurrent.Future#cancel(boolean)}@Since(value="1.4") boolean isDoneFromAddress(String schedulerName, String taskName, Address address)
schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.java.util.concurrent.Future#cancel(boolean)}@Since(value="1.4") Data getResultFromPartition(String schedulerName, String taskName)
Callable)
The call will blocking until the result is ready.schedulerName - The name of the scheduler.taskName - The name of the taskData.@Since(value="1.4") Data getResultFromAddress(String schedulerName, String taskName, Address address)
Callable)
The call will blocking until the result is ready.schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.Data.@Since(value="1.4") void disposeFromPartition(String schedulerName, String taskName)
schedulerName - The name of the scheduler.taskName - The name of the task@Since(value="1.4") void disposeFromAddress(String schedulerName, String taskName, Address address)
schedulerName - The name of the scheduler.taskName - The name of the taskaddress - The address of the member where the task will get scheduled.Copyright © 2018. All Rights Reserved.