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"}
 
static const std::string siteconfName {"SONIC_LOCAL_BALANCER"}
 

Detailed Description

Definition at line 67 of file TritonService.h.

Constructor & Destructor Documentation

◆ Server() [1/2]

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

Definition at line 68 of file TritonService.h.

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

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

◆ Server() [2/2]

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

Definition at line 80 of file TritonService.h.

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

Member Data Documentation

◆ fallbackAddress

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

Definition at line 91 of file TritonService.h.

Referenced by TritonService::preBeginJob().

◆ fallbackName

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

◆ isFallback

bool TritonService::Server::isFallback

Definition at line 85 of file TritonService.h.

◆ models

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

Definition at line 89 of file TritonService.h.

◆ siteconfName

const std::string TritonService::Server::siteconfName {"SONIC_LOCAL_BALANCER"}
static

Definition at line 92 of file TritonService.h.

Referenced by TritonService::TritonService().

◆ sslOptions

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

Definition at line 88 of file TritonService.h.

Referenced by Server().

◆ type

TritonServerType TritonService::Server::type

◆ url

std::string TritonService::Server::url

Definition at line 84 of file TritonService.h.

Referenced by rrapi.RRApi::get().

◆ useSsl

bool TritonService::Server::useSsl

Definition at line 86 of file TritonService.h.

Referenced by Server().