Package org.jenkinsci.plugins
Class vSphereCloud
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.slaves.Cloud
org.jenkinsci.plugins.vSphereCloud
- All Implemented Interfaces:
ExtensionPoint,Describable<Cloud>,ModelObject,SearchableModelObject,SearchItem,AccessControlled,ModelObjectWithContextMenu
- Author:
- Admin
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudStateNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionvSphereCloud(String vsHost, String vsDescription, String username, String password, int maxOnlineSlaves) Deprecated.vSphereCloud(VSphereConnectionConfig vsConnectionConfig, String vsDescription, int maxOnlineSlaves, int instanceCap, List<? extends vSphereCloudSlaveTemplate> templates) -
Method Summary
Modifier and TypeMethodDescriptioncanMarkVMOnline(String slaveName, String vmName) booleancanProvision(Label label) static List<vSphereCloud> findAllVsphereClouds(String jobName) booleanfinal intgetHash()intintintintintintList<? extends vSphereCloudSlaveTemplate> booleanbooleanstatic voidLog(Slave slave, TaskListener listener, String format, Object... args) Logs aLevel.INFOmessage (created withString.format(String, Object...)), prefixed by theSlavename.static voidLogs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace), prefixed by theSlavename.static voidLogs aLevel.INFOmessage (created withString.format(String, Object...)), prefixed by theSlavename.static voidLogs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace), prefixed by theSlavename.static voidLog(TaskListener listener, String format, Object... args) Logs aLevel.INFOmessage (created withString.format(String, Object...)).static voidLog(TaskListener listener, Throwable ex, String format, Object... args) Logs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace).static voidLog(SlaveComputer slave, TaskListener listener, String format, Object... args) Logs aLevel.INFOmessage (created withString.format(String, Object...)), prefixed by theSlaveComputername.static voidLog(SlaveComputer slave, TaskListener listener, Throwable ex, String format, Object... args) Logs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace), prefixed by theSlaveComputername.static voidLogs anLevel.INFOmessage (created withString.format(String, Object...)).static voidLogs anLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowablewith stacktrace.voidmarkVMOffline(String slaveName, String vmName) markVMOnline(String slaveName, String vmName) voidsetMaintenanceMessage(String maintenanceMessage) voidsetMaintenanceMode(boolean maintenanceMode) voidsetPoolHealthCheckIntervalSecs(int poolHealthCheckIntervalSecs) voidsetPoolIdleTimeoutSecs(int poolIdleTimeoutSecs) voidsetSessionMaxAgeSecs(int sessionMaxAgeSecs) voidsetSessionMaxUses(int sessionMaxUses) voidsetUseConnectionPool(boolean useConnectionPool) toString()voidwaitWhileInMaintenanceMode(TaskListener listener) If this cloud (or whichevervSphereCloudinstance now holds its configuration - Jenkins constructs a brand-newCloudinstance on every reconfiguration rather than mutating the existing one, seeresolveCurrentInstance()) is in maintenance mode, logs the configured message tolistenerand blocks the calling thread, polling everyMAINTENANCE_POLL_INTERVAL_MS, until maintenance mode is turned off.Methods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getDisplayName, getIcon, getIconAltText, getIconClassName, getSearchUrl, getUrl, provision, reconfigure, reconfigure, registerPermissionsMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
vSphereCloud
@Deprecated public vSphereCloud(String vsHost, String vsDescription, String username, String password, int maxOnlineSlaves) Deprecated. -
vSphereCloud
@DataBoundConstructor public vSphereCloud(VSphereConnectionConfig vsConnectionConfig, String vsDescription, int maxOnlineSlaves, int instanceCap, List<? extends vSphereCloudSlaveTemplate> templates)
-
-
Method Details
-
Log
Logs anLevel.INFOmessage (created withString.format(String, Object...)). -
Log
Logs anLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowablewith stacktrace. -
Log
Logs aLevel.INFOmessage (created withString.format(String, Object...)). -
Log
Logs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace). -
Log
Logs aLevel.INFOmessage (created withString.format(String, Object...)), prefixed by theSlavename. -
Log
Logs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace), prefixed by theSlavename. -
Log
Logs aLevel.INFOmessage (created withString.format(String, Object...)), prefixed by theSlavename. -
Log
public static void Log(Slave slave, TaskListener listener, Throwable ex, String format, Object... args) Logs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace), prefixed by theSlavename. -
Log
Logs aLevel.INFOmessage (created withString.format(String, Object...)), prefixed by theSlaveComputername. -
Log
public static void Log(SlaveComputer slave, TaskListener listener, Throwable ex, String format, Object... args) Logs aLevel.SEVEREmessage (created withString.format(String, Object...)) and aThrowable(with stacktrace), prefixed by theSlaveComputername. -
readResolve
- Throws:
IOException
-
getMaxOnlineSlaves
public int getMaxOnlineSlaves() -
getInstanceCap
public int getInstanceCap() -
getTemplates
-
isUseConnectionPool
public boolean isUseConnectionPool() -
setUseConnectionPool
@DataBoundSetter public void setUseConnectionPool(boolean useConnectionPool) -
getPoolHealthCheckIntervalSecs
public int getPoolHealthCheckIntervalSecs() -
setPoolHealthCheckIntervalSecs
@DataBoundSetter public void setPoolHealthCheckIntervalSecs(int poolHealthCheckIntervalSecs) -
getSessionMaxAgeSecs
public int getSessionMaxAgeSecs() -
setSessionMaxAgeSecs
@DataBoundSetter public void setSessionMaxAgeSecs(int sessionMaxAgeSecs) -
getSessionMaxUses
public int getSessionMaxUses() -
setSessionMaxUses
@DataBoundSetter public void setSessionMaxUses(int sessionMaxUses) -
getPoolIdleTimeoutSecs
public int getPoolIdleTimeoutSecs() -
setPoolIdleTimeoutSecs
@DataBoundSetter public void setPoolIdleTimeoutSecs(int poolIdleTimeoutSecs) -
isMaintenanceMode
public boolean isMaintenanceMode() -
setMaintenanceMode
@DataBoundSetter public void setMaintenanceMode(boolean maintenanceMode) -
getMaintenanceMessage
-
setMaintenanceMessage
-
getPassword
-
getUsername
-
getVsDescription
-
getVsHost
-
getAllowUntrustedCertificate
public boolean getAllowUntrustedCertificate() -
getVsConnectionConfig
-
getHash
public final int getHash() -
vSphereInstance
- Throws:
VSphereException
-
waitWhileInMaintenanceMode
If this cloud (or whichevervSphereCloudinstance now holds its configuration - Jenkins constructs a brand-newCloudinstance on every reconfiguration rather than mutating the existing one, seeresolveCurrentInstance()) is in maintenance mode, logs the configured message tolistenerand blocks the calling thread, polling everyMAINTENANCE_POLL_INTERVAL_MS, until maintenance mode is turned off. Returns immediately if the cloud is not currently in maintenance mode.- Throws:
InterruptedException
-
canProvision
- Overrides:
canProvisionin classCloud
-
provision
-
toString
-
canMarkVMOnline
-
markVMOnline
-
markVMOffline
-
findAllVsphereClouds
-
findAllVsphereCloudNames
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Cloud>- Overrides:
getDescriptorin classCloud
-