Class ProjectCloudManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.ProjectCloudManagerImpl
-
- All Implemented Interfaces:
ProjectCloudManager
public class ProjectCloudManagerImpl extends Object implements ProjectCloudManager
Represents cloud information on project level.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose resources related to project cloud profiles.voiddisposeClient(String profileId)Disposes resources related to a specific cloud profile.voiddisposeClients()CloudProfilefindProfileById(String profileId)CloudClientExgetClient(String profileId)CloudClientExgetClientIfExists(String profileId)booleanhasProfiles()booleanisConfigurable()booleanisIntegrationEnabled()Collection<CloudProfile>listProfiles()voidremoveProfile(String profileId)voidresetStatusCache()voidupdateProfile(CloudProfile cloudProfile)voidupdateProjectProfiles(boolean forceReload)booleanupdateStatus(ProjectCloudIntegrationStatus newStatus)Update cloud integration status for given project
-
-
-
Method Detail
-
isIntegrationEnabled
public boolean isIntegrationEnabled()
- Specified by:
isIntegrationEnabledin interfaceProjectCloudManager
-
isConfigurable
public boolean isConfigurable()
- Specified by:
isConfigurablein interfaceProjectCloudManager
-
updateStatus
public boolean updateStatus(@NotNull ProjectCloudIntegrationStatus newStatus)Description copied from interface:ProjectCloudManagerUpdate cloud integration status for given project- Specified by:
updateStatusin interfaceProjectCloudManager- Returns:
- true if new different status applied, false if new status was the same as current one
-
removeProfile
public void removeProfile(@NotNull String profileId)- Specified by:
removeProfilein interfaceProjectCloudManager
-
updateProjectProfiles
public void updateProjectProfiles(boolean forceReload)
- Specified by:
updateProjectProfilesin interfaceProjectCloudManager
-
updateProfile
public void updateProfile(@NotNull CloudProfile cloudProfile)- Specified by:
updateProfilein interfaceProjectCloudManager
-
resetStatusCache
public void resetStatusCache()
- Specified by:
resetStatusCachein interfaceProjectCloudManager
-
listProfiles
@NotNull public Collection<CloudProfile> listProfiles()
- Specified by:
listProfilesin interfaceProjectCloudManager
-
findProfileById
@Nullable public CloudProfile findProfileById(@NotNull String profileId)
- Specified by:
findProfileByIdin interfaceProjectCloudManager
-
getClientIfExists
@Nullable public CloudClientEx getClientIfExists(@NotNull String profileId)
- Specified by:
getClientIfExistsin interfaceProjectCloudManager
-
getClient
@NotNull public CloudClientEx getClient(@NotNull String profileId)
- Specified by:
getClientin interfaceProjectCloudManager
-
disposeClients
public void disposeClients()
- Specified by:
disposeClientsin interfaceProjectCloudManager
-
disposeClient
public void disposeClient(@NotNull String profileId)Description copied from interface:ProjectCloudManagerDisposes resources related to a specific cloud profile.- Specified by:
disposeClientin interfaceProjectCloudManager- Parameters:
profileId- the ID of the cloud profile
-
dispose
public void dispose()
Description copied from interface:ProjectCloudManagerDispose resources related to project cloud profiles. (e.g. cloud clients)- Specified by:
disposein interfaceProjectCloudManager
-
hasProfiles
public boolean hasProfiles()
- Specified by:
hasProfilesin interfaceProjectCloudManager
-
-