Interface AgentJdkBundleRegistry

  • All Known Implementing Classes:
    AgentJdkBundleRegistryImpl

    public interface AgentJdkBundleRegistry
    The AgentJdkBundleRegistry interface represents a registry for managing JDK bundles used for building agent distributions.
    • Method Detail

      • isEachBundleUpToDate

        boolean isEachBundleUpToDate​(@NotNull
                                     AgentUpdateInfo newUpdateInfo)
        Checks if each JDK bundle in the registry is up to date with the provided update information.
        Parameters:
        newUpdateInfo - the update information to compare against
        Returns:
        true if each JDK bundle in the registry is up to date, false otherwise
      • isBundleUpToDate

        boolean isBundleUpToDate​(@NotNull
                                 JdkPackageInfo packageInfo,
                                 @NotNull
                                 AgentUpdateInfo newUpdateInfo)
        Checks if a specific JDK bundle in the registry is up to date with the provided update information.
        Parameters:
        packageInfo - the package information for the specific JDK bundle
        newUpdateInfo - the update information to compare against
        Returns:
        true if the specific JDK bundle is up to date, false otherwise
      • addBundle

        void addBundle​(@NotNull
                       File file,
                       @Nullable
                       JdkPackageInfo jdkPackage,
                       @Nullable
                       AgentUpdateInfo initialInfo)
        Adds a JDK bundle to the registry.
        Parameters:
        file - the file representing the JDK bundle
        jdkPackage - the package information for the JDK bundle
        initialInfo - the initial update information for the JDK bundle
      • removeBundle

        void removeBundle​(@NotNull
                          File bundle)
        Removes a JDK bundle from the registry.
        Parameters:
        bundle - the file representing the JDK bundle to remove