UnicastRequest#

class eclypse.remote.communication.mpi.requests.unicast.UnicastRequest[source]#

Bases: MulticastRequest

A request to send a message to a single recipient.

Methods

__init__(recipient_id, body, _mpi[, timestamp])

Initializes a UnicastRequest object.

Attributes

elapsed_time

The elapsed time until the response was received.

recipient_id

The ID of the recipient.

response

The response to the request.

route

The route to the recipient.

__init__(recipient_id, body, _mpi, timestamp=None)[source]#

Initializes a UnicastRequest object.

Parameters:
  • recipient_id (str) – The ID of the recipient node.

  • body (dict[str, Any]) – The body of the request.

  • _mpi (EclypseMPI) – The MPI interface.

  • timestamp (datetime | None, optional) – The timestamp of the request. Defaults to None.

property recipient_id: str#

The ID of the recipient.

Returns:

The ID.

Return type:

str

property response: Response | None#

The response to the request.

Returns:

The response to the request if available, None otherwise.

Return type:

Response | None

property route: Route | None#

The route to the recipient.

Returns:

The route to the recipient if available, None otherwise.

Return type:

Route | None

property elapsed_time: timedelta | None#

The elapsed time until the response was received.

Returns:

The elapsed time until the response was received,

or None if the response is not yet available.

Return type:

timedelta | None