Package hudson.plugins.spotinst.cloud
Class AzureSpotCloud
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- hudson.plugins.spotinst.cloud.BaseSpotinstCloud
-
- hudson.plugins.spotinst.cloud.AzureSpotCloud
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
public class AzureSpotCloud extends BaseSpotinstCloud
Created by Shibel Karmi Mansour on 08/12/2020.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AzureSpotCloud.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Field Summary
-
Fields inherited from class hudson.plugins.spotinst.cloud.BaseSpotinstCloud
accountId, elastigroupDisplayName, elastigroupName, groupId, NO_OVERRIDDEN_NUM_OF_EXECUTORS, pendingInstances, pendingThreshold, SKIPPED_METHOD_GROUP_IS_NIT_READY_ERROR_LOGGER_FORMAT, slaveInstancesDetailsByInstanceId
-
-
Constructor Summary
Constructors Constructor Description AzureSpotCloud(String groupId, String labelString, String idleTerminationMinutes, String workspaceDir, SlaveUsageEnum usage, String tunnel, Boolean shouldUseWebsocket, Boolean shouldRetriggerBuilds, String vmargs, EnvironmentVariablesNodeProperty environmentVariables, ToolLocationNodeProperty toolLocations, String accountId, ConnectionMethodEnum connectionMethod, ComputerConnector computerConnector, Boolean shouldUsePrivateIp, SpotGlobalExecutorOverride globalExecutorOverride, Integer pendingThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BlResponse<Boolean>
checkIsStatefulGroup()
protected Boolean
deallocateInstance(String statefulInstanceId)
protected Boolean
detachInstance(String instanceId)
String
getCloudUrl()
protected Integer
getDefaultExecutorsNumber(String instanceType)
AzureSpotCloud.DescriptorImpl
getDescriptor()
String
getElastigroupName()
Map<String,String>
getInstanceIpsById()
protected String
getSsiId(String instanceId)
protected void
syncGroupInstances()
-
Methods inherited from class hudson.plugins.spotinst.cloud.BaseSpotinstCloud
addToPending, buildSpotinstSlave, canProvision, generateGroupDisplayName, getAccountId, getAllSpotinstSlaves, getComputerConnector, getConnectionMethod, getDisplayName, getEnvironmentVariables, getGlobalExecutorOverride, getGroupId, getGroupLockingManager, getIconAltText, getIdleTerminationMinutes, getIsSingleTaskNodesEnabled, getLabelString, getName, getNumOfExecutors, getOverriddenNumberOfExecutors, getPendingExecutors, getPendingThreshold, getShouldRetriggerBuilds, getShouldUsePrivateIp, getShouldUseWebsocket, getSlaveDetails, getSlaveOfflineThreshold, getToolLocations, getTunnel, getUsage, getVmargs, getWorkspaceDir, handleBackwardCompatibility, internalMonitorInstances, isCloudReadyForGroupCommunication, isInstancePending, isStatefulGroup, monitorInstances, onInstanceReady, provision, removeInstance, removeInstanceFromPending, setComputerConnector, setConnectionMethod, setGlobalExecutorOverride, setIsSingleTaskNodesEnabled, setName, setPendingInstances, setPendingThreshold, setShouldRetriggerBuilds, setShouldUsePrivateIp, setShouldUseWebsocket, syncGroup, terminateOfflineSlaves
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getIcon, getIconClassName, getSearchUrl, getUrl, provision, reconfigure, registerPermissions
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
AzureSpotCloud
@DataBoundConstructor public AzureSpotCloud(String groupId, String labelString, String idleTerminationMinutes, String workspaceDir, SlaveUsageEnum usage, String tunnel, Boolean shouldUseWebsocket, Boolean shouldRetriggerBuilds, String vmargs, EnvironmentVariablesNodeProperty environmentVariables, ToolLocationNodeProperty toolLocations, String accountId, ConnectionMethodEnum connectionMethod, ComputerConnector computerConnector, Boolean shouldUsePrivateIp, SpotGlobalExecutorOverride globalExecutorOverride, Integer pendingThreshold)
-
-
Method Detail
-
getElastigroupName
public String getElastigroupName()
-
getDescriptor
public AzureSpotCloud.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Cloud>
- Overrides:
getDescriptor
in classBaseSpotinstCloud
-
checkIsStatefulGroup
protected BlResponse<Boolean> checkIsStatefulGroup()
- Specified by:
checkIsStatefulGroup
in classBaseSpotinstCloud
-
getSsiId
protected String getSsiId(String instanceId)
- Specified by:
getSsiId
in classBaseSpotinstCloud
-
deallocateInstance
protected Boolean deallocateInstance(String statefulInstanceId)
- Specified by:
deallocateInstance
in classBaseSpotinstCloud
-
detachInstance
protected Boolean detachInstance(String instanceId)
- Specified by:
detachInstance
in classBaseSpotinstCloud
-
getCloudUrl
public String getCloudUrl()
- Specified by:
getCloudUrl
in classBaseSpotinstCloud
-
syncGroupInstances
protected void syncGroupInstances()
- Specified by:
syncGroupInstances
in classBaseSpotinstCloud
-
getInstanceIpsById
public Map<String,String> getInstanceIpsById()
- Specified by:
getInstanceIpsById
in classBaseSpotinstCloud
-
getDefaultExecutorsNumber
protected Integer getDefaultExecutorsNumber(String instanceType)
- Specified by:
getDefaultExecutorsNumber
in classBaseSpotinstCloud
-
-