Interface CloudInstancesProvider
-
- All Superinterfaces:
CloudInstancesExpiration
- All Known Implementing Classes:
CloudInstancesProviderImpl
,SecuredCloudInstancesProvider
public interface CloudInstancesProvider extends CloudInstancesExpiration
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static CloudInstancesProviderExtendedCallback
adaptCallback(CloudInstancesProviderCallback callback)
default boolean
isInstanceExpired(CloudProfile profile, CloudInstance instance)
Deprecated.default void
iterateInstances(CloudInstancesProviderCallback callback)
Deprecated.void
iterateInstances(CloudInstancesProviderExtendedCallback callback)
Iterates through all running instances of all profiles.default void
iterateProfileInstances(CloudProfile profile, CloudInstancesProviderCallback callback)
Deprecated.void
iterateProfileInstances(CloudProfile profile, CloudInstancesProviderExtendedCallback callback)
Iterates through instances of particular cloud profiledefault void
markInstanceExpired(CloudProfile profile, CloudInstance instance)
-
Methods inherited from interface jetbrains.buildServer.clouds.server.CloudInstancesExpiration
isInstanceExpired, markInstanceExpired
-
-
-
-
Method Detail
-
iterateInstances
@Deprecated default void iterateInstances(@NotNull CloudInstancesProviderCallback callback)
Deprecated.Iterates through all running instances of all profiles.- Parameters:
callback
- uses this interface to notify next instance
-
iterateInstances
void iterateInstances(@NotNull CloudInstancesProviderExtendedCallback callback)
Iterates through all running instances of all profiles.- Parameters:
callback
- uses this interface to notify next instance
-
iterateProfileInstances
@Deprecated default void iterateProfileInstances(@NotNull CloudProfile profile, @NotNull CloudInstancesProviderCallback callback)
Deprecated.Iterates through instances of particular cloud profile- Parameters:
profile
- profile to processcallback
- uses this interface to notify next instance
-
iterateProfileInstances
void iterateProfileInstances(@NotNull CloudProfile profile, @NotNull CloudInstancesProviderExtendedCallback callback)
Iterates through instances of particular cloud profile- Parameters:
profile
- profile to processcallback
- uses this interface to notify next instance- Since:
- 2019.2
-
markInstanceExpired
@Deprecated default void markInstanceExpired(@NotNull CloudProfile profile, @NotNull CloudInstance instance)
Terminate instance after current build finishes- Parameters:
profile
-instance
- instance to terminate after current build finishes- Since:
- 2017.2
-
isInstanceExpired
@Deprecated default boolean isInstanceExpired(@NotNull CloudProfile profile, @NotNull CloudInstance instance)
Deprecated.Returns true, if instance will be terminated after current build finishes- Parameters:
profile
-instance
-- Returns:
- true, if no other builds will be run on this instance. False otherwise
- Since:
- 2017.2
-
adaptCallback
static CloudInstancesProviderExtendedCallback adaptCallback(CloudInstancesProviderCallback callback)
-
-