com.elasticbox.jenkins
Class ElasticBoxSlave

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Node
          extended by hudson.model.Slave
              extended by com.elasticbox.jenkins.ElasticBoxSlave
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.Node>, hudson.model.ModelObject, hudson.model.ReconfigurableDescribable<hudson.model.Node>, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, Serializable, jenkins.util.io.OnMaster

public class ElasticBoxSlave
extends hudson.model.Slave

Author:
Phong Nguyen Le
See Also:
Serialized Form

Nested Class Summary
static class ElasticBoxSlave.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.model.Slave
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor
 
Nested classes/interfaces inherited from class hudson.model.Node
hudson.model.Node.InternalComputerListener, hudson.model.Node.Mode
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.Slave
name, remoteFS
 
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave
 
Constructor Summary
ElasticBoxSlave(String name, boolean singleUse)
           
ElasticBoxSlave(String name, boolean singleUse, String remoteFS, int numExecutors)
           
 
Method Summary
 boolean canTerminate()
           
 hudson.model.Computer createComputer()
           
 void delete()
           
 ElasticBoxCloud getCloud()
           
 net.sf.json.JSONObject getInstance()
           
 String getInstanceId()
           
 String getInstancePageUrl()
           
 String getInstanceStatusMessage()
           
 String getInstanceUrl()
           
 net.sf.json.JSONObject getProfile()
           
 String getProfileId()
           
 boolean isInUse()
           
 boolean isSingleUse()
           
 boolean isTerminated()
           
 void setCloud(ElasticBoxCloud cloud)
           
 void setInstanceStatusMessage(String message)
           
 void setInstanceUrl(String instanceUrl)
           
 void setInUse(boolean inUse)
           
 void setProfileId(String profileId)
           
 void terminate()
           
 
Methods inherited from class hudson.model.Slave
createLauncher, equals, getClockDifference, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeName, setRetentionStrategy, setUserId
 
Methods inherited from class hudson.model.Node
canTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isHoldOffLaunchUntilSave, reconfigure, 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, toString, wait, wait, wait
 

Constructor Detail

ElasticBoxSlave

public ElasticBoxSlave(String name,
                       boolean singleUse)
                throws hudson.model.Descriptor.FormException,
                       IOException
Throws:
hudson.model.Descriptor.FormException
IOException

ElasticBoxSlave

public ElasticBoxSlave(String name,
                       boolean singleUse,
                       String remoteFS,
                       int numExecutors)
                throws hudson.model.Descriptor.FormException,
                       IOException
Throws:
hudson.model.Descriptor.FormException
IOException
Method Detail

createComputer

public hudson.model.Computer createComputer()
Overrides:
createComputer in class hudson.model.Slave

setInstanceUrl

public void setInstanceUrl(String instanceUrl)

getInstanceUrl

public String getInstanceUrl()

getInstancePageUrl

public String getInstancePageUrl()
                          throws IOException
Throws:
IOException

getInstanceId

public String getInstanceId()

isSingleUse

public boolean isSingleUse()

setInUse

public void setInUse(boolean inUse)

isInUse

public boolean isInUse()

setCloud

public void setCloud(ElasticBoxCloud cloud)

getCloud

public ElasticBoxCloud getCloud()

setInstanceStatusMessage

public void setInstanceStatusMessage(String message)

getInstanceStatusMessage

public String getInstanceStatusMessage()

getProfileId

public String getProfileId()

setProfileId

public void setProfileId(String profileId)

canTerminate

public boolean canTerminate()
                     throws IOException
Throws:
IOException

terminate

public void terminate()
               throws IOException
Throws:
IOException

delete

public void delete()
            throws IOException
Throws:
IOException

isTerminated

public boolean isTerminated()
                     throws IOException
Throws:
IOException

getInstance

public net.sf.json.JSONObject getInstance()
                                   throws IOException
Throws:
IOException

getProfile

public net.sf.json.JSONObject getProfile()
                                  throws IOException
Throws:
IOException


Copyright © 2004-2014. All Rights Reserved.