TaskStorage: Rename getRunningTasks -> getActiveTasks

This commit is contained in:
Gian Merlino 2013-12-02 15:05:33 -08:00
parent 64e75becba
commit 47c1c8cab2
4 changed files with 5 additions and 5 deletions

View File

@ -220,7 +220,7 @@ public class DbTaskStorage implements TaskStorage
} }
@Override @Override
public List<Task> getRunningTasks() public List<Task> getActiveTasks()
{ {
return dbi.withHandle( return dbi.withHandle(
new HandleCallback<List<Task>>() new HandleCallback<List<Task>>()

View File

@ -128,7 +128,7 @@ public class HeapMemoryTaskStorage implements TaskStorage
} }
@Override @Override
public List<Task> getRunningTasks() public List<Task> getActiveTasks()
{ {
giant.lock(); giant.lock();

View File

@ -100,7 +100,7 @@ public class TaskQueue
// Get all running tasks and their locks // Get all running tasks and their locks
final Multimap<TaskLock, Task> tasksByLock = ArrayListMultimap.create(); final Multimap<TaskLock, Task> tasksByLock = ArrayListMultimap.create();
for (final Task task : taskStorage.getRunningTasks()) { for (final Task task : taskStorage.getActiveTasks()) {
try { try {
final List<TaskLock> taskLocks = taskStorage.getLocks(task.getId()); final List<TaskLock> taskLocks = taskStorage.getLocks(task.getId());

View File

@ -77,9 +77,9 @@ public interface TaskStorage
public List<TaskAction> getAuditLogs(String taskid); public List<TaskAction> getAuditLogs(String taskid);
/** /**
* Returns a list of currently-running tasks as stored in the storage facility, in no particular order. * Returns a list of currently running or pending tasks as stored in the storage facility, in no particular order.
*/ */
public List<Task> getRunningTasks(); public List<Task> getActiveTasks();
/** /**
* Returns a list of locks for a particular task. * Returns a list of locks for a particular task.