Package uk.co.ractf.polaris.api.task
Class Challenge
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.task.Task
-
- uk.co.ractf.polaris.api.task.ServiceTask
-
- uk.co.ractf.polaris.api.task.Challenge
-
public class Challenge extends ServiceTask
Represents a challenge that can run on Polaris, comprised of one or morePod
s{ "id": "example", "pods": [] }
-
-
Constructor Summary
Constructors Constructor Description Challenge(NamespacedId id, java.lang.Integer version, java.util.List<Pod> pods, Replication replication, Allocation allocation)
Create a challenge
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Allocation
getAllocation()
int
hashCode()
-
Methods inherited from class uk.co.ractf.polaris.api.task.Task
getId, getPod, getPods, getReplication, getTaskType, getVersion
-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Constructor Detail
-
Challenge
@Contract(pure=true) public Challenge(NamespacedId id, java.lang.Integer version, java.util.List<Pod> pods, Replication replication, Allocation allocation)
Create a challenge- Parameters:
id
- the id of the challengeversion
- version of the challengepods
- the pods making up the challengereplication
- the replication detailallocation
- the instance allocation rules
-
-
Method Detail
-
getAllocation
public Allocation getAllocation()
-
-