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 voidaddBundle(File file, JdkPackageInfo jdkPackage, AgentUpdateInfo updateInfo)Adds a JDK bundle to the registry.AgentJdkBundleRegistry.AgentJdkBundleInfogetBundle(JdkPackageInfo packageInfo)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 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:AgentJdkBundleRegistryChecks if each JDK bundle in the registry is up to date with the provided update information.- Specified by:
isEachBundleUpToDatein 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:AgentJdkBundleRegistryChecks if a specific JDK bundle in the registry is up to date with the provided update information.- Specified by:
isBundleUpToDatein 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:AgentJdkBundleRegistryAdds a JDK bundle to the registry.- Specified by:
addBundlein 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:AgentJdkBundleRegistryRemoves a JDK bundle from the registry.- Specified by:
removeBundlein interfaceAgentJdkBundleRegistry- Parameters:
file- the file representing the JDK bundle to remove
-
getBundle
@Nullable public AgentJdkBundleRegistry.AgentJdkBundleInfo getBundle(@NotNull JdkPackageInfo packageInfo)
Description copied from interface:AgentJdkBundleRegistryRetrieves a JDK bundle from the registry.- Specified by:
getBundlein 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:AgentJdkBundleRegistryLists all JDK bundles in the registry.- Specified by:
listAllBundlesin interfaceAgentJdkBundleRegistry- Returns:
- a list of all JDK bundles in the registry
-
-