Exemple #1
0
    def store(self, where):
        """store(self,where)

        Stores current coordination map in "where".
        Right now, where should be a file object.
        """
        # This could be improved using get_machines, etc.
        CoordinationInformationMapper.dump_to_file(self._map, where)
    def store(self,where):
        """store(self,where)

        Stores current coordination map in "where".
        Right now, where should be a file object.
        """
        # This could be improved using get_machines, etc.
        CoordinationInformationMapper.dump_to_file(
                    self._map,
                    where
                )
Exemple #3
0
    def load(self, where):
        """ load(self,where)

        Loads current coordination map from "where".
        Right now, where should be a file object.

        Can raise any voodoo.gen.exceptions.coordination.CoordMappingError
        exception
        """
        # This could be improved using get_machines, etc.
        self._map = CoordinationInformationMapper.load_from_file(where)
    def load(self,where):
        """ load(self,where)

        Loads current coordination map from "where".
        Right now, where should be a file object.

        Can raise any voodoo.gen.exceptions.coordination.CoordMappingError
        exception
        """
        # This could be improved using get_machines, etc.
        self._map = CoordinationInformationMapper.load_from_file(
                    where
                )