dragon.infrastructure.group_desc

A class that uniquely defines properties of a managed Group of resources for infrastructure communication.

Classes

GroupDescriptor

The group descriptor holds a list of tuples of puids, muids, cuids or huids.

class GroupDescriptor

The group descriptor holds a list of tuples of puids, muids, cuids or huids.

class State

Current state of a group’s member.

class GroupMember

The GroupMember class holds information about each object that is a member of the group.

class Errors

An enumeration.

SUCCESS = 0

Resource was created

FAIL = 1

Resource was not created

ALREADY = 2

Resource exists already

classmethod from_sdict(d)

Returns the launched group member object.

Parameters

d (Dictionary) – dictionary with all key-value pairs of the available information of the group’s member

Raises

ValueError – when there is an error during deserialization

Returns

the GroupMember object

Return type

GroupMember

get_sdict()

Collects the entire information of a member of the group.

Returns

A dictionary with all key-value pairs of the available information of the group’s member.

Return type

Dictionary

__init__(state: Optional[object] = None, uid: Optional[int] = None, placement: Optional[int] = None, desc: Optional[object] = None, error_code: Optional[int] = None, error_info: Optional[str] = None) None
classmethod from_sdict(d)

Returns the descriptor of the launched group of resources.

Parameters

d (Dictionary) – dictionary with all key-value pairs of the available information of the group

Raises

ValueError – when there is an error during deserialization

Returns

the GroupDescriptor object

Return type

GroupDescriptor

get_sdict()

Collects the entire information of the group.

Returns

A dictionary with all key-value pairs of the available information of the group.

Return type

Dictionary

__init__(state: ~dragon.infrastructure.group_desc.GroupDescriptor.State = State.PENDING, g_uid: ~typing.Optional[int] = None, name: ~typing.Optional[str] = None, sets: [] = <factory>, policy: ~typing.Optional[~dragon.infrastructure.policy.Policy] = None) None