CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
esMonitoring.History Class Reference
Inheritance diagram for esMonitoring.History:

Public Member Functions

def __init__
 
def flush
 
def pop
 
def push
 
def read
 
def write
 

Public Attributes

 buf
 
 max_size
 
 size
 

Detailed Description

Definition at line 150 of file esMonitoring.py.

Constructor & Destructor Documentation

def esMonitoring.History.__init__ (   self,
  history_size = 64*1024 
)

Definition at line 151 of file esMonitoring.py.

152  def __init__(self, history_size=64*1024):
153  self.max_size = history_size
154  self.buf = collections.deque()
155  self.size = 0

Member Function Documentation

def esMonitoring.History.flush (   self)

Definition at line 179 of file esMonitoring.py.

180  def flush(self):
181  pass
def esMonitoring.History.pop (   self)

Definition at line 156 of file esMonitoring.py.

References base64_decode_context.buf, esMonitoring.History.buf, cond::persistency::GLOBAL_TAG::NAME.size, cond::persistency::TAG::NAME.size, cond::persistency::TAG::TIME_TYPE.size, cond::persistency::GLOBAL_TAG::VALIDITY.size, cond::persistency::TAG::OBJECT_TYPE.size, cond::persistency::GLOBAL_TAG::DESCRIPTION.size, cond::persistency::GLOBAL_TAG::RELEASE.size, cond::persistency::TAG::SYNCHRONIZATION.size, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.size, cond::persistency::TAG::END_OF_VALIDITY.size, cond::persistency::GLOBAL_TAG::INSERTION_TIME.size, cond::persistency::TAG::DESCRIPTION.size, cond::persistency::TAG::LAST_VALIDATED_TIME.size, cond::persistency::TAG::INSERTION_TIME.size, cond::persistency::TAG::MODIFICATION_TIME.size, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.size, cond::persistency::GLOBAL_TAG_MAP::RECORD.size, reco::Vertex.size, cond::persistency::GLOBAL_TAG_MAP::LABEL.size, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.size, SiPixelClusterShapeCache::Field.size, cond::persistency::PAYLOAD::HASH.size, edmNew::dstvdetails::DetSetVectorTrans::Item.size, cond::persistency::PAYLOAD::OBJECT_TYPE.size, reco::Candidate.size, SiStripLAProfileBooker.size, cond::persistency::PAYLOAD::DATA.size, cond::persistency::PAYLOAD::STREAMER_INFO.size, cond::persistency::PAYLOAD::VERSION.size, cond::persistency::PAYLOAD::INSERTION_TIME.size, cond::TagInfo_t.size, cond::persistency::IOV::TAG_NAME.size, cond::persistency::IOV::SINCE.size, cond::persistency::IOV::PAYLOAD_HASH.size, cond::persistency::IOV::INSERTION_TIME.size, cond::persistency::IOV::MAX_SINCE.size, cond::persistency::IOV::SINCE_GROUP.size, cond::persistency::IOV::SEQUENCE_SIZE.size, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.size, cond::persistency::TAG_MIGRATION::SOURCE_TAG.size, cond::persistency::TAG_MIGRATION::TAG_NAME.size, cond::persistency::TAG_MIGRATION::STATUS_CODE.size, cond::persistency::TAG_MIGRATION::INSERTION_TIME.size, and esMonitoring.History.size.

Referenced by esMonitoring.History.write().

157  def pop(self):
158  if not len(self.buf):
159  return None
160 
161  elm = self.buf.popleft()
162  self.size -= len(elm)
163 
164  return elm
def esMonitoring.History.push (   self,
  rbuf 
)

Definition at line 165 of file esMonitoring.py.

References cond::persistency::GLOBAL_TAG::NAME.size, cond::persistency::TAG::NAME.size, cond::persistency::GLOBAL_TAG::VALIDITY.size, cond::persistency::TAG::TIME_TYPE.size, cond::persistency::GLOBAL_TAG::DESCRIPTION.size, cond::persistency::TAG::OBJECT_TYPE.size, cond::persistency::TAG::SYNCHRONIZATION.size, cond::persistency::GLOBAL_TAG::RELEASE.size, cond::persistency::TAG::END_OF_VALIDITY.size, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.size, cond::persistency::GLOBAL_TAG::INSERTION_TIME.size, cond::persistency::TAG::DESCRIPTION.size, cond::persistency::TAG::LAST_VALIDATED_TIME.size, cond::persistency::TAG::INSERTION_TIME.size, cond::persistency::TAG::MODIFICATION_TIME.size, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.size, cond::persistency::GLOBAL_TAG_MAP::RECORD.size, reco::Vertex.size, cond::persistency::GLOBAL_TAG_MAP::LABEL.size, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.size, SiPixelClusterShapeCache::Field.size, cond::persistency::PAYLOAD::HASH.size, edmNew::dstvdetails::DetSetVectorTrans::Item.size, cond::persistency::PAYLOAD::OBJECT_TYPE.size, reco::Candidate.size, SiStripLAProfileBooker.size, cond::persistency::PAYLOAD::DATA.size, cond::persistency::PAYLOAD::STREAMER_INFO.size, cond::persistency::PAYLOAD::VERSION.size, cond::persistency::PAYLOAD::INSERTION_TIME.size, cond::TagInfo_t.size, cond::persistency::IOV::TAG_NAME.size, cond::persistency::IOV::SINCE.size, cond::persistency::IOV::PAYLOAD_HASH.size, cond::persistency::IOV::INSERTION_TIME.size, cond::persistency::IOV::MAX_SINCE.size, cond::persistency::IOV::SINCE_GROUP.size, cond::persistency::IOV::SEQUENCE_SIZE.size, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.size, cond::persistency::TAG_MIGRATION::SOURCE_TAG.size, cond::persistency::TAG_MIGRATION::TAG_NAME.size, cond::persistency::TAG_MIGRATION::STATUS_CODE.size, cond::persistency::TAG_MIGRATION::INSERTION_TIME.size, and esMonitoring.History.size.

Referenced by esMonitoring.History.write().

166  def push(self, rbuf):
167  self.buf.append(rbuf)
168  self.size += len(rbuf)
def esMonitoring.History.read (   self)

Definition at line 176 of file esMonitoring.py.

References base64_decode_context.buf, esMonitoring.History.buf, and join().

Referenced by Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.setFilterBranches().

177  def read(self):
178  return "".join(self.buf)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def esMonitoring.History.write (   self,
  rbuf 
)

Definition at line 169 of file esMonitoring.py.

References esMonitoring.History.max_size, frozendict.frozendict.pop, HTimerStack.pop(), DictTypes.SortedAndFixedKeysDict.pop, dqmservices::DQMFileIterator.pop(), DictTypes.FixedKeysDict.pop, python.seqvaluedict.seqdict.pop(), esMonitoring.History.pop(), Config.FilteredStream.pop, HTimerStack.push(), ora::MultiIndexDataTrie.push(), reco::parser::ExpressionVarSetter.push(), reco::parser::MethodSetter.push(), python.seqvaluedict.seqdict.push(), esMonitoring.History.push(), cond::persistency::GLOBAL_TAG::NAME.size, cond::persistency::TAG::NAME.size, cond::persistency::GLOBAL_TAG::VALIDITY.size, cond::persistency::TAG::TIME_TYPE.size, cond::persistency::GLOBAL_TAG::DESCRIPTION.size, cond::persistency::TAG::OBJECT_TYPE.size, cond::persistency::TAG::SYNCHRONIZATION.size, cond::persistency::GLOBAL_TAG::RELEASE.size, cond::persistency::TAG::END_OF_VALIDITY.size, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.size, cond::persistency::GLOBAL_TAG::INSERTION_TIME.size, cond::persistency::TAG::DESCRIPTION.size, cond::persistency::TAG::LAST_VALIDATED_TIME.size, cond::persistency::TAG::INSERTION_TIME.size, cond::persistency::TAG::MODIFICATION_TIME.size, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.size, cond::persistency::GLOBAL_TAG_MAP::RECORD.size, reco::Vertex.size, cond::persistency::GLOBAL_TAG_MAP::LABEL.size, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.size, SiPixelClusterShapeCache::Field.size, cond::persistency::PAYLOAD::HASH.size, edmNew::dstvdetails::DetSetVectorTrans::Item.size, cond::persistency::PAYLOAD::OBJECT_TYPE.size, reco::Candidate.size, SiStripLAProfileBooker.size, cond::persistency::PAYLOAD::DATA.size, cond::persistency::PAYLOAD::STREAMER_INFO.size, cond::persistency::PAYLOAD::VERSION.size, cond::persistency::PAYLOAD::INSERTION_TIME.size, cond::TagInfo_t.size, cond::persistency::IOV::TAG_NAME.size, cond::persistency::IOV::SINCE.size, cond::persistency::IOV::PAYLOAD_HASH.size, cond::persistency::IOV::INSERTION_TIME.size, cond::persistency::IOV::MAX_SINCE.size, cond::persistency::IOV::SINCE_GROUP.size, cond::persistency::IOV::SEQUENCE_SIZE.size, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.size, cond::persistency::TAG_MIGRATION::SOURCE_TAG.size, cond::persistency::TAG_MIGRATION::TAG_NAME.size, cond::persistency::TAG_MIGRATION::STATUS_CODE.size, cond::persistency::TAG_MIGRATION::INSERTION_TIME.size, and esMonitoring.History.size.

Referenced by pkg.AbstractPkg.generate().

170  def write(self, rbuf):
171  l = len(rbuf)
172  while (self.size + l) >= self.max_size:
173  self.pop()
174 
175  self.push(rbuf)

Member Data Documentation

esMonitoring.History.buf

Definition at line 153 of file esMonitoring.py.

Referenced by esMonitoring.History.pop(), esMonitoring.History.read(), and esMonitoring.JsonInput.write().

esMonitoring.History.max_size

Definition at line 152 of file esMonitoring.py.

Referenced by esMonitoring.History.write().

esMonitoring.History.size

Definition at line 154 of file esMonitoring.py.

Referenced by cuy.FindIssue.__init__(), esMonitoring.History.pop(), esMonitoring.History.push(), and esMonitoring.History.write().