CMS 3D CMS Logo

stor::Parameter Class Reference

#include <EventFilter/StorageManager/interface/Parameter.h>

List of all members.

Public Member Functions

bool exactFileSizeTest () const
const std::string & fileCatalog () const
const std::string & fileName () const
const std::string & filePath () const
double highWaterMark () const
const std::string & host () const
void initialSafetyLevel (int i)
int initialSafetyLevel () const
double lumiSectionTimeOut () const
int maxFileSize () const
 Parameter ()
void setExactFileSizeTest (bool x)
void setFileCatalog (std::string x)
void setfileName (std::string x)
void setfilePath (std::string x)
void sethighWaterMark (double x)
void setlumiSectionTimeOut (double x)
void setmaxFileSize (int x)
void setsetupLabel (std::string x)
void setSmInstance (std::string x)
const std::string & setupLabel () const
const std::string & smInstance () const

Private Attributes

bool exactFileSizeTest_
std::string fileCatalog_
std::string fileName_
std::string filePath_
double highWaterMark_
std::string hostName_
int initialSafetyLevel_
double lumiSectionTimeOut_
int maxFileSize_
std::string setupLabel_
std::string smInstance_


Detailed Description

Definition at line 15 of file Parameter.h.


Constructor & Destructor Documentation

stor::Parameter::Parameter (  )  [inline]

Definition at line 18 of file Parameter.h.

References hostName_.

00018                   :
00019         fileCatalog_("summaryCatalog.txt"),
00020         smInstance_("0"),
00021         hostName_(toolbox::net::getHostName()),
00022         initialSafetyLevel_(0),
00023         fileName_("storageManager"),
00024         filePath_("/scratch2/cheung"),
00025         setupLabel_("mtcc"),
00026         maxFileSize_(-1),
00027         highWaterMark_(0.9),
00028         lumiSectionTimeOut_(45.0),
00029         exactFileSizeTest_(false)
00030       {
00031         // strip domainame
00032          std::string::size_type pos = hostName_.find('.');  
00033          if ( pos != std::string::npos ) {  
00034            std::string basename = hostName_.substr(0,pos);  
00035            hostName_ = basename;
00036          }
00037       }


Member Function Documentation

bool stor::Parameter::exactFileSizeTest (  )  const [inline]

Definition at line 48 of file Parameter.h.

References exactFileSizeTest_.

00048 {return exactFileSizeTest_;}

const std::string& stor::Parameter::fileCatalog (  )  const [inline]

Definition at line 39 of file Parameter.h.

References fileCatalog_.

00039 {return fileCatalog_;}

const std::string& stor::Parameter::fileName (  )  const [inline]

Definition at line 42 of file Parameter.h.

References fileName_.

00042 {return fileName_;}

const std::string& stor::Parameter::filePath (  )  const [inline]

Definition at line 43 of file Parameter.h.

References filePath_.

00043 {return filePath_;}

double stor::Parameter::highWaterMark (  )  const [inline]

Definition at line 46 of file Parameter.h.

References highWaterMark_.

00046 {return highWaterMark_;}

const std::string& stor::Parameter::host (  )  const [inline]

Definition at line 41 of file Parameter.h.

References hostName_.

00041 {return hostName_;}

void stor::Parameter::initialSafetyLevel ( int  i  )  [inline]

Definition at line 61 of file Parameter.h.

References initialSafetyLevel_.

int stor::Parameter::initialSafetyLevel (  )  const [inline]

Definition at line 49 of file Parameter.h.

References initialSafetyLevel_.

00049 {return initialSafetyLevel_;}

double stor::Parameter::lumiSectionTimeOut (  )  const [inline]

Definition at line 47 of file Parameter.h.

References lumiSectionTimeOut_.

00047 {return lumiSectionTimeOut_;}

int stor::Parameter::maxFileSize (  )  const [inline]

Definition at line 45 of file Parameter.h.

References maxFileSize_.

00045 {return maxFileSize_;} 

void stor::Parameter::setExactFileSizeTest ( bool  x  )  [inline]

Definition at line 60 of file Parameter.h.

References exactFileSizeTest_.

void stor::Parameter::setFileCatalog ( std::string  x  )  [inline]

Definition at line 52 of file Parameter.h.

References fileCatalog_.

00052 {fileCatalog_=x;}

void stor::Parameter::setfileName ( std::string  x  )  [inline]

Definition at line 54 of file Parameter.h.

References fileName_.

00054 {fileName_=x;}

void stor::Parameter::setfilePath ( std::string  x  )  [inline]

Definition at line 55 of file Parameter.h.

References filePath_.

00055 {filePath_=x;}

void stor::Parameter::sethighWaterMark ( double  x  )  [inline]

Definition at line 58 of file Parameter.h.

References highWaterMark_.

00058 {highWaterMark_=x;}

void stor::Parameter::setlumiSectionTimeOut ( double  x  )  [inline]

Definition at line 59 of file Parameter.h.

References lumiSectionTimeOut_.

void stor::Parameter::setmaxFileSize ( int  x  )  [inline]

Definition at line 57 of file Parameter.h.

References maxFileSize_.

00057 {maxFileSize_=x;}

void stor::Parameter::setsetupLabel ( std::string  x  )  [inline]

Definition at line 56 of file Parameter.h.

References setupLabel_.

00056 {setupLabel_=x;}

void stor::Parameter::setSmInstance ( std::string  x  )  [inline]

Definition at line 53 of file Parameter.h.

References smInstance_.

00053 {smInstance_=x;}

const std::string& stor::Parameter::setupLabel (  )  const [inline]

Definition at line 44 of file Parameter.h.

References setupLabel_.

00044 {return setupLabel_;}

const std::string& stor::Parameter::smInstance (  )  const [inline]

Definition at line 40 of file Parameter.h.

References smInstance_.

00040 {return smInstance_;}


Member Data Documentation

bool stor::Parameter::exactFileSizeTest_ [private]

Definition at line 74 of file Parameter.h.

Referenced by exactFileSizeTest(), and setExactFileSizeTest().

std::string stor::Parameter::fileCatalog_ [private]

Definition at line 64 of file Parameter.h.

Referenced by fileCatalog(), and setFileCatalog().

std::string stor::Parameter::fileName_ [private]

Definition at line 68 of file Parameter.h.

Referenced by fileName(), and setfileName().

std::string stor::Parameter::filePath_ [private]

Definition at line 69 of file Parameter.h.

Referenced by filePath(), and setfilePath().

double stor::Parameter::highWaterMark_ [private]

Definition at line 72 of file Parameter.h.

Referenced by highWaterMark(), and sethighWaterMark().

std::string stor::Parameter::hostName_ [private]

Definition at line 66 of file Parameter.h.

Referenced by host(), and Parameter().

int stor::Parameter::initialSafetyLevel_ [private]

Definition at line 67 of file Parameter.h.

Referenced by initialSafetyLevel().

double stor::Parameter::lumiSectionTimeOut_ [private]

Definition at line 73 of file Parameter.h.

Referenced by lumiSectionTimeOut(), and setlumiSectionTimeOut().

int stor::Parameter::maxFileSize_ [private]

Definition at line 71 of file Parameter.h.

Referenced by maxFileSize(), and setmaxFileSize().

std::string stor::Parameter::setupLabel_ [private]

Definition at line 70 of file Parameter.h.

Referenced by setsetupLabel(), and setupLabel().

std::string stor::Parameter::smInstance_ [private]

Definition at line 65 of file Parameter.h.

Referenced by setSmInstance(), and smInstance().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:52:52 2009 for CMSSW by  doxygen 1.5.4