flux.resource.ResourceSetImplementation module
- class flux.resource.ResourceSetImplementation.ResourceSetImplementation
Bases:
ABC
This abstract class defines the interface that a ResourceSet implementation shall provide in order to work with the ResourceSet class
- abstract add(rset)
Add resources not existing in one set to the other
- abstract append(rset)
Append one resource set to another
- abstract copy()
Return a copy of the resource set
- abstract copy_ranks(ranks)
Return a copy of resource set with only 'ranks' included
- abstract count(name)
Return the total number of resources of type 'name'
- abstract diff(rset)
Return the set difference of two resource sets
- abstract dumps()
Return a short-form string representation of a resource set
- encode()
Return a JSON string representation of the resource set
- abstract get_properties()
Return an RFC 20 properties object for this resource set
- abstract intersect(rset)
Return the set intersection of two resource sets
- abstract nnodes()
Return the number of nodes in the resource set as an IDset
- abstract nodelist()
Return the list of nodes in the resource set as a Hostlist
- abstract ranks()
Return the set of ranks in the resource set as an IDset
- abstract remove_ranks(ranks)
Remove an IDset of ranks from a resource set
- abstract union(rset)
Return the union of two resource sets