#include <XrdSsiScale.hh>
|
static const uint16_t | defSprd = 4 |
|
static const uint16_t | maxPend = 64000 |
|
static const uint16_t | maxSprd = 1024 |
|
static const uint16_t | maxTune = 128 |
|
static const uint16_t | midTune = 64 |
|
static const uint16_t | minTune = 3 |
|
static const uint16_t | zipTune = 512 |
|
Definition at line 37 of file XrdSsiScale.hh.
◆ XrdSsiScale()
XrdSsiScale::XrdSsiScale |
( |
| ) |
|
|
inline |
Definition at line 57 of file XrdSsiScale.hh.
57 : Active(0), reActive(0), begEnt(0), nowEnt(0),
58 curSpread(
defSprd), autoTune(
false), needTune(
false)
59 {memset(pendCnt, 0,
sizeof(uint16_t)*
maxSprd);}
static const uint16_t maxSprd
static const uint16_t defSprd
References maxSprd.
◆ ~XrdSsiScale()
XrdSsiScale::~XrdSsiScale |
( |
| ) |
|
|
inline |
◆ getEnt()
int XrdSsiScale::getEnt |
( |
| ) |
|
Definition at line 50 of file XrdSsiScale.cc.
52 static const int tuneMLen = 80;
53 char tuneMsg[tuneMLen]; *tuneMsg = 0;
61 uint16_t endEnt = curSpread;
62 do {
for (uint16_t i = nowEnt; i < endEnt; i++)
66 if (!begEnt || i < begEnt) Active++;
69 if (*tuneMsg)
Log.
Emsg(
"Scale", tuneMsg);
78 {
if (!autoTune || !Tune(tuneMsg, tuneMLen))
break;
80 }
else endEnt = nowEnt;
87 if (*tuneMsg)
Log.
Emsg(
"Scale", tuneMsg);
static const uint16_t maxPend
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)
References XrdSysError::Emsg(), and XrdSsi::Log.
Referenced by XrdSsiServReal::ProcessRequest().
◆ retEnt()
void XrdSsiScale::retEnt |
( |
int |
xEnt | ) |
|
◆ rsvEnt()
bool XrdSsiScale::rsvEnt |
( |
int |
xEnt | ) |
|
◆ setSpread()
void XrdSsiScale::setSpread |
( |
short |
sval | ) |
|
Definition at line 175 of file XrdSsiScale.cc.
181 if (sval < 0) sval = -sval;
183 autoTune = needTune =
false;
189 if (sval <
short(
maxSprd)) newSpread =
static_cast<uint16_t
>(sval);
191 if (autoTune && newSpread < curSpread)
195 curSpread = newSpread;
Referenced by XrdSsiClientProvider::SetSpread().
◆ defSprd
const uint16_t XrdSsiScale::defSprd = 4 |
|
static |
◆ maxPend
const uint16_t XrdSsiScale::maxPend = 64000 |
|
static |
◆ maxSprd
const uint16_t XrdSsiScale::maxSprd = 1024 |
|
static |
◆ maxTune
const uint16_t XrdSsiScale::maxTune = 128 |
|
static |
◆ midTune
const uint16_t XrdSsiScale::midTune = 64 |
|
static |
◆ minTune
const uint16_t XrdSsiScale::minTune = 3 |
|
static |
◆ zipTune
const uint16_t XrdSsiScale::zipTune = 512 |
|
static |
The documentation for this class was generated from the following files: