Revision: 15686
Author: [email protected]
Date: Thu Dec 9 08:03:23 2010
Log: Update Issue 1872
Adding util method needed for MSS timers rescheduling
http://code.google.com/p/mobicents/source/detail?r=15686
Modified:
/trunk/servers/cluster/timers/src/main/java/org/mobicents/timers/FaultTolerantScheduler.java
=======================================
---
/trunk/servers/cluster/timers/src/main/java/org/mobicents/timers/FaultTolerantScheduler.java
Thu Dec 2 07:40:04 2010
+++
/trunk/servers/cluster/timers/src/main/java/org/mobicents/timers/FaultTolerantScheduler.java
Thu Dec 9 08:03:23 2010
@@ -163,6 +163,15 @@
public Set<TimerTask> getLocalRunningTasks() {
return new HashSet<TimerTask>(localRunningTasks.values());
}
+
+ /**
+ * Retrieves a local running task by its id
+ *
+ * @return the local task if found, null otherwise
+ */
+ public TimerTask getLocalRunningTask(Serializable taskId) {
+ return localRunningTasks.get(taskId);
+ }
/**
* Retrieves the scheduler name.