Esempio n. 1
0
    def ProcessPathSpec(self, mediator, path_spec):
        """Processes a path specification.

    Args:
      mediator (ParserMediator): mediates interactions between parsers and
          other components, such as storage and dfvfs.
      path_spec (dfvfs.PathSpec): path specification.

    Raises:
      dfvfs_errors.CacheFullError: cache full error.
    """
        raise dfvfs_errors.CacheFullError()
Esempio n. 2
0
  def ProcessPathSpec(self, mediator, path_spec, excluded_find_specs=None):
    """Processes a path specification.

    Args:
      mediator (ParserMediator): mediates the interactions between
          parsers and other components, such as storage and abort signals.
      path_spec (dfvfs.PathSpec): path specification.
      excluded_find_specs (Optional[list[dfvfs.FindSpec]]): find specifications
         that are excluded from processing.

    Raises:
      dfvfs_errors.CacheFullError: cache full error.
    """
    raise dfvfs_errors.CacheFullError()
Esempio n. 3
0
  def CacheObject(self, identifier, vfs_object):
    """Caches a VFS object.

    This method ignores the cache value reference count.

    Args:
      identifier: string that identifies the VFS object.
      vfs_object: the VFS object to cache.

    Raises:
      CacheFullError: if he maximum number of cached values is reached.
      KeyError: if the VFS object already is cached.
    """
    if identifier in self._values:
      raise KeyError(u'Object already cached for identifier: {0:s}'.format(
          identifier))

    if len(self._values) == self._maximum_number_of_cached_values:
      raise errors.CacheFullError(u'Maximum number of cached values reached.')

    self._values[identifier] = ObjectsCacheValue(vfs_object)