Package com.veertu.plugin.anka
Class AnkaMgmtCloud
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.slaves.Cloud
com.veertu.plugin.anka.AnkaMgmtCloud
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
Created by asafgur on 08/05/2017.
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionprotected int
protected int
-
Constructor Summary
ConstructorDescriptionAnkaMgmtCloud
(String ankaMgmtUrl, String cloudName, String credentialsId, String rootCA, boolean skipTLSVerification, List<AnkaCloudSlaveTemplate> templates, int cloudInstanceCap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicTemplate
(DynamicSlaveTemplate template) boolean
canProvision
(Cloud.CloudState state) static AnkaMgmtCloud
static List
<AnkaMgmtCloud> int
int
static AnkaMgmtCloud
getCloudThatHasImage
(String masterVMID) int
int
int
int
int
int
boolean
int
getTemplate
(Label label) getTemplateTags
(String masterVmId) int
int
int
boolean
hasMasterVm
(String templateId) boolean
isOnline()
static void
Log
(Slave slave, TaskListener listener, String msg) static void
Log
(SlaveComputer slave, TaskListener listener, String format, Object... args) static void
static void
static void
markFuture
(AnkaMgmtCloud cloud, AbstractAnkaSlave abstractAnkaSlave) provision
(Cloud.CloudState state, int excessWorkload) protected Object
void
removeDynamicTemplate
(AbstractSlaveTemplate template) void
saveImage
(AbstractAnkaSlave node) void
setCloudInstanceCap
(int val) void
setConnectionKeepAliveSeconds
(int connectionKeepAliveSeconds) void
setDurabilityMode
(String durabilityMode) void
setLaunchRetryWaitTime
(int launchRetryWaitTime) void
setLaunchTimeout
(int launchTimeout) void
setMaxConnections
(int maxConnections) void
setMaxLaunchRetries
(int maxLaunchRetries) void
setMonitorRecurrenceMinutes
(int minutes) void
setSshLaunchDelaySeconds
(int sshLaunchDelaySeconds) void
setVmIPAssignRetries
(int vmIPAssignRetries) void
setVmIPAssignWaitSeconds
(int vmIPAssignWaitSeconds) void
setVmPollTime
(int milliseconds) showInstance
(String id) void
void
terminateVMInstance
(String id, AbstractAnkaSlave node) void
updateInstance
(String vmId, String name, String jenkinsNodeLink, String jobIdentifier) Methods inherited from class hudson.slaves.Cloud
all, canProvision, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl, provision, 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
-
Field Details
-
maxConnections
protected int maxConnections -
connectionKeepAliveSeconds
protected int connectionKeepAliveSeconds
-
-
Constructor Details
-
AnkaMgmtCloud
-
-
Method Details
-
markFuture
-
Log
-
Log
-
Log
-
Log
-
getAnkaClouds
-
getCloudThatHasImage
-
get
-
getLaunchTimeout
public int getLaunchTimeout() -
setLaunchTimeout
@DataBoundSetter public void setLaunchTimeout(int launchTimeout) -
getMaxLaunchRetries
public int getMaxLaunchRetries() -
setMaxLaunchRetries
@DataBoundSetter public void setMaxLaunchRetries(int maxLaunchRetries) -
getLaunchRetryWaitTime
public int getLaunchRetryWaitTime() -
setLaunchRetryWaitTime
@DataBoundSetter public void setLaunchRetryWaitTime(int launchRetryWaitTime) -
getSshLaunchDelaySeconds
public int getSshLaunchDelaySeconds() -
setSshLaunchDelaySeconds
@DataBoundSetter public void setSshLaunchDelaySeconds(int sshLaunchDelaySeconds) -
getVmIPAssignWaitSeconds
public int getVmIPAssignWaitSeconds() -
setVmIPAssignWaitSeconds
@DataBoundSetter public void setVmIPAssignWaitSeconds(int vmIPAssignWaitSeconds) -
getVmIPAssignRetries
public int getVmIPAssignRetries() -
setVmIPAssignRetries
@DataBoundSetter public void setVmIPAssignRetries(int vmIPAssignRetries) -
getDurabilityMode
-
setDurabilityMode
-
getMonitorRecurrenceMinutes
public int getMonitorRecurrenceMinutes() -
setMonitorRecurrenceMinutes
@DataBoundSetter public void setMonitorRecurrenceMinutes(int minutes) -
getMaxConnections
public int getMaxConnections() -
setMaxConnections
@DataBoundSetter public void setMaxConnections(int maxConnections) -
getConnectionKeepAliveSeconds
public int getConnectionKeepAliveSeconds() -
setConnectionKeepAliveSeconds
@DataBoundSetter public void setConnectionKeepAliveSeconds(int connectionKeepAliveSeconds) -
readResolve
-
getCredentialsId
-
getCloudName
-
getAnkaMgmtUrl
-
getSkipTLSVerification
public boolean getSkipTLSVerification() -
getRootCA
-
getCloudInstanceCap
public int getCloudInstanceCap() -
setCloudInstanceCap
public void setCloudInstanceCap(int val) -
getCloudCapacity
public int getCloudCapacity() -
getNumOfRunningNodesPerLabel
-
listVmTemplates
-
getTemplateTags
-
getTemplates
-
getDynamicTemplates
-
getNodeGroups
-
provision
public Collection<NodeProvisioner.PlannedNode> provision(Cloud.CloudState state, int excessWorkload) -
getTemplate
-
hasMasterVm
-
canProvision
- Overrides:
canProvision
in classCloud
-
getAnkaApi
-
isOnline
public boolean isOnline() -
isPushSupported
-
removeDynamicTemplate
-
addDynamicTemplate
-
saveImage
- Throws:
AnkaMgmtException
-
updateInstance
public void updateInstance(String vmId, String name, String jenkinsNodeLink, String jobIdentifier) throws AnkaMgmtException - Throws:
AnkaMgmtException
-
terminateVMInstance
- Throws:
AnkaMgmtException
-
terminateVMInstance
- Throws:
AnkaMgmtException
-
showInstance
- Throws:
AnkaMgmtException
-
getVmPollTime
public int getVmPollTime() -
setVmPollTime
@DataBoundSetter public void setVmPollTime(int milliseconds) -
getExistingTemplateIds
-
getExistingGroupIds
-
getExistingTags
-