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.LineHistoryStart Class Reference
Inheritance diagram for esMonitoring.LineHistoryStart:
esMonitoring.LineHistoryEnd

Public Member Functions

def __init__
 
def write
 
- Public Member Functions inherited from esMonitoring.LineHistoryEnd
def __init__
 
def pop
 
def push
 
def to_json
 
def write
 

Public Attributes

 done
 
- Public Attributes inherited from esMonitoring.LineHistoryEnd
 buf
 
 max_bytes
 
 max_lines
 
 size
 

Detailed Description

Definition at line 189 of file esMonitoring.py.

Constructor & Destructor Documentation

def esMonitoring.LineHistoryStart.__init__ (   self,
  kargs,
  kwargs 
)

Definition at line 190 of file esMonitoring.py.

191  def __init__(self, *kargs, **kwargs):
192  LineHistoryEnd.__init__(self, *kargs, **kwargs)
193  self.done = False

Member Function Documentation

def esMonitoring.LineHistoryStart.write (   self,
  line 
)

Definition at line 194 of file esMonitoring.py.

References fbuf.buf, cfstream.buf, base64_decode_context.buf, esMonitoring.LineHistoryEnd.buf, esMonitoring.LineHistoryStart.done, esMonitoring.LineHistoryEnd.max_bytes, esMonitoring.LineHistoryEnd.max_lines, ora::MultiIndexDataTrie.push(), reco::parser::ExpressionVarSetter.push(), reco::parser::MethodSetter.push(), python.seqvaluedict.seqdict.push(), esMonitoring.LineHistoryEnd.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::TAG::OBJECT_TYPE.size, cond::persistency::COND_LOG_TABLE::EXECTIME.size, cond::persistency::GLOBAL_TAG::DESCRIPTION.size, cond::persistency::TAG::SYNCHRONIZATION.size, cond::persistency::COND_LOG_TABLE::IOVTAG.size, cond::persistency::GLOBAL_TAG::RELEASE.size, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.size, cond::persistency::TAG::END_OF_VALIDITY.size, cond::persistency::COND_LOG_TABLE::USERTEXT.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, reco::Candidate.size, cond::persistency::GLOBAL_TAG_MAP::LABEL.size, SiPixelClusterShapeCache::Field.size, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.size, cond::persistency::PAYLOAD::HASH.size, cond::persistency::PAYLOAD::OBJECT_TYPE.size, SiStripLAProfileBooker.size, cond::persistency::PAYLOAD::DATA.size, cond::persistency::PAYLOAD::STREAMER_INFO.size, edmNew::dstvdetails::DetSetVectorTrans::Item.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::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, cond::persistency::PAYLOAD_MIGRATION::SOURCE_ACCOUNT.size, esMonitoring.LineHistoryEnd.size, cond::persistency::PAYLOAD_MIGRATION::SOURCE_TOKEN.size, cond::persistency::PAYLOAD_MIGRATION::PAYLOAD_HASH.size, and cond::persistency::PAYLOAD_MIGRATION::INSERTION_TIME.size.

Referenced by pkg.AbstractPkg.generate().

195  def write(self, line):
196  if self.done:
197  return
198 
199  if ((self.size + len(line)) > self.max_bytes):
200  self.done = True
201  return
202 
203  if (len(self.buf) > self.max_lines):
204  self.done = True
205  return
206 
207  self.push(line)

Member Data Documentation

esMonitoring.LineHistoryStart.done

Definition at line 192 of file esMonitoring.py.

Referenced by esMonitoring.LineHistoryStart.write().