CRecordCliAttachDisplay

This message is sent from the console display to the console service to redirect the console service's output to the display.

The message is part of the console API.

{
  "id": "69bb3e3a-dbf6-40ca-a2a0-2b3b67a93232",
  "name": "CLI_ATTACH_DISPLAY",
  "description": "Attach a display to the command line service.",
  "slots": [
  ]
}

Arguments

The service uses the sender address of the message as the address of the display.

Usage

The display target sends this message to the command line service that each node possesses. The command line service has a nanoservice API, so this message is sent to the nanoservice.

private void attachDisplay(@NotNull final CNodeId aNodeId) throws CException
{
    final CEnvelope env = CEnvelope.forRemoteNanoService(CWellKnownNID.SYSTEM,
                                                         aNodeId);
    final CRecord record = CRecordCliAttachDisplay.create();
    sendRequest(env,
                record);
}

nyssr.net - Innovative Distributed System