Class SecuredCloudInstancesProvider
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.CloudInstancesProviderImpl
-
- jetbrains.buildServer.clouds.server.impl.SecuredCloudInstancesProvider
-
- All Implemented Interfaces:
CloudInstancesExpiration
,CloudInstancesMaintenance
,CloudInstancesProvider
,ExpiredInstancesAgents
public class SecuredCloudInstancesProvider extends CloudInstancesProviderImpl
-
-
Constructor Summary
Constructors Constructor Description SecuredCloudInstancesProvider(CloudManagerBase manager, CloudAgentRelation cloudAgentRelation, CloudEventDispatcher cloudEventsDispatcher, EventDispatcher<BuildServerListener> serverEventsDispatcher, CloudSecurity cloudSecurity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
iterateProfileInstances(CloudProfile profile, CloudInstancesProviderExtendedCallback callback)
Iterates through instances of particular cloud profilevoid
markInstanceExpired(String profileId, String instanceId)
Terminate instance after current build finishesvoid
markInstanceMaintained(String profileId, String instanceId)
Marks the instance as being under maintenance-
Methods inherited from class jetbrains.buildServer.clouds.server.impl.CloudInstancesProviderImpl
isAgentExpired, isInstanceExpired, isInstanceMaintained, iterateInstances, setRunningAgentsTracker
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.clouds.server.CloudInstancesProvider
isInstanceExpired, iterateInstances, iterateProfileInstances, markInstanceExpired
-
-
-
-
Constructor Detail
-
SecuredCloudInstancesProvider
public SecuredCloudInstancesProvider(@NotNull CloudManagerBase manager, @NotNull CloudAgentRelation cloudAgentRelation, @NotNull CloudEventDispatcher cloudEventsDispatcher, @NotNull EventDispatcher<BuildServerListener> serverEventsDispatcher, @NotNull CloudSecurity cloudSecurity)
-
-
Method Detail
-
iterateProfileInstances
public void iterateProfileInstances(@NotNull CloudProfile profile, @NotNull CloudInstancesProviderExtendedCallback callback)
Description copied from interface:CloudInstancesProvider
Iterates through instances of particular cloud profile- Specified by:
iterateProfileInstances
in interfaceCloudInstancesProvider
- Overrides:
iterateProfileInstances
in classCloudInstancesProviderImpl
- Parameters:
profile
- profile to processcallback
- uses this interface to notify next instance
-
markInstanceExpired
public void markInstanceExpired(@NotNull String profileId, @NotNull String instanceId)
Description copied from interface:CloudInstancesExpiration
Terminate instance after current build finishes- Specified by:
markInstanceExpired
in interfaceCloudInstancesExpiration
- Overrides:
markInstanceExpired
in classCloudInstancesProviderImpl
- Parameters:
profileId
- profile idinstanceId
- id of instance to terminate after current build finishes
-
markInstanceMaintained
public void markInstanceMaintained(@NotNull String profileId, @NotNull String instanceId)
Description copied from interface:CloudInstancesMaintenance
Marks the instance as being under maintenance- Specified by:
markInstanceMaintained
in interfaceCloudInstancesMaintenance
- Overrides:
markInstanceMaintained
in classCloudInstancesProviderImpl
- Parameters:
profileId
- profile idinstanceId
- id of instance to terminate after current build finishes
-
-