Class Challenge


  • public class Challenge
    extends ServiceTask
    Represents a challenge that can run on Polaris, comprised of one or more Pods
     {
       "id": "example",
       "pods": []
     }
     
    • 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 challenge
        version - version of the challenge
        pods - the pods making up the challenge
        replication - the replication detail
        allocation - the instance allocation rules
    • Method Detail

      • getAllocation

        public Allocation getAllocation()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Task
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Task