Пример #1
0
 def copy_pd(self, pd, ps_new):
     ps_new.create_pd(pd)
     self.__filemanager.copy_pd(pd, ps_new)
     
     # update meta data at ps_new
     ps_new.pilot_data[pd.id] = pd
     CoordinationAdaptor.update_ps(ps_new)
Пример #2
0
 def remove_pd(self, pd):
     """ Remove pilot data from pilot store """
     if self.pilot_data.has_key(pd.id):
         self.__filemanager.remove_pd(pd)
         del self.pilot_data[pd.id]
     CoordinationAdaptor.update_ps(self)
Пример #3
0
 def put_pd(self, pd):
     logging.debug("Put PD: %s to PS: %s"%(pd.id,self.service_url))
     self.__filemanager.create_pd(pd.id)
     self.__filemanager.put_pd(pd)
     self.pilot_data[pd.id] = pd
     CoordinationAdaptor.update_ps(self)