public class EC2FleetLabelCloud extends AbstractEC2FleetCloud
CloudNanny
Modifier and Type | Class and Description |
---|---|
static class |
EC2FleetLabelCloud.DescriptorImpl |
Cloud.CloudState
ExtensionPoint.LegacyInstancesAreScopedToHudson
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Modifier and Type | Field and Description |
---|---|
static String |
BASE_DEFAULT_FLEET_CLOUD_ID |
static int |
DEFAULT_CLOUD_STATUS_INTERVAL_SEC |
static String |
EC2_INSTANCE_CLOUD_NAME_TAG |
static String |
EC2_INSTANCE_TAG_NAMESPACE |
Constructor and Description |
---|
EC2FleetLabelCloud(String name,
String awsCredentialsId,
String region,
String endpoint,
String fsRoot,
ComputerConnector computerConnector,
boolean privateIpUsed,
boolean alwaysReconnect,
Integer idleMinutes,
int minSize,
int maxSize,
int numExecutors,
boolean restrictUsage,
boolean disableTaskResubmit,
Integer initOnlineTimeoutSec,
Integer initOnlineCheckIntervalSec,
Integer cloudStatusIntervalSec,
boolean noDelayProvision,
String ec2KeyPairName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(Cloud.CloudState cloudState) |
String |
getAwsCredentialsId() |
int |
getCloudStatusIntervalSec() |
ComputerConnector |
getComputerConnector() |
EC2FleetLabelCloud.DescriptorImpl |
getDescriptor() |
String |
getEc2KeyPairName() |
String |
getEndpoint() |
String |
getFsRoot() |
int |
getIdleMinutes() |
int |
getInitOnlineCheckIntervalSec() |
int |
getInitOnlineTimeoutSec() |
String |
getJvmSettings() |
int |
getMaxSize() |
int |
getMinSize() |
int |
getNumExecutors() |
String |
getRegion() |
boolean |
hasExcessCapacity() |
boolean |
isAlwaysReconnect() |
boolean |
isDisableTaskResubmit() |
boolean |
isNoDelayProvision() |
boolean |
isPrivateIpUsed() |
boolean |
isRestrictUsage() |
Collection<NodeProvisioner.PlannedNode> |
provision(Cloud.CloudState cloudState,
int excessWorkload) |
boolean |
scheduleToTerminate(String instanceId,
boolean ignoreMinConstraints,
EC2AgentTerminationReason terminationReason) |
void |
update() |
void |
updateStacks() |
all, canProvision, getACL, getDisplayName, getSearchUrl, getUrl, provision
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
public static final String EC2_INSTANCE_TAG_NAMESPACE
public static final String EC2_INSTANCE_CLOUD_NAME_TAG
public static final String BASE_DEFAULT_FLEET_CLOUD_ID
public static final int DEFAULT_CLOUD_STATUS_INTERVAL_SEC
@DataBoundConstructor public EC2FleetLabelCloud(String name, String awsCredentialsId, String region, String endpoint, String fsRoot, ComputerConnector computerConnector, boolean privateIpUsed, boolean alwaysReconnect, Integer idleMinutes, int minSize, int maxSize, int numExecutors, boolean restrictUsage, boolean disableTaskResubmit, Integer initOnlineTimeoutSec, Integer initOnlineCheckIntervalSec, Integer cloudStatusIntervalSec, boolean noDelayProvision, String ec2KeyPairName)
public String getEc2KeyPairName()
public boolean isNoDelayProvision()
public String getAwsCredentialsId()
public boolean isDisableTaskResubmit()
isDisableTaskResubmit
in class AbstractEC2FleetCloud
public int getInitOnlineTimeoutSec()
public int getCloudStatusIntervalSec()
public int getInitOnlineCheckIntervalSec()
public String getRegion()
public String getEndpoint()
public String getFsRoot()
public ComputerConnector getComputerConnector()
public boolean isPrivateIpUsed()
public boolean isAlwaysReconnect()
isAlwaysReconnect
in class AbstractEC2FleetCloud
public int getIdleMinutes()
getIdleMinutes
in class AbstractEC2FleetCloud
public int getMaxSize()
public int getMinSize()
public int getNumExecutors()
public String getJvmSettings()
public boolean isRestrictUsage()
public boolean hasExcessCapacity()
hasExcessCapacity
in class AbstractEC2FleetCloud
public Collection<NodeProvisioner.PlannedNode> provision(@Nonnull Cloud.CloudState cloudState, int excessWorkload)
public void update()
public boolean scheduleToTerminate(String instanceId, boolean ignoreMinConstraints, EC2AgentTerminationReason terminationReason)
scheduleToTerminate
in class AbstractEC2FleetCloud
public boolean canProvision(Cloud.CloudState cloudState)
canProvision
in class Cloud
public void updateStacks()
public EC2FleetLabelCloud.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Cloud>
getDescriptor
in class Cloud
Copyright © 2016–2023. All rights reserved.