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 classAzureSpotCloud.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 BooleandeallocateInstance(String statefulInstanceId)protected BooleandetachInstance(String instanceId)StringgetCloudUrl()protected IntegergetDefaultExecutorsNumber(String instanceType)AzureSpotCloud.DescriptorImplgetDescriptor()StringgetElastigroupName()Map<String,String>getInstanceIpsById()protected StringgetSsiId(String instanceId)protected voidsyncGroupInstances()-
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:
getDescriptorin interfaceDescribable<Cloud>- Overrides:
getDescriptorin classBaseSpotinstCloud
-
checkIsStatefulGroup
protected BlResponse<Boolean> checkIsStatefulGroup()
- Specified by:
checkIsStatefulGroupin classBaseSpotinstCloud
-
getSsiId
protected String getSsiId(String instanceId)
- Specified by:
getSsiIdin classBaseSpotinstCloud
-
deallocateInstance
protected Boolean deallocateInstance(String statefulInstanceId)
- Specified by:
deallocateInstancein classBaseSpotinstCloud
-
detachInstance
protected Boolean detachInstance(String instanceId)
- Specified by:
detachInstancein classBaseSpotinstCloud
-
getCloudUrl
public String getCloudUrl()
- Specified by:
getCloudUrlin classBaseSpotinstCloud
-
syncGroupInstances
protected void syncGroupInstances()
- Specified by:
syncGroupInstancesin classBaseSpotinstCloud
-
getInstanceIpsById
public Map<String,String> getInstanceIpsById()
- Specified by:
getInstanceIpsByIdin classBaseSpotinstCloud
-
getDefaultExecutorsNumber
protected Integer getDefaultExecutorsNumber(String instanceType)
- Specified by:
getDefaultExecutorsNumberin classBaseSpotinstCloud
-
-