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_)
 

Public Attributes

bool isFallback
 
std::unordered_set< std::string > models
 
std::string url
 

Static Public Attributes

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

Detailed Description

Definition at line 47 of file TritonService.h.

Constructor & Destructor Documentation

◆ Server() [1/2]

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

Definition at line 48 of file TritonService.h.

49  : url(pset.getUntrackedParameter<std::string>("address") + ":" +
50  std::to_string(pset.getUntrackedParameter<unsigned>("port"))),
51  isFallback(pset.getUntrackedParameter<std::string>("name") == fallbackName) {}

◆ Server() [2/2]

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

Definition at line 52 of file TritonService.h.

52 : url(url_), isFallback(name_ == fallbackName) {}

Member Data Documentation

◆ fallbackAddress

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

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

◆ models

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

Definition at line 57 of file TritonService.h.

◆ url

std::string TritonService::Server::url

Definition at line 55 of file TritonService.h.

Referenced by rrapi.RRApi::get().

TritonService::Server::fallbackName
static const std::string fallbackName
Definition: TritonService.h:58
TritonService::Server::url
std::string url
Definition: TritonService.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TritonService::Server::isFallback
bool isFallback
Definition: TritonService.h:56
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27