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 66 of file TritonService.h.

Constructor & Destructor Documentation

◆ Server() [1/2]

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

Definition at line 67 of file TritonService.h.

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

68  : url(pset.getUntrackedParameter<std::string>("address") + ":" +
69  std::to_string(pset.getUntrackedParameter<unsigned>("port"))),
70  isFallback(pset.getUntrackedParameter<std::string>("name") == fallbackName),
71  useSsl(pset.getUntrackedParameter<bool>("useSsl")),
73  if (useSsl) {
74  sslOptions.root_certificates = pset.getUntrackedParameter<std::string>("rootCertificates");
75  sslOptions.private_key = pset.getUntrackedParameter<std::string>("privateKey");
76  sslOptions.certificate_chain = pset.getUntrackedParameter<std::string>("certificateChain");
77  }
78  }
triton::client::SslOptions sslOptions
Definition: TritonService.h:87
static std::string to_string(const XMLCh *ch)
TritonServerType type
Definition: TritonService.h:86
static const std::string fallbackName
Definition: TritonService.h:89

◆ Server() [2/2]

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

Definition at line 79 of file TritonService.h.

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

Member Data Documentation

◆ fallbackAddress

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

Definition at line 90 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 84 of file TritonService.h.

◆ models

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

Definition at line 88 of file TritonService.h.

◆ sslOptions

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

Definition at line 87 of file TritonService.h.

Referenced by Server().

◆ type

TritonServerType TritonService::Server::type

◆ url

std::string TritonService::Server::url

Definition at line 83 of file TritonService.h.

Referenced by rrapi.RRApi::get().

◆ useSsl

bool TritonService::Server::useSsl

Definition at line 85 of file TritonService.h.

Referenced by Server().