Package uk.co.ractf.polaris.api.task
Class Task
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.task.Task
-
- Direct Known Subclasses:
ServiceTask
public abstract class Task extends JsonRepresentable
-
-
Constructor Summary
Constructors Constructor Description Task(NamespacedId id, java.lang.Integer version, TaskType taskType, Replication replication, java.util.List<Pod> pods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
NamespacedId
getId()
Pod
getPod(java.lang.String id)
Gets aPod
from this task that has a given idjava.util.List<Pod>
getPods()
Replication
getReplication()
TaskType
getTaskType()
java.lang.Integer
getVersion()
int
hashCode()
-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Constructor Detail
-
Task
public Task(NamespacedId id, java.lang.Integer version, TaskType taskType, Replication replication, java.util.List<Pod> pods)
-
-
Method Detail
-
getId
public NamespacedId getId()
-
getVersion
public java.lang.Integer getVersion()
-
getTaskType
public TaskType getTaskType()
-
getReplication
public Replication getReplication()
-
getPods
public java.util.List<Pod> getPods()
-
getPod
public Pod getPod(java.lang.String id)
Gets aPod
from this task that has a given id- Parameters:
id
- the id of the pod- Returns:
- the pod
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-