
public class FaultTolerantScheduler extends Object
| Constructor and Description |
|---|
FaultTolerantScheduler(String name,
int corePoolSize,
MobicentsCluster cluster,
byte priority,
TransactionManager txManager,
TimerTaskFactory timerTaskFactory) |
FaultTolerantScheduler(String name,
int corePoolSize,
MobicentsCluster cluster,
byte priority,
TransactionManager txManager,
TimerTaskFactory timerTaskFactory,
int purgePeriod) |
FaultTolerantScheduler(String name,
int corePoolSize,
MobicentsCluster cluster,
byte priority,
TransactionManager txManager,
TimerTaskFactory timerTaskFactory,
int purgePeriod,
ThreadFactory threadFactory) |
FaultTolerantScheduler(String name,
int corePoolSize,
MobicentsCluster cluster,
byte priority,
TransactionManager txManager,
TimerTaskFactory timerTaskFactory,
ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
TimerTask |
cancel(Serializable taskID)
Cancels a local running task with the specified ID.
|
TimerTask |
getLocalRunningTask(Serializable taskId)
Retrieves a local running task by its id
|
Set<TimerTask> |
getLocalRunningTasks()
Retrieves a set containing all local running tasks.
|
String |
getName()
Retrieves the scheduler name.
|
byte |
getPriority()
Retrieves the priority of the scheduler as a client local listener of the mobicents cluster.
|
TimerTaskData |
getTimerTaskData(Serializable taskID)
Retrieves the
TimerTaskData associated with the specified taskID. |
TimerTaskFactory |
getTimerTaskFactory()
Retrieves the timer task factory associated with this scheduler.
|
TransactionManager |
getTransactionManager()
Retrieves the jta tx manager.
|
void |
schedule(TimerTask task) |
void |
schedule(TimerTask task,
boolean checkIfAlreadyPresent)
Schedules the specified task.
|
void |
shutdownNow() |
void |
stop() |
String |
toDetailedString() |
String |
toString() |
public FaultTolerantScheduler(String name, int corePoolSize, MobicentsCluster cluster, byte priority, TransactionManager txManager, TimerTaskFactory timerTaskFactory)
name - corePoolSize - cluster - priority - txManager - timerTaskFactory - public FaultTolerantScheduler(String name, int corePoolSize, MobicentsCluster cluster, byte priority, TransactionManager txManager, TimerTaskFactory timerTaskFactory, ThreadFactory threadFactory)
name - corePoolSize - cluster - priority - txManager - timerTaskFactory - threadFactory - public FaultTolerantScheduler(String name, int corePoolSize, MobicentsCluster cluster, byte priority, TransactionManager txManager, TimerTaskFactory timerTaskFactory, int purgePeriod)
name - corePoolSize - cluster - priority - txManager - timerTaskFactory - purgePeriod - public FaultTolerantScheduler(String name, int corePoolSize, MobicentsCluster cluster, byte priority, TransactionManager txManager, TimerTaskFactory timerTaskFactory, int purgePeriod, ThreadFactory threadFactory)
name - corePoolSize - cluster - priority - txManager - timerTaskFactory - purgePeriod - threadFactory - public TimerTaskData getTimerTaskData(Serializable taskID)
TimerTaskData associated with the specified taskID.taskID - public Set<TimerTask> getLocalRunningTasks()
public TimerTask getLocalRunningTask(Serializable taskId)
public String getName()
public byte getPriority()
public TransactionManager getTransactionManager()
public TimerTaskFactory getTimerTaskFactory()
public void schedule(TimerTask task)
public void schedule(TimerTask task, boolean checkIfAlreadyPresent)
task - public TimerTask cancel(Serializable taskID)
taskID - public void shutdownNow()
public String toDetailedString()
public void stop()
Copyright © 2016. All Rights Reserved.