Beispiel #1
0
	def rpc_setup(self, htype_id):
		logging.info("Setting up service side %s", htype_id)
		self.img = images.phaul_images("rst")

		self.criu_connection = criu_api.criu_conn(self._mem_sk)
		self.htype = htype.get_dst(htype_id)

		# Create and start fs receiver if current p.haul module provide it
		self.__fs_receiver = self.htype.get_fs_receiver(self._fs_sk)
		if self.__fs_receiver:
			self.__fs_receiver.start()
	def rpc_setup(self, htype_id, mode):

		logging.info("Setting up service side %s", htype_id)
		self.__mode = mode

		self.htype = htype.get_dst(htype_id)

		self.__fs_receiver = self.htype.get_fs_receiver(self.connection.fdfs)
		if self.__fs_receiver:
			self.__fs_receiver.start_receive()

		if iters.is_live_mode(self.__mode):
			self.img = images.phaul_images("rst")
			self.criu_connection = criu_api.criu_conn(self.connection.mem_sk)