CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 62 of file TritonService.h.

Constructor & Destructor Documentation

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

Definition at line 63 of file TritonService.h.

References edm::ParameterSet::getUntrackedParameter(), sslOptions, AlCaHLTBitMon_QueryRunRegistry::string, and useSsl.

64  : url(pset.getUntrackedParameter<std::string>("address") + ":" +
65  std::to_string(pset.getUntrackedParameter<unsigned>("port"))),
67  useSsl(pset.getUntrackedParameter<bool>("useSsl")),
69  if (useSsl) {
70  sslOptions.root_certificates = pset.getUntrackedParameter<std::string>("rootCertificates");
71  sslOptions.private_key = pset.getUntrackedParameter<std::string>("privateKey");
72  sslOptions.certificate_chain = pset.getUntrackedParameter<std::string>("certificateChain");
73  }
74  }
T getUntrackedParameter(std::string const &, T const &) const
triton::client::SslOptions sslOptions
Definition: TritonService.h:83
TritonServerType type
Definition: TritonService.h:82
static const std::string fallbackName
Definition: TritonService.h:85
TritonService::Server::Server ( const std::string &  name_,
const std::string &  url_,
TritonServerType  type_ 
)
inline

Definition at line 75 of file TritonService.h.

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

Member Data Documentation

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

Definition at line 86 of file TritonService.h.

Referenced by TritonService::TritonService().

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

Definition at line 80 of file TritonService.h.

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

Definition at line 84 of file TritonService.h.

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

Definition at line 83 of file TritonService.h.

Referenced by Server().

TritonServerType TritonService::Server::type
std::string TritonService::Server::url

Definition at line 79 of file TritonService.h.

Referenced by rrapi.RRApi::get().

bool TritonService::Server::useSsl

Definition at line 81 of file TritonService.h.

Referenced by Server().