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 void
dispose()
Dispose resources related to project cloud profiles.void
disposeClient(String profileId)
Disposes resources related to a specific cloud profile.void
disposeClients()
CloudProfile
findProfileById(String profileId)
CloudClientEx
getClient(String profileId)
CloudClientEx
getClientIfExists(String profileId)
boolean
hasProfiles()
boolean
isConfigurable()
boolean
isIntegrationEnabled()
Collection<CloudProfile>
listProfiles()
void
removeProfile(String profileId)
void
resetStatusCache()
void
updateProfile(CloudProfile cloudProfile)
void
updateProjectProfiles(boolean forceReload)
boolean
updateStatus(ProjectCloudIntegrationStatus newStatus)
Update cloud integration status for given project
-
-
-
Method Detail
-
isIntegrationEnabled
public boolean isIntegrationEnabled()
- Specified by:
isIntegrationEnabled
in interfaceProjectCloudManager
-
isConfigurable
public boolean isConfigurable()
- Specified by:
isConfigurable
in interfaceProjectCloudManager
-
updateStatus
public boolean updateStatus(@NotNull ProjectCloudIntegrationStatus newStatus)
Description copied from interface:ProjectCloudManager
Update cloud integration status for given project- Specified by:
updateStatus
in 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:
removeProfile
in interfaceProjectCloudManager
-
updateProjectProfiles
public void updateProjectProfiles(boolean forceReload)
- Specified by:
updateProjectProfiles
in interfaceProjectCloudManager
-
updateProfile
public void updateProfile(@NotNull CloudProfile cloudProfile)
- Specified by:
updateProfile
in interfaceProjectCloudManager
-
resetStatusCache
public void resetStatusCache()
- Specified by:
resetStatusCache
in interfaceProjectCloudManager
-
listProfiles
@NotNull public Collection<CloudProfile> listProfiles()
- Specified by:
listProfiles
in interfaceProjectCloudManager
-
findProfileById
@Nullable public CloudProfile findProfileById(@NotNull String profileId)
- Specified by:
findProfileById
in interfaceProjectCloudManager
-
getClientIfExists
@Nullable public CloudClientEx getClientIfExists(@NotNull String profileId)
- Specified by:
getClientIfExists
in interfaceProjectCloudManager
-
getClient
@NotNull public CloudClientEx getClient(@NotNull String profileId)
- Specified by:
getClient
in interfaceProjectCloudManager
-
disposeClients
public void disposeClients()
- Specified by:
disposeClients
in interfaceProjectCloudManager
-
disposeClient
public void disposeClient(@NotNull String profileId)
Description copied from interface:ProjectCloudManager
Disposes resources related to a specific cloud profile.- Specified by:
disposeClient
in interfaceProjectCloudManager
- Parameters:
profileId
- the ID of the cloud profile
-
dispose
public void dispose()
Description copied from interface:ProjectCloudManager
Dispose resources related to project cloud profiles. (e.g. cloud clients)- Specified by:
dispose
in interfaceProjectCloudManager
-
hasProfiles
public boolean hasProfiles()
- Specified by:
hasProfiles
in interfaceProjectCloudManager
-
-