mirror of https://github.com/apache/druid.git
TaskStorage: Rename getRunningTasks -> getActiveTasks
This commit is contained in:
parent
64e75becba
commit
47c1c8cab2
|
@ -220,7 +220,7 @@ public class DbTaskStorage implements TaskStorage
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<Task> getRunningTasks()
|
||||
public List<Task> getActiveTasks()
|
||||
{
|
||||
return dbi.withHandle(
|
||||
new HandleCallback<List<Task>>()
|
||||
|
|
|
@ -128,7 +128,7 @@ public class HeapMemoryTaskStorage implements TaskStorage
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<Task> getRunningTasks()
|
||||
public List<Task> getActiveTasks()
|
||||
{
|
||||
giant.lock();
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ public class TaskQueue
|
|||
// Get all running tasks and their locks
|
||||
final Multimap<TaskLock, Task> tasksByLock = ArrayListMultimap.create();
|
||||
|
||||
for (final Task task : taskStorage.getRunningTasks()) {
|
||||
for (final Task task : taskStorage.getActiveTasks()) {
|
||||
try {
|
||||
final List<TaskLock> taskLocks = taskStorage.getLocks(task.getId());
|
||||
|
||||
|
|
|
@ -77,9 +77,9 @@ public interface TaskStorage
|
|||
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.
|
||||
|
|
Loading…
Reference in New Issue