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 voiditerateProfileInstances(CloudProfile profile, CloudInstancesProviderExtendedCallback callback)Iterates through instances of particular cloud profilevoidmarkInstanceExpired(String profileId, String instanceId)Terminate instance after current build finishesvoidmarkInstanceMaintained(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:CloudInstancesProviderIterates through instances of particular cloud profile- Specified by:
iterateProfileInstancesin interfaceCloudInstancesProvider- Overrides:
iterateProfileInstancesin 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:CloudInstancesExpirationTerminate instance after current build finishes- Specified by:
markInstanceExpiredin interfaceCloudInstancesExpiration- Overrides:
markInstanceExpiredin 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:CloudInstancesMaintenanceMarks the instance as being under maintenance- Specified by:
markInstanceMaintainedin interfaceCloudInstancesMaintenance- Overrides:
markInstanceMaintainedin classCloudInstancesProviderImpl- Parameters:
profileId- profile idinstanceId- id of instance to terminate after current build finishes
-
-