def runHLTopts(name='HLT', sim=None): """ Execute job options writer for the HLT farm. Arguments: @param name System name @param sim (Dummy) @author M.Frank """ import Online.PVSS as PVSS import Online.AllocatorControl as Control import Online.RunInfoClasses.HLTFarm as RI import Online.JobOptions.OptionsWriter as JobOptions info = RI.HLTFarmInfoCreator() mgr = _mgr(PVSS.defaultSystemName()) writer = JobOptions.HLTOptionsWriter(mgr, name, info) ctrl = Control.Control(mgr, name + 'JobOptions', 'Writer', [writer]).run() return (ctrl, run(name, mgr, sim))
self.servers[nam] = srv log('Started display server:'+self.servers[nam].name,timestamp=1) elif i.data<=0 and self.servers[nam] is not None: log('Stop display server:'+self.servers[nam].name,timestamp=1) self.servers[nam].stop() self.servers[nam] = None return 1 # =========================================================================== def sleep(): "Serve controls requests in daemon mode" if PVSS.batchMode(): Online.Utils.log('Sleeping ....',timestamp=1) else: print 'Sleeping ....' sys.stdout.flush() try: while(1): time.sleep(1) except Exception,X: print 'Exception:',str(X) except: print 'Unknown Exception' if __name__=="__main__": mgr = PVSS.controlsMgr() if PVSS.defaultSystemName()[:3]=='HLT': mgr = BaseDisplayServerManager(mgr) else: mgr = DisplayServerManager(mgr) mgr.run() sleep()
def targetHLT(self): return PVSS.defaultSystemName()+'_FSMDisplay.Tasks'
def runDataflow(): import Online.PVSSSystems as Systems mgr = DisplayManager(Systems.controlsMgr(PVSS.defaultSystemName())).run() managers = [mgr] sleep(managers)