Class AgentJdkBundleRegistryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.agent.AgentJdkBundleRegistryImpl
-
- All Implemented Interfaces:
AgentJdkBundleRegistry
public class AgentJdkBundleRegistryImpl extends Object implements AgentJdkBundleRegistry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.impl.agent.AgentJdkBundleRegistry
AgentJdkBundleRegistry.AgentJdkBundleInfo
-
-
Constructor Summary
Constructors Constructor Description AgentJdkBundleRegistryImpl(JdkPackageProvider jdkPackageProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBundle(File file, JdkPackageInfo jdkPackage, AgentUpdateInfo updateInfo)
Adds a JDK bundle to the registry.AgentJdkBundleRegistry.AgentJdkBundleInfo
getBundle(JdkPackageInfo packageInfo)
Retrieves a JDK bundle from the registry.boolean
isBundleUpToDate(JdkPackageInfo packageInfo, AgentUpdateInfo newUpdateInfo)
Checks if a specific JDK bundle in the registry is up to date with the provided update information.boolean
isEachBundleUpToDate(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.void
removeBundle(File file)
Removes a JDK bundle from the registry.
-
-
-
Constructor Detail
-
AgentJdkBundleRegistryImpl
public AgentJdkBundleRegistryImpl(@NotNull JdkPackageProvider jdkPackageProvider)
-
-
Method Detail
-
isEachBundleUpToDate
public boolean isEachBundleUpToDate(@NotNull AgentUpdateInfo newUpdateInfo)
Description copied from interface:AgentJdkBundleRegistry
Checks if each JDK bundle in the registry is up to date with the provided update information.- Specified by:
isEachBundleUpToDate
in interfaceAgentJdkBundleRegistry
- Parameters:
newUpdateInfo
- the update information to compare against- Returns:
- true if each JDK bundle in the registry is up to date, false otherwise
-
isBundleUpToDate
public boolean isBundleUpToDate(@NotNull JdkPackageInfo packageInfo, @NotNull AgentUpdateInfo newUpdateInfo)
Description copied from interface:AgentJdkBundleRegistry
Checks if a specific JDK bundle in the registry is up to date with the provided update information.- Specified by:
isBundleUpToDate
in interfaceAgentJdkBundleRegistry
- 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
public void addBundle(@NotNull File file, @Nullable JdkPackageInfo jdkPackage, @Nullable AgentUpdateInfo updateInfo)
Description copied from interface:AgentJdkBundleRegistry
Adds a JDK bundle to the registry.- Specified by:
addBundle
in interfaceAgentJdkBundleRegistry
- Parameters:
file
- the file representing the JDK bundlejdkPackage
- the package information for the JDK bundleupdateInfo
- the initial update information for the JDK bundle
-
removeBundle
public void removeBundle(@NotNull File file)
Description copied from interface:AgentJdkBundleRegistry
Removes a JDK bundle from the registry.- Specified by:
removeBundle
in interfaceAgentJdkBundleRegistry
- Parameters:
file
- the file representing the JDK bundle to remove
-
getBundle
@Nullable public AgentJdkBundleRegistry.AgentJdkBundleInfo getBundle(@NotNull JdkPackageInfo packageInfo)
Description copied from interface:AgentJdkBundleRegistry
Retrieves a JDK bundle from the registry.- Specified by:
getBundle
in interfaceAgentJdkBundleRegistry
- Parameters:
packageInfo
- the package information for the desired JDK bundle- Returns:
- the information on the desired JDK bundle
-
listAllBundles
@NotNull public List<AgentJdkBundleRegistry.AgentJdkBundleInfo> listAllBundles()
Description copied from interface:AgentJdkBundleRegistry
Lists all JDK bundles in the registry.- Specified by:
listAllBundles
in interfaceAgentJdkBundleRegistry
- Returns:
- a list of all JDK bundles in the registry
-
-