|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Computer
hudson.slaves.SlaveComputer
hudson.plugins.ec2.EC2Computer
public class EC2Computer
| Field Summary |
|---|
| Fields inherited from class hudson.model.Computer |
|---|
CONFIGURE, DELETE, nodeName, offlineCause, PERMISSIONS, threadPoolForRemoting |
| Constructor Summary | |
|---|---|
EC2Computer(EC2Slave slave)
|
|
| Method Summary | |
|---|---|
com.amazonaws.services.ec2.model.Instance |
describeInstance()
Obtains the instance state description in EC2. |
org.kohsuke.stapler.HttpResponse |
doDoDelete()
When the slave is deleted, terminate the instance. |
String |
getConsoleOutput()
Gets the EC2 console output. |
String |
getInstanceId()
|
EC2Slave |
getNode()
|
String |
getRemoteAdmin()
What username to use to run root-like commands |
String |
getRootCommandPrefix()
|
int |
getSshPort()
|
InstanceState |
getState()
Gets the current state of the instance. |
long |
getUptime()
Number of milli-secs since the instance was started. |
String |
getUptimeString()
Returns uptime in the human readable form. |
com.amazonaws.services.ec2.model.Instance |
updateInstanceDescription()
This will flush any cached description held by describeInstance(). |
| Methods inherited from class hudson.slaves.SlaveComputer |
|---|
_connect, disconnect, doDoDisconnect, doLaunchSlaveAgent, getChannel, getChannelToMaster, getDefaultCharset, getIcon, getJnlpJars, getLauncher, getLogRecords, getRetentionStrategy, grabLauncher, isAcceptingTasks, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, setChannel, setChannel, setNode, taskAccepted, taskCompleted, taskCompletedWithProblems, tryReconnect |
| Methods inherited from class hudson.model.Computer |
|---|
_doScript, checkPermission, cliConnect, cliDisconnect, cliOffline, cliOnline, connect, countBusy, countExecutors, countIdle, currentComputer, disconnect, doConfigSubmit, doDeleteWithParam, doDumpExportTable, doProgressiveLog, doRssAll, doRssFailed, doScript, doScriptText, doToggleOffline, getACL, getApi, getBuilds, getBusyCount, getCaption, getConnectTime, getDemandStartMilliseconds, getDisplayName, getEnvironment, getEnvVars, getExecutors, getExecutorsCount, getHeapDump, getHostName, getIconAltText, getIdleCount, getIdleStartMilliseconds, getLoadStatistics, getLog, getLogFile, getLogText, getMonitorData, getName, getNumExecutors, getOfflineCause, getOneOffExecutors, getOneOffExecutorsCount, getRunningJobs, getSearchUrl, getSystemProperties, getThreadDump, getTiedJobs, getTimeline, getUrl, getWorkspaceList, hasPermission, interrupt, isIdle, isManualLaunchAllowed, isOffline, isOnline, isTemporarilyOffline, launch, setTemporarilyOffline, setTemporarilyOffline |
| Methods inherited from class hudson.model.Actionable |
|---|
addAction, getAction, getAction, getActions, getActions, getDynamic |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getConfiguredHudsonProperty, 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 |
| Constructor Detail |
|---|
public EC2Computer(EC2Slave slave)
| Method Detail |
|---|
public EC2Slave getNode()
getNode in class hudson.slaves.SlaveComputerpublic String getInstanceId()
public String getConsoleOutput()
throws com.amazonaws.AmazonClientException
com.amazonaws.AmazonClientException
public com.amazonaws.services.ec2.model.Instance describeInstance()
throws com.amazonaws.AmazonClientException
This method returns a cached state, so it's not suitable to check Instance.getState()
and Instance#getStateCode() from the returned instance (but all the other fields are valid as it won't change.)
The cache can be flushed using updateInstanceDescription()
com.amazonaws.AmazonClientException
public com.amazonaws.services.ec2.model.Instance updateInstanceDescription()
throws com.amazonaws.AmazonClientException
describeInstance().
com.amazonaws.AmazonClientException
public InstanceState getState()
throws com.amazonaws.AmazonClientException
Unlike describeInstance(), this method always return the current status by calling EC2.
com.amazonaws.AmazonClientException
public long getUptime()
throws com.amazonaws.AmazonClientException
com.amazonaws.AmazonClientException
public String getUptimeString()
throws com.amazonaws.AmazonClientException
com.amazonaws.AmazonClientException
public org.kohsuke.stapler.HttpResponse doDoDelete()
throws IOException
doDoDelete in class hudson.model.ComputerIOExceptionpublic String getRemoteAdmin()
public int getSshPort()
public String getRootCommandPrefix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||