def _saveEventIdData(self):
    '\n        Save an event Id to persistant storage.\n\n        Next time the engine is started it will try to read the event id from\n        this location to know at which event it should start processing.\n        '
    eventIdFile = self.config.getEventIdFile()
    if (eventIdFile is not None):
        for collection in self._pluginCollections:
            self._eventIdData[collection.path] = collection.getState()
        for (colPath, state) in self._eventIdData.items():
            if state:
                try:
                    with open(eventIdFile, 'wb') as fh:
                        pickle.dump(self._eventIdData, fh, protocol=2)
                except OSError as err:
                    self.log.error('Can not write event id data to %s.\n\n%s', eventIdFile, traceback.format_exc(err))
                break
        else:
            self.log.warning('No state was found. Not saving to disk.')
Save an event Id to persistant storage.

Next time the engine is started it will try to read the event id from
this location to know at which event it should start processing.
def _saveEventIdData(self):
    '\n        Save an event Id to persistant storage.\n\n        Next time the engine is started it will try to read the event id from\n        this location to know at which event it should start processing.\n        '
    eventIdFile = self.config.getEventIdFile()
    if (eventIdFile is not None):
        for collection in self._pluginCollections:
            self._eventIdData[collection.path] = collection.getState()
        for (colPath, state) in self._eventIdData.items():
            if state:
                try:
                    with open(eventIdFile, 'wb') as fh:
                        pickle.dump(self._eventIdData, fh, protocol=2)
                except OSError as err:
                    self.log.error('Can not write event id data to %s.\n\n%s', eventIdFile, traceback.format_exc(err))
                break
        else:
            self.log.warning('No state was found. Not saving to disk.')