Class GroupRecord

java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.GroupRecord

public final class GroupRecord extends Object
The description and model of a group. POJO class; changes not automatically reflected in the DB.
  • Constructor Details

    • GroupRecord

      public GroupRecord()
      Make an empty record.
    • GroupRecord

      public GroupRecord(Row row)
      Make a record from a database query result.
      Parameters:
      row - The query result.
  • Method Details

    • getGroupId

      @Null public @Null Integer getGroupId()
      Returns:
      The group identifier. Read-only; cannot be set by the service.
    • getGroupName

      @NotBlank public @NotBlank String getGroupName()
      Returns:
      The group's name.
    • setGroupName

      public void setGroupName(String groupName)
      Parameters:
      groupName - The group's name.
    • getQuota

      public Optional<Long> getQuota()
      Returns:
      The quota of the group in board-seconds, if one exists.
    • setQuota

      public void setQuota(Long quota)
      Parameters:
      quota - The quota of the group in board-seconds, if one exists.
    • getType

      public GroupRecord.GroupType getType()
      Returns:
      What type of group is this.
    • getMembers

      public Map<String,URI> getMembers()
      Returns:
      The members of the group, if populated.
    • setMembers

      public void setMembers(Map<String,URI> members)
      Parameters:
      members - The members of the group.