Interface CloudManagerBase

  • All Known Implementing Classes:
    CloudManagerBaseImpl

    public interface CloudManagerBase
    Server-side cloud manager.
    • Method Detail

      • isIntegrationEnabled

        boolean isIntegrationEnabled​(@NotNull
                                     String projectId)
        Parameters:
        projectId -
        Returns:
        true if cloud integration is enabled in the project with given id
      • isConfigurable

        boolean isConfigurable​(@NotNull
                               String projectId)
        Returns true if user can enable/disable configuration in the current project's tree
        Parameters:
        projectId - project internal id
        Returns:
        see above
      • listAllProfiles

        @NotNull
        Collection<CloudProfile> listAllProfiles()
        Returns all profiles available on server across all projects. CloudProfile#profileId is guaranteed to be unique in this list
        Returns:
      • getCloudTypes

        @NotNull
        Collection<? extends CloudType> getCloudTypes()
        Returns all available "Real" cloud types, excluding ReadOnlyClient (which is not a "real" cloud type, but rather used to show instances on the secondary nodes).
        Returns:
        list of types. No order specified
      • findProfileGloballyById

        @Nullable
        CloudProfile findProfileGloballyById​(@NotNull
                                             String profileId)
      • getClientIfExistsByProjectExtId

        CloudClientEx getClientIfExistsByProjectExtId​(String projectExtId,
                                                      @NotNull
                                                      String profileId)
      • disposeClient

        void disposeClient​(@NotNull
                           String projectId,
                           @NotNull
                           String profileId)
        Disposes resources related to a specific cloud profile.
        Parameters:
        projectId - the ID of the project
        profileId - the ID of the cloud profile
      • getProjectIntegrationStatus

        @Nullable
        ProjectCloudIntegrationStatus getProjectIntegrationStatus​(String projectId)
        Parameters:
        projectId - - project internal id
        Returns:
        returns cloud integration status information in this project; null, if project doesn't have any information (inherits from parent project)
      • removeProfile

        boolean removeProfile​(@NotNull
                              String projectId,
                              @NotNull
                              String profileId)
      • setProfileEnabled

        void setProfileEnabled​(@NotNull
                               String projectId,
                               @NotNull
                               String profileId,
                               boolean enabled)
      • deleteImage

        void deleteImage​(@NotNull
                         String projectId,
                         @NotNull
                         String profileId,
                         @NotNull
                         String imageId)
        Deletes a cloud image with the specified imageId from a cloud profile
        Parameters:
        projectId - The ID of the project that the image belongs to. Cannot be null.
        profileId - The ID of the profile that the image belongs to. Cannot be null.
        imageId - The ID of the image to be deleted. Cannot be null.
      • findProfileByImageId

        @Nullable
        CloudProfile findProfileByImageId​(@NotNull
                                          String imageId)