Interface CloudStateManager

  • All Known Implementing Classes:
    DBCloudStateManagerImpl

    public interface CloudStateManager
    Since:
    5.0
    Author:
    Eugene Petrenko
    • Method Detail

      • forProfile

        CloudState forProfile​(@NotNull
                              CloudProfile profile)
        Creates cloud-specific storage handle
        Parameters:
        profile - profile
        Returns:
        storage handle
      • markImageWithoutAgent

        void markImageWithoutAgent​(@NotNull
                                   CloudProfile profile,
                                   @NotNull
                                   CloudImage image)
        Marks that created instance will not able to start build agent. Such instances will be expelled from auto-start candidates.
        Parameters:
        profile - profile
        image - image
      • markImageWithAgent

        void markImageWithAgent​(@NotNull
                                CloudProfile profile,
                                @NotNull
                                CloudImage image)
        Marks that create instance will be able to start build agent.
        Parameters:
        profile - profile
        image - image
      • isImageWithAgent

        boolean isImageWithAgent​(@NotNull
                                 CloudProfile profile,
                                 @NotNull
                                 CloudImage image)
        Checks if the image is configured to start agent. If unknown - true is returned
        Parameters:
        profile - profile
        image - image
        Returns:
        true is this image may contain agent, false if it is definitly broken