Class ComputeEngineInstance
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Node
-
- hudson.model.Slave
-
- hudson.slaves.AbstractCloudSlave
-
- com.google.jenkins.plugins.computeengine.ComputeEngineInstance
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Node>
,ModelObject
,ReconfigurableDescribable<Node>
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Serializable
,OnMaster
public class ComputeEngineInstance extends AbstractCloudSlave
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComputeEngineInstance.ComputeEngineInstanceBuilder
static class
ComputeEngineInstance.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.model.Slave
Slave.JnlpJar, Slave.SlaveDescriptor
-
Nested classes/interfaces inherited from class hudson.model.Node
Node.InternalComputerListener, Node.Mode
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_terminate(TaskListener listener)
static ComputeEngineInstance.ComputeEngineInstanceBuilder
builder()
AbstractCloudComputer
createComputer()
ComputeEngineCloud
getCloud()
String
getCloudName()
Boolean
getConnected()
String
getJavaExecPath()
String
getJavaExecPathOrDefault()
Integer
getLaunchTimeout()
long
getLaunchTimeoutMillis()
SshConfiguration
getSshConfig()
Optional<GoogleKeyCredential>
getSSHKeyCredential()
String
getSshUser()
WindowsConfiguration
getWindowsConfig()
String
getZone()
boolean
isCreateSnapshot()
boolean
isIgnoreProxy()
boolean
isOneShot()
void
onConnected()
-
Methods inherited from class hudson.slaves.AbstractCloudSlave
terminate
-
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toString
-
Methods inherited from class hudson.model.Node
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputer
-
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, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Method Detail
-
createComputer
public AbstractCloudComputer createComputer()
- Specified by:
createComputer
in classAbstractCloudSlave
-
_terminate
protected void _terminate(TaskListener listener) throws IOException, InterruptedException
- Specified by:
_terminate
in classAbstractCloudSlave
- Throws:
IOException
InterruptedException
-
onConnected
public void onConnected()
-
getLaunchTimeoutMillis
public long getLaunchTimeoutMillis()
-
getJavaExecPathOrDefault
public String getJavaExecPathOrDefault()
- Returns:
- The configured Java executable path, or else the default Java binary.
-
getSSHKeyCredential
public Optional<GoogleKeyCredential> getSSHKeyCredential()
- Returns:
- The configured Linux SSH key pair for this
ComputeEngineInstance
.
-
getCloud
public ComputeEngineCloud getCloud() throws CloudNotFoundException
- Throws:
CloudNotFoundException
-
builder
public static ComputeEngineInstance.ComputeEngineInstanceBuilder builder()
-
getZone
public String getZone()
-
getCloudName
public String getCloudName()
-
getSshUser
public String getSshUser()
-
getWindowsConfig
public WindowsConfiguration getWindowsConfig()
-
getSshConfig
public SshConfiguration getSshConfig()
-
isCreateSnapshot
public boolean isCreateSnapshot()
-
isOneShot
public boolean isOneShot()
-
isIgnoreProxy
public boolean isIgnoreProxy()
-
getJavaExecPath
public String getJavaExecPath()
-
getLaunchTimeout
public Integer getLaunchTimeout()
-
getConnected
public Boolean getConnected()
-
-