Class ExecutorServiceTracker<T extends TaskTideModel<T>>
java.lang.Object
org.tasktide.engine.trackers.ExecutorServiceTracker<T>
- Type Parameters:
T- ofTaskTideModelofWorkItem,ItemTask
Deprecated.
Generic class to hold logic for tracking futures of
TaskTideModel
elements (ie ItemTask, WorkItem) as ExecutorServiceItem.-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Count active elementsintDeprecated.Count done and terminated elementsintDeprecated.Count done elementsDeprecated.Fetch list of completed IdsDeprecated.Fetch entry setfetchWaiterFor(List<T> tasks) Deprecated.Fetch aTrackerWaiterfor provided workloadDeprecated.Fetch future of taskgetIds()Deprecated.Get Ids from task statesgetType()Deprecated.Get class type of trackerbooleanDeprecated.Check if task is still running or in preparebooleanisComplete(String taskId) Deprecated.Check if task is still done or cancelledbooleanDeprecated.Check whether task is completedbooleanDeprecated.Check whether task is presentvoidmarkTask(String taskId, ExecutorServiceItem<T> item) Deprecated.Mark task withExecutorServiceItemintDeprecated.Fetch count of tasks being trackedtoString()Deprecated.Represent collection as StringvoidwaitForAll(List<Future<?>> futures) Deprecated.Wait for future list
-
Method Details
-
fetchDone
-
markTask
-
fetchEntrySet
Deprecated.Fetch entry set- Returns:
-
get
-
isDone
Deprecated.Check whether task is completed- Parameters:
taskId-- Returns:
- boolean
-
isActive
Deprecated.Check if task is still running or in prepare- Parameters:
taskId-- Returns:
- boolean
-
isComplete
Deprecated.Check if task is still done or cancelled- Parameters:
taskId-- Returns:
- boolean
-
isPresent
Deprecated.Check whether task is present- Parameters:
taskId-- Returns:
- boolean
-
taskCount
public int taskCount()Deprecated.Fetch count of tasks being tracked- Returns:
- int
-
countActive
public int countActive()Deprecated.Count active elements- Returns:
- int
-
countDone
public int countDone()Deprecated.Count done elements- Returns:
- int
-
countComplete
public int countComplete()Deprecated.Count done and terminated elements- Returns:
- int
-
getIds
-
waitForAll
-
fetchWaiterFor
-
getType
-
toString
-