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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupRecord.GroupType
The type of a group. -
Constructor Summary
Constructors Constructor Description GroupRecord()
Make an empty record.GroupRecord(Row row)
Make a record from a database query result. -
Method Summary
Modifier and Type Method Description @Null Integer
getGroupId()
@NotBlank String
getGroupName()
Map<String,URI>
getMembers()
Optional<Long>
getQuota()
GroupRecord.GroupType
getType()
void
setGroupName(String groupName)
void
setMembers(Map<String,URI> members)
void
setQuota(Long quota)
-
Constructor Details
-
GroupRecord
public GroupRecord()Make an empty record. -
GroupRecord
Make a record from a database query result.- Parameters:
row
- The query result.
-
-
Method Details
-
getGroupId
- Returns:
- The group identifier. Read-only; cannot be set by the service.
-
getGroupName
- Returns:
- The group's name.
-
setGroupName
- Parameters:
groupName
- The group's name.
-
getQuota
- Returns:
- The quota of the group in board-seconds, if one exists.
-
setQuota
- Parameters:
quota
- The quota of the group in board-seconds, if one exists.
-
getType
- Returns:
- What type of group is this.
-
getMembers
- Returns:
- The members of the group, if populated.
-
setMembers
- Parameters:
members
- The members of the group.
-