Interface DirectoryMapStructure

  • All Known Implementing Classes:
    DirectoryMapStructureImpl

    public interface DirectoryMapStructure
    Author:
    Eugene Petrenko (eugene.petrenko@gmail.com) Date: 16.03.11 19:40
    • Method Detail

      • getCorrespondingBuildTypes

        @NotNull
        List<String> getCorrespondingBuildTypes​(@NotNull
                                                File location)
      • calculateExpireTimeout

        @Nullable
        Long calculateExpireTimeout​(long now,
                                    long defaultExpireTime,
                                    Set<File> toRemove,
                                    @Nullable
                                    Filter<DirectoryMapItem> filter)
        Calculates when one or more folders from agent's working dir will expire and adds all expired folders to toRemove set.
        Parameters:
        now - current timestamp
        defaultExpireTime - default expire time
        toRemove - set to fill with folders that are already expired
        Returns:
        number of milliseconds to wait for next cleanup or null if no cleanup will be required.
        Null means "do not queue next cleanup until directory.map changes".
      • removeItems

        @NotNull
        Collection<File> removeItems​(@NotNull
                                     Filter<DirectoryMapItem> itemsFilter)
        Removes items from directory map satisfying the specified filter
        Parameters:
        itemsFilter - if filter returns true, item must be removed
        Returns:
        set of root directories to remove from disk