Interface AgentJdkBundleRegistry
-
- All Known Implementing Classes:
AgentJdkBundleRegistryImpl
public interface AgentJdkBundleRegistryThe AgentJdkBundleRegistry interface represents a registry for managing JDK bundles used for building agent distributions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAgentJdkBundleRegistry.AgentJdkBundleInfo
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBundle(File file, JdkPackageInfo jdkPackage, AgentUpdateInfo initialInfo)Adds a JDK bundle to the registry.AgentJdkBundleRegistry.AgentJdkBundleInfogetBundle(JdkPackageInfo jdkPackage)Retrieves a JDK bundle from the registry.booleanisBundleUpToDate(JdkPackageInfo packageInfo, AgentUpdateInfo newUpdateInfo)Checks if a specific JDK bundle in the registry is up to date with the provided update information.booleanisEachBundleUpToDate(AgentUpdateInfo newUpdateInfo)Checks if each JDK bundle in the registry is up to date with the provided update information.List<AgentJdkBundleRegistry.AgentJdkBundleInfo>listAllBundles()Lists all JDK bundles in the registry.voidremoveBundle(File bundle)Removes a JDK bundle from the registry.
-
-
-
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
-
listAllBundles
@NotNull List<AgentJdkBundleRegistry.AgentJdkBundleInfo> listAllBundles()
Lists all JDK bundles in the registry.- Returns:
- a list of all JDK bundles in the registry
-
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 bundlenewUpdateInfo- 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 bundlejdkPackage- the package information for the JDK bundleinitialInfo- 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
-
getBundle
AgentJdkBundleRegistry.AgentJdkBundleInfo getBundle(@NotNull JdkPackageInfo jdkPackage)
Retrieves a JDK bundle from the registry.- Parameters:
jdkPackage- the package information for the desired JDK bundle- Returns:
- the information on the desired JDK bundle
-
-