CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
TritonService::Server Struct Reference

#include <TritonService.h>

Public Member Functions

 Server (const edm::ParameterSet &pset)
 
 Server (const std::string &name_, const std::string &url_, TritonServerType type_)
 

Public Attributes

bool isFallback
 
std::unordered_set< std::string > models
 
triton::client::SslOptions sslOptions
 
TritonServerType type
 
std::string url
 
bool useSsl
 

Static Public Attributes

static const std::string fallbackAddress {"0.0.0.0"}
 
static const std::string fallbackName {"fallback"}
 

Detailed Description

Definition at line 63 of file TritonService.h.

Constructor & Destructor Documentation

◆ Server() [1/2]

TritonService::Server::Server ( const edm::ParameterSet pset)
inline

Definition at line 64 of file TritonService.h.

References muonDTDigis_cfi::pset, sslOptions, AlCaHLTBitMon_QueryRunRegistry::string, and useSsl.

65  : url(pset.getUntrackedParameter<std::string>("address") + ":" +
66  std::to_string(pset.getUntrackedParameter<unsigned>("port"))),
67  isFallback(pset.getUntrackedParameter<std::string>("name") == fallbackName),
68  useSsl(pset.getUntrackedParameter<bool>("useSsl")),
70  if (useSsl) {
71  sslOptions.root_certificates = pset.getUntrackedParameter<std::string>("rootCertificates");
72  sslOptions.private_key = pset.getUntrackedParameter<std::string>("privateKey");
73  sslOptions.certificate_chain = pset.getUntrackedParameter<std::string>("certificateChain");
74  }
75  }
std::string to_string(const V &value)
Definition: OMSAccess.h:71
triton::client::SslOptions sslOptions
Definition: TritonService.h:84
TritonServerType type
Definition: TritonService.h:83
static const std::string fallbackName
Definition: TritonService.h:86

◆ Server() [2/2]

TritonService::Server::Server ( const std::string &  name_,
const std::string &  url_,
TritonServerType  type_ 
)
inline

Definition at line 76 of file TritonService.h.

77  : url(url_), isFallback(name_ == fallbackName), useSsl(false), type(type_) {}
TritonServerType type
Definition: TritonService.h:83
static const std::string fallbackName
Definition: TritonService.h:86

Member Data Documentation

◆ fallbackAddress

const std::string TritonService::Server::fallbackAddress {"0.0.0.0"}
static

Definition at line 87 of file TritonService.h.

Referenced by TritonService::TritonService().

◆ fallbackName

const std::string TritonService::Server::fallbackName {"fallback"}
static

◆ isFallback

bool TritonService::Server::isFallback

Definition at line 81 of file TritonService.h.

◆ models

std::unordered_set<std::string> TritonService::Server::models

Definition at line 85 of file TritonService.h.

◆ sslOptions

triton::client::SslOptions TritonService::Server::sslOptions

Definition at line 84 of file TritonService.h.

Referenced by Server().

◆ type

TritonServerType TritonService::Server::type

◆ url

std::string TritonService::Server::url

Definition at line 80 of file TritonService.h.

Referenced by rrapi.RRApi::get().

◆ useSsl

bool TritonService::Server::useSsl

Definition at line 82 of file TritonService.h.

Referenced by Server().