CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
esMonitoring.FDJsonServer Class Reference
Inheritance diagram for esMonitoring.FDJsonServer:

Public Member Functions

def __init__ (self, es, args)
 
def cleanup (self)
 
def handle_accept (self)
 
def handle_close (self)
 

Public Attributes

 args
 
 es
 
 fn
 

Detailed Description

Definition at line 295 of file esMonitoring.py.

Constructor & Destructor Documentation

◆ __init__()

def esMonitoring.FDJsonServer.__init__ (   self,
  es,
  args 
)

Definition at line 296 of file esMonitoring.py.

296  def __init__(self, es, args):
297  asyncore.dispatcher.__init__(self)
298 
299  self.fn = None
300  self.es = es
301  self.args = args
302 
303  prefix = "/tmp"
304  if os.path.isdir(self.args.path):
305  prefix = self.args.path
306 
307  base = ".es_monitoring_pid%08d" % os.getpid()
308  self.fn = os.path.join(prefix, base)
309 
310  if self.args.debug:
311  log("Socket path: %s" % self.fn)
312 
313  if os.path.exists(self.fn):
314  os.unlink(self.fn)
315 
316  self.create_socket(socket.AF_UNIX, socket.SOCK_STREAM)
317  oldmask = os.umask(0o077)
318  try:
319  self.bind(self.fn)
320  self.listen(5)
321  finally:
322  os.umask(oldmask)
323  pass
324 
325  atexit.register(self.cleanup)
326 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ cleanup()

def esMonitoring.FDJsonServer.cleanup (   self)

Definition at line 327 of file esMonitoring.py.

References esMonitoring.FDJsonServer.fn.

Referenced by esMonitoring.FDJsonServer.handle_close().

327  def cleanup(self):
328  if self.fn is not None:
329  if os.path.exists(self.fn):
330  os.unlink(self.fn)
331 

◆ handle_accept()

def esMonitoring.FDJsonServer.handle_accept (   self)

Definition at line 332 of file esMonitoring.py.

References fwlite::EventSelector.accept(), DDFilter.accept(), DTNeutronWriter.accept(), CSCNeutronWriter.accept(), RPCNeutronWriter.accept(), ParticleDecayDrawer.accept(), DDPassAllFilter.accept(), DDNameFilter.accept(), fwlite::RunLumiSelector.accept(), ParticleTreeDrawer.accept(), EcalZeroSuppressor< C >.accept(), EcalZeroSuppressor< EEDataFrame >.accept(), EcalZeroSuppressor< EBDataFrame >.accept(), FileReaderDCC.accept(), FileReaderDDU.accept(), DDSpecificsFilter.accept(), BPHHistoSpecificDecay::CandidateSelect.accept(), SubsystemNeutronWriter.accept(), BPHParticleNeutralVeto.accept(), BPHParticlePtSelect.accept(), BPHParticleEtaSelect.accept(), BPHMuonEtaSelect.accept(), BPHParticleChargeSelect.accept(), BPHMuonPtSelect.accept(), BPHMuonChargeSelect.accept(), BPHChi2Select.accept(), BPHKinFitChi2Select.accept(), Filter.accept(), BPHMassSelect.accept(), BPHMomentumSelect.accept(), edm::HLTGlobalStatus.accept(), BPHFitSelect.accept(), BPHVertexSelect.accept(), BPHMassSymSelect.accept(), BPHRecoSelect.accept(), edm::HLTPathStatus.accept(), edm::TriggerResultsByName.accept(), RunBasedHistograms::HLTRatesPlots.accept, DDSpecificsHasNamedValueFilter.accept(), HLTLogMonitorFilter::CategoryEntry.accept(), BPHMassFitSelect.accept(), DDSpecificsMatchesValueFilter.accept(), fwlite::ObjectCountSelector< Collection >.accept(), DDAndFilter< F1, F2 >.accept(), BPHDecayToResResBuilderBase::DZSelect.accept(), TriggerHelper.accept(), TkPixelMeasurementDet.accept(), EcalSelectiveReadoutSuppressor.accept(), BPHRecoBuilder.accept(), FilterOR.accept(), BPHSlimSelect< T >.accept(), GenericTriggerEventFlag.accept(), BPHSoftMuonSelect.accept(), BPHFullSelect< T >.accept(), FilterSelection.accept(), BPHDaughterSelect.accept(), cms::DDFilteredView.accept(), BPHCompositeBasicSelect.accept(), BPHFittedBasicSelect.accept(), TkStripMeasurementDet.accept(), l1t::GlobalBoard::PrescaleCounter.accept(), BPHGenericVertexSelect.accept(), esMonitoring.FDJsonHandler.es, and esMonitoring.FDJsonServer.es.

332  def handle_accept(self):
333  pair = self.accept()
334  if pair is not None:
335  handler = FDJsonHandler(pair[0], self.es)
336 

◆ handle_close()

def esMonitoring.FDJsonServer.handle_close (   self)

Definition at line 337 of file esMonitoring.py.

References DrawPlot.cleanup(), PFCandIsolatorFromDeposits::SingleDeposit.cleanup(), DDI::Finalize< I >.cleanup(), DDI::Finalize< I * >.cleanup(), esMonitoring.FDJsonServer.cleanup(), cmsHarvester.CMSHarvester.cleanup(), edm::storage::RemoteFile.close(), edm::storage::StorageAccount.close, AlignmentCorrelationsIO.close(), TritonMemResource< IO >.close(), AlignmentParametersIO.close(), AlignmentCorrelationsIORoot.close(), trklet::HistBase.close(), AlignmentUserVariablesIO.close(), AlignableDataIO.close(), RawFile.close(), evf::EvFOutputEventWriter.close(), AlignableDataIORoot.close(), edm::storage::LStoreFile.close(), binary_ofstream.close(), edm::storage::DavixFile.close(), edm::storage::DCacheFile.close(), edm::storage::LocalCacheFile.close(), MuonErrorMatrix.close(), AlignmentParametersIORoot.close(), edm::streamer::OutputFile.close(), magneticfield::interpolation::binary_ifstream.close(), HIPUserVariablesIORoot.close(), edm::storage::StorageAccountProxy.close(), ALIFileIn.close(), looper.Setup.close(), edm::storage::XrdFile.close(), cond::persistency::PayloadReader.close(), evf::GlobalEvFOutputEventWriter.close(), edm::storage::File.close(), TritonCpuShmResource< IO >.close(), L1GtVhdlTemplateFile.close(), cond::persistency::SessionImpl.close(), StreamerOutputFile.close(), L1GtPatternWriter.close(), MillePedeVariablesIORoot.close(), DTTPGLutFile.close(), L1TriggerLutFile.close(), edm::storage::Storage.close(), cond::persistency::Session.close(), DQM.DQMReader.close(), edm::RootOutputTree.close(), mkfit::DataFile.close(), edm::RootTree.close(), edm::FileBlock.close(), cond::CSScopedSession.close(), edm::RootFile.close(), and cond::persistency::TransactionScope.close().

337  def handle_close(self):
338  self.close()
339  self.cleanup()
340 

Member Data Documentation

◆ args

esMonitoring.FDJsonServer.args

Definition at line 301 of file esMonitoring.py.

◆ es

esMonitoring.FDJsonServer.es

◆ fn

esMonitoring.FDJsonServer.fn

Definition at line 299 of file esMonitoring.py.

Referenced by esMonitoring.FDJsonServer.cleanup().