Class UpdateInstancesCollectionTaskImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.instances.UpdateInstancesCollectionTaskImpl
-
- All Implemented Interfaces:
CloudInstancesProviderCallback,CloudInstancesProviderExtendedCallback,UpdateInstancesCollectionTask
public class UpdateInstancesCollectionTaskImpl extends Object implements UpdateInstancesCollectionTask
- Author:
- Eugene Petrenko Created: 09.11.2009 20:38:14
-
-
Constructor Summary
Constructors Constructor Description UpdateInstancesCollectionTaskImpl(Map<Pair<String,String>,InstanceUpdateTask> tasks, InstanceUpdateTaskFactory factory, BuildAgentManager agents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Notifies process is finishedMap<Pair<String,String>,InstanceUpdateTask>getNewTasks()voidprocessClient(CloudProfile profile)process clientvoidprocessClientError(CloudProfile profile, CloudErrorInfo cloudErrorInfo)Called if - client error occouredbooleanprocessImage(CloudProfile profile, CloudImage image)Indicates whether to process this particular image.voidprocessImageError(CloudProfile profile, CloudImage image)Called if - image error occouredbooleanprocessInstance(CloudProfile profile, CloudInstance instance)Processes instance and indicates whether to process next allocated instancevoidprocessInstanceError(CloudProfile profile, CloudInstance instance)Called if - instance error occouredvoidprocessInstanceExpired(CloudProfile profile, CloudClientEx cli, CloudInstance instance)Called if - instance is expired and should be terminated waiting if necessary for the current build to finishvoidprocessNotReady(CloudProfile profile)Called if - client is still connecting - client error occoured - image error occoured - instance error occoured-
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.CloudInstancesProviderExtendedCallback
processInstanceMaintained
-
-
-
-
Constructor Detail
-
UpdateInstancesCollectionTaskImpl
public UpdateInstancesCollectionTaskImpl(Map<Pair<String,String>,InstanceUpdateTask> tasks, InstanceUpdateTaskFactory factory, BuildAgentManager agents)
-
-
Method Detail
-
processInstance
public boolean processInstance(@NotNull CloudProfile profile, @NotNull CloudInstance instance)Description copied from interface:CloudInstancesProviderCallbackProcesses instance and indicates whether to process next allocated instance- Specified by:
processInstancein interfaceCloudInstancesProviderCallback- Parameters:
profile- profileinstance- instance- Returns:
- true to continue iteration and false otherwise
-
processImage
public boolean processImage(@NotNull CloudProfile profile, @NotNull CloudImage image)Description copied from interface:CloudInstancesProviderCallbackIndicates whether to process this particular image. UnlikeCloudInstancesProviderCallback.processInstance(CloudProfile, CloudInstance)returning false will skip just this image and continue further processing- Specified by:
processImagein interfaceCloudInstancesProviderCallback- Returns:
- true to process this image
-
finished
public void finished()
Description copied from interface:UpdateInstancesCollectionTaskNotifies process is finished- Specified by:
finishedin interfaceUpdateInstancesCollectionTask
-
getNewTasks
@NotNull public Map<Pair<String,String>,InstanceUpdateTask> getNewTasks()
- Specified by:
getNewTasksin interfaceUpdateInstancesCollectionTask- Returns:
- New tasks to monitor
-
processNotReady
public void processNotReady(@NotNull CloudProfile profile)Description copied from interface:CloudInstancesProviderExtendedCallbackCalled if - client is still connecting - client error occoured - image error occoured - instance error occoured- Specified by:
processNotReadyin interfaceCloudInstancesProviderExtendedCallback- Parameters:
profile- profile
-
processClientError
public void processClientError(@NotNull CloudProfile profile, @NotNull CloudErrorInfo cloudErrorInfo)Description copied from interface:CloudInstancesProviderExtendedCallbackCalled if - client error occoured- Specified by:
processClientErrorin interfaceCloudInstancesProviderExtendedCallback- Parameters:
profile- profile
-
processClient
public void processClient(@NotNull CloudProfile profile)Description copied from interface:CloudInstancesProviderExtendedCallbackprocess client- Specified by:
processClientin interfaceCloudInstancesProviderExtendedCallback
-
processImageError
public void processImageError(@NotNull CloudProfile profile, @NotNull CloudImage image)Description copied from interface:CloudInstancesProviderExtendedCallbackCalled if - image error occoured- Specified by:
processImageErrorin interfaceCloudInstancesProviderExtendedCallback- Parameters:
profile- profileimage- errorneous image
-
processInstanceError
public void processInstanceError(@NotNull CloudProfile profile, @NotNull CloudInstance instance)Description copied from interface:CloudInstancesProviderExtendedCallbackCalled if - instance error occoured- Specified by:
processInstanceErrorin interfaceCloudInstancesProviderExtendedCallback- Parameters:
profile- profileinstance- errorneous instance
-
processInstanceExpired
public void processInstanceExpired(@NotNull CloudProfile profile, @NotNull CloudClientEx cli, @NotNull CloudInstance instance)Description copied from interface:CloudInstancesProviderExtendedCallbackCalled if - instance is expired and should be terminated waiting if necessary for the current build to finish- Specified by:
processInstanceExpiredin interfaceCloudInstancesProviderExtendedCallback- Parameters:
profile- profileinstance- expired instance
-
-