Class DirectoryMapImpl

  • All Implemented Interfaces:
    DirectoryMap

    public class DirectoryMapImpl
    extends Object
    implements DirectoryMap
    User: kir

    This class is responsible for maintaining of directory.map file and for maintaining directories with project sources.

    • Method Detail

      • getRegisteredRemovableItems

        @NotNull
        public Map<File,​Date> getRegisteredRemovableItems​(@NotNull
                                                                AgentRunningBuild runningBuild)
        Description copied from interface: DirectoryMap
        This method returns map of all allocated checkout directories with last use time. The map should not contain any directories associated with currently running build.
        Specified by:
        getRegisteredRemovableItems in interface DirectoryMap
        Parameters:
        runningBuild - current running build to filter results
        Returns:
        map of all registered folders to remove to last use time
      • removeCheckoutDirectory

        public boolean removeCheckoutDirectory​(@NotNull
                                               AgentRunningBuild runningBuild,
                                               @NotNull
                                               File checkoutDirectory)
        Description copied from interface: DirectoryMap
        This method is called to request DirectoryMap to remove specified checkout folder. The folder may not be removed if it used by currently running build or DirectoryLifetime denies it.
        Specified by:
        removeCheckoutDirectory in interface DirectoryMap
        Parameters:
        runningBuild - currently running build
        checkoutDirectory - checkout directory to remove
        Returns:
        true iff checkout directory was removed
      • removeCheckoutDirectory

        public boolean removeCheckoutDirectory​(@NotNull
                                               File checkoutDirectory)
        Description copied from interface: DirectoryMap
        This method is called to request DirectoryMap to remove specified checkout folder. The folder may not be removed if DirectoryLifeTime denies it.
        Specified by:
        removeCheckoutDirectory in interface DirectoryMap
        Parameters:
        checkoutDirectory - checkout directory to remove
        Returns:
        true if checkout directory was removed
      • getRegisteredRemovableItems

        @NotNull
        public Map<File,​Date> getRegisteredRemovableItems()
        Description copied from interface: DirectoryMap
        This method returns map of all allocated checkout directories with last use time.
        Specified by:
        getRegisteredRemovableItems in interface DirectoryMap
        Returns:
        map of all registered folders to remove to last use time