def get_bdii_data(self): import ldapMonitor common.logit("BDII host: %s" % self.glidein.bdii_host()) #-- validate host --- if not common.url_is_valid(self.glidein.bdii_host()): common.logerr("BDII server (%s) in bdii_host option is not valid or inaccssible." % self.glidein.bdii_host()) #-- get gatekeeper data from BDII -- constraint = self.glidein.bdii_vo_constraint() common.logit("Supported VOs: %s" % self.glidein.entry_vos()) common.logit("Constraints: %s" % constraint) try: bdii_obj=ldapMonitor.BDIICEQuery(self.glidein.bdii_host(),additional_filter_str=constraint) bdii_obj.load() bdii_data=bdii_obj.fetchStored() except Exception,e: common.logerr(e)
def get_ress_data(self): import condorMonitor common.logit("ReSS host: %s" % self.glidein.ress_host()) #-- validate host --- if not common.url_is_valid(self.glidein.ress_host()): common.logerr("ReSS server (%s) in ress_host option is not valid or inaccssible." % self.glidein.ress_host()) #-- get gatekeeper data from ReSS -- common.logit("Supported VOs: %s" % self.glidein.entry_vos()) constraint = self.glidein.ress_vo_constraint() common.logit("Constraints: %s" % constraint) condor_obj=condorMonitor.CondorStatus(pool_name=self.glidein.ress_host()) try: condor_obj.load(constraint=constraint) condor_data=condor_obj.fetchStored() except Exception,e: common.logerr(e)