Interface CustomDataStorageManager

    • Method Detail

      • unloadUnusedStorages

        int unloadUnusedStorages()
      • getBuildStorageIds

        @NotNull
        Set<String> getBuildStorageIds​(@NotNull
                                       String buildTypeId,
                                       long buildId,
                                       @NotNull
                                       String storageIdPrefix)
        Returns ids of all the custom data storages associated with the specified build type and build and having the specified prefix.
        Parameters:
        buildTypeId - internal build type id
        buildId - id of a build
        storageIdPrefix - storage id prefix
        Returns:
        set of full ids
      • getCustomDataStorage

        @NotNull
        CustomDataStorage getCustomDataStorage​(long parentVcsRootId,
                                               @NotNull
                                               String storageId)
      • getCustomDataStorage

        @NotNull
        CustomDataStorage getCustomDataStorage​(@NotNull
                                               Class<?> clazz)
        Returns storage which uses class name as internal storage id. Such a storage can be used by different services which need to store some data in the database without association of this data with any particular entity. The only purpose of the class argument is to make it more visible what service created this storage.
        Parameters:
        clazz - class of the service/Sptring bean which created and uses this storage
        Returns:
        see above
        Since:
        2020.2
      • destroyProjectStorage

        void destroyProjectStorage​(@NotNull
                                   String projectId)
      • refreshBuildTypeStorages

        void refreshBuildTypeStorages​(@NotNull
                                      Collection<String> buildTypeIds,
                                      @NotNull
                                      String storageId)
      • refreshProjectStorages

        void refreshProjectStorages​(@NotNull
                                    Collection<String> projectIds,
                                    @NotNull
                                    String storageId)