public class JCloudsSlave
extends hudson.slaves.AbstractCloudSlave
implements org.jenkinsci.plugins.cloudstats.TrackedItem
Modifier and Type | Class and Description |
---|---|
static class |
JCloudsSlave.JCloudsSlaveDescriptor |
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor
Constructor and Description |
---|
JCloudsSlave(org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id,
org.openstack4j.model.compute.Server metadata,
String labelString,
SlaveOptions slaveOptions) |
Modifier and Type | Method and Description |
---|---|
protected void |
_terminate(hudson.model.TaskListener listener) |
hudson.slaves.AbstractCloudComputer<JCloudsSlave> |
createComputer() |
JCloudsComputer |
getComputer() |
long |
getCreatedTime() |
org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id |
getId() |
LauncherFactory |
getLauncherFactory() |
Map<String,String> |
getLiveOpenstackServerDetails()
Get settings from OpenStack about the Server for this slave.
|
Map<String,String> |
getOpenstackSlaveData()
Gets most of the Server settings that were provided to Openstack
when the slave was created by the plugin.
|
String |
getPublicAddress()
Get public IP address of the server.
|
hudson.slaves.RetentionStrategy<JCloudsComputer> |
getRetentionStrategy() |
String |
getServerId() |
SlaveOptions |
getSlaveOptions()
Get effective options used to configure this slave.
|
protected Object |
readResolve() |
createLauncher, equals, getClockDifferenceCallable, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toString
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputer
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public JCloudsSlave(@Nonnull org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id, @Nonnull org.openstack4j.model.compute.Server metadata, @Nonnull String labelString, @Nonnull SlaveOptions slaveOptions) throws IOException, hudson.model.Descriptor.FormException
IOException
hudson.model.Descriptor.FormException
protected Object readResolve()
readResolve
in class hudson.model.Slave
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @Nonnull public Map<String,String> getOpenstackSlaveData()
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @Nonnull public Map<String,String> getLiveOpenstackServerDetails()
@CheckForNull public String getPublicAddress() throws NoSuchElementException
NoSuchElementException
- The server does not exist anymore. Plugin should not get slave to this state ever
but there is no way to prevent external machine deletion.@Nonnull public SlaveOptions getSlaveOptions()
@Nonnull public LauncherFactory getLauncherFactory()
public hudson.slaves.RetentionStrategy<JCloudsComputer> getRetentionStrategy()
getRetentionStrategy
in class hudson.model.Slave
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public String getServerId()
public hudson.slaves.AbstractCloudComputer<JCloudsSlave> createComputer()
createComputer
in class hudson.slaves.AbstractCloudSlave
@Nonnull public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
getId
in interface org.jenkinsci.plugins.cloudstats.TrackedItem
public long getCreatedTime()
public JCloudsComputer getComputer()
getComputer
in class hudson.model.Slave
protected void _terminate(hudson.model.TaskListener listener)
_terminate
in class hudson.slaves.AbstractCloudSlave
Copyright © 2016–2020. All rights reserved.