jenkins.plugins.jclouds.compute
Class JCloudsComputer

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Computer
              extended by hudson.slaves.SlaveComputer
                  extended by jenkins.plugins.jclouds.compute.JCloudsComputer
All Implemented Interfaces:
hudson.model.ExecutorListener, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, jenkins.model.ModelObjectWithContextMenu

public class JCloudsComputer
extends hudson.slaves.SlaveComputer

JClouds version of Jenkins SlaveComputer - responsible for terminating an instance.

Author:
Vijay Kiran

Nested Class Summary
 
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem
 
Field Summary
 
Fields inherited from class hudson.model.Computer
CONFIGURE, CONNECT, CREATE, DELETE, DISCONNECT, nodeName, offlineCause, PERMISSIONS, statusChangeLock, threadPoolForRemoting, transientActions
 
Constructor Summary
JCloudsComputer(hudson.model.Slave slave)
           
 
Method Summary
 void deleteSlave()
          Delete the slave, terminate the instance.
 org.kohsuke.stapler.HttpResponse doDoDelete()
          Really deletes the slave, by terminating the instance.
 String getCloudName()
           
 String getInstanceId()
           
 JCloudsSlave getNode()
           
 int getRetentionTime()
           
 
Methods inherited from class hudson.slaves.SlaveComputer
_connect, disconnect, doDoDisconnect, doLaunchSlaveAgent, getChannel, getChannelToMaster, getDefaultCharset, getIcon, getJnlpJars, getLauncher, getLogRecords, getOSDescription, getRetentionStrategy, getSlaveVersion, grabLauncher, isAcceptingTasks, isConnecting, isJnlpAgent, isLaunchSupported, isUnix, kill, openLogFile, setAcceptingTasks, setChannel, 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, doConfigDotXml, doConfigSubmit, doDumpExportTable, doProgressiveLog, doRssAll, doRssFailed, doScript, doScriptText, doToggleOffline, getACL, getActions, getApi, getBuilds, getCaption, getComputerPanelBoxs, getConnectTime, getDemandStartMilliseconds, getDisplayName, getEnvironment, getEnvVars, getExecutors, getHeapDump, getHostName, getIconAltText, getIdleStartMilliseconds, getLoadStatistics, getLog, getLogFile, getLogText, getMonitorData, getName, getNumExecutors, getOfflineCause, getOneOffExecutors, getSearchUrl, getSystemProperties, getThreadDump, getTiedJobs, getTimeline, getUrl, getWorkspaceList, hasPermission, interrupt, isIdle, isManualLaunchAllowed, isOffline, isOnline, isPartiallyIdle, isTemporarilyOffline, launch, resolveForCLI, setTemporarilyOffline, setTemporarilyOffline, waitUntilOffline, waitUntilOnline
 
Methods inherited from class hudson.model.Actionable
addAction, doContextMenu, getAction, getAction, getActions, getDynamic
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCloudsComputer

public JCloudsComputer(hudson.model.Slave slave)
Method Detail

getInstanceId

public String getInstanceId()

getNode

public JCloudsSlave getNode()
Overrides:
getNode in class hudson.slaves.SlaveComputer

getRetentionTime

public int getRetentionTime()

getCloudName

public String getCloudName()

doDoDelete

public org.kohsuke.stapler.HttpResponse doDoDelete()
                                            throws IOException
Really deletes the slave, by terminating the instance.

Overrides:
doDoDelete in class hudson.model.Computer
Throws:
IOException

deleteSlave

public void deleteSlave()
                 throws IOException
Delete the slave, terminate the instance. Can be called eitehr by doDoDelete() or from JCloudsRetentionStrategy.

Throws:
IOException


Copyright © 2004-2012. All Rights Reserved.