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.
|
String |
getPublicAddressIpv4()
Get public IP address of the server.
|
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, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, setLabelString, setLauncher, setMode, setNodeName, setRetentionStrategy, setUserId, toString
canTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputer
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.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String getPublicAddressIpv4() throws NoSuchElementException
NoSuchElementException
@Nonnull public SlaveOptions getSlaveOptions()
@Nonnull public LauncherFactory getLauncherFactory()
@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–2018. All rights reserved.