ATLAS Offline Software
Loading...
Searching...
No Matches
AthRemoteExec::Client Class Reference

#include <Client.h>

Collaboration diagram for AthRemoteExec::Client:

Public Member Functions

 Client (const std::string &target)
 ~Client ()
 Client (const Client &)=delete
Client & operator= (const Client &)=delete
ExecuteReply execute (const ExecuteRequest &request)
 Consume request, block and wait util the server replies, return reply.
std::vector< SequenceInfo > listSequences (std::string *error=nullptr)
 List of available sequences.
bool waitUntilReady (double timeoutSeconds)
 Block until the server answers a ListSequences call or timeoutSeconds elapses.

Private Attributes

std::unique_ptr< Impl > m_impl

Detailed Description

Definition at line 25 of file Client.h.

Constructor & Destructor Documentation

◆ Client() [1/2]

AthRemoteExec::Client::Client ( const std::string & target)
explicit
Parameters
targethost:port, e.g. "localhost:50051"

Definition at line 125 of file Client.cxx.

◆ ~Client()

AthRemoteExec::Client::~Client ( )
default

◆ Client() [2/2]

AthRemoteExec::Client::Client ( const Client & )
delete

Member Function Documentation

◆ execute()

ExecuteReply AthRemoteExec::Client::execute ( const ExecuteRequest & request)

Consume request, block and wait util the server replies, return reply.

Definition at line 130 of file Client.cxx.

◆ listSequences()

std::vector< SequenceInfo > AthRemoteExec::Client::listSequences ( std::string * error = nullptr)

List of available sequences.

Empty on failure, with error describing what went wrong.

Definition at line 134 of file Client.cxx.

◆ operator=()

Client & AthRemoteExec::Client::operator= ( const Client & )
delete

◆ waitUntilReady()

bool AthRemoteExec::Client::waitUntilReady ( double timeoutSeconds)

Block until the server answers a ListSequences call or timeoutSeconds elapses.

Lets a test client start before the server is up.

Definition at line 138 of file Client.cxx.

Member Data Documentation

◆ m_impl

std::unique_ptr<Impl> AthRemoteExec::Client::m_impl
private

Definition at line 47 of file Client.h.


The documentation for this class was generated from the following files: