Skip to content

iox::roudi::Process🔗

Public Functions🔗

Name
Process(const RuntimeName_t & name, const uint32_t pid, const posix::PosixUser & user, const bool isMonitored, const uint64_t sessionId)
This class represents an application which has registered at RouDi and manages the communication to the application.
Process(const Process & other)
Process & operator=(const Process & other)
Process(Process && other)
Process & operator=(Process && other)
~Process() =default
uint32_t getPid() const
const RuntimeName_t getName() const
void sendViaIpcChannel(const runtime::IpcMessage & data)
uint64_t getSessionId()
The session ID which is used to check outdated IPC channel transmissions for this process.
void setTimestamp(const mepoo::TimePointNs_t timestamp)
mepoo::TimePointNs_t getTimestamp()
posix::PosixUser getUser() const
bool isMonitored() const

Public Functions Documentation🔗

function Process🔗

Process(
    const RuntimeName_t & name,
    const uint32_t pid,
    const posix::PosixUser & user,
    const bool isMonitored,
    const uint64_t sessionId
)

This class represents an application which has registered at RouDi and manages the communication to the application.

Parameters:

  • name of the process; this is equal to the IPC channel name, which is used for communication
  • pid is the host system process id
  • user is user used in the operating system for this process
  • isMonitored indicates if the process should be monitored for being alive
  • sessionId is an ID generated by RouDi to prevent sending outdated IPC channel transmission

function Process🔗

Process(
    const Process & other
)

function operator=🔗

Process & operator=(
    const Process & other
)

function Process🔗

Process(
    Process && other
)

Note: the move cTor and assignment operator are already implicitly deleted because of the atomic

function operator=🔗

Process & operator=(
    Process && other
)

function ~Process🔗

~Process() =default

function getPid🔗

uint32_t getPid() const

function getName🔗

const RuntimeName_t getName() const

function sendViaIpcChannel🔗

void sendViaIpcChannel(
    const runtime::IpcMessage & data
)

function getSessionId🔗

uint64_t getSessionId()

The session ID which is used to check outdated IPC channel transmissions for this process.

Return: the session ID for this process

function setTimestamp🔗

void setTimestamp(
    const mepoo::TimePointNs_t timestamp
)

function getTimestamp🔗

mepoo::TimePointNs_t getTimestamp()

function getUser🔗

posix::PosixUser getUser() const

function isMonitored🔗

bool isMonitored() const

Updated on 31 May 2022 at 15:29:16 CEST