org.mobicents.timers
Class FaultTolerantScheduler

java.lang.Object
  extended by org.mobicents.timers.FaultTolerantScheduler

public class FaultTolerantScheduler
extends java.lang.Object

Author:
martins

Constructor Summary
FaultTolerantScheduler(java.lang.String name, int corePoolSize, org.mobicents.cluster.MobicentsCluster cluster, byte priority, javax.transaction.TransactionManager txManager, TimerTaskFactory timerTaskFactory)
           
 
Method Summary
 TimerTask cancel(java.io.Serializable taskID)
          Cancels a local running task with the specified ID.
 java.util.Set<TimerTask> getLocalRunningTasks()
          Retrieves a set containing all local running tasks.
 java.lang.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(java.io.Serializable taskID)
          Retrieves the TimerTaskData associated with the specified taskID.
 TimerTaskFactory getTimerTaskFactory()
          Retrieves the timer task factory associated with this scheduler.
 javax.transaction.TransactionManager getTransactionManager()
          Retrieves the jta tx manager.
 void schedule(TimerTask task)
          Schedules the specified task.
 void shutdownNow()
           
 void stop()
           
 java.lang.String toDetailedString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaultTolerantScheduler

public FaultTolerantScheduler(java.lang.String name,
                              int corePoolSize,
                              org.mobicents.cluster.MobicentsCluster cluster,
                              byte priority,
                              javax.transaction.TransactionManager txManager,
                              TimerTaskFactory timerTaskFactory)
Parameters:
name -
corePoolSize -
cluster -
priority -
txManager -
timerTaskFactory -
Method Detail

getTimerTaskData

public TimerTaskData getTimerTaskData(java.io.Serializable taskID)
Retrieves the TimerTaskData associated with the specified taskID.

Parameters:
taskID -
Returns:
null if there is no such timer task data

getLocalRunningTasks

public java.util.Set<TimerTask> getLocalRunningTasks()
Retrieves a set containing all local running tasks. Removals on the set will not be propagated to the internal state of the scheduler.

Returns:

getName

public java.lang.String getName()
Retrieves the scheduler name.

Returns:
the name

getPriority

public byte getPriority()
Retrieves the priority of the scheduler as a client local listener of the mobicents cluster.

Returns:
the priority

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
Retrieves the jta tx manager.

Returns:

getTimerTaskFactory

public TimerTaskFactory getTimerTaskFactory()
Retrieves the timer task factory associated with this scheduler.

Returns:

schedule

public void schedule(TimerTask task)
Schedules the specified task.

Parameters:
task -

cancel

public TimerTask cancel(java.io.Serializable taskID)
Cancels a local running task with the specified ID.

Parameters:
taskID -
Returns:
the task canceled

shutdownNow

public void shutdownNow()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toDetailedString

public java.lang.String toDetailedString()

stop

public void stop()


Copyright © 2010. All Rights Reserved.