|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hudson.ec2.launcher.Launcher
public class Launcher
Encapsulates the logic of starting a Hudson on EC2 with EBS.
| Constructor Summary | |
|---|---|
Launcher()
|
|
| Method Summary | |
|---|---|
InstanceState |
checkBootStatus(com.xerox.amazonws.ec2.ReservationDescription.Instance inst)
|
java.lang.String |
getAccessId()
|
com.xerox.amazonws.ec2.Jec2 |
getEc2()
|
com.xerox.amazonws.ec2.ReservationDescription.Instance |
getInstance()
|
org.jvnet.hudson.ec2.launcher.PrivateKeyFile |
getPrivateKey()
|
java.lang.String |
getSecretKey()
|
Storage |
getStorage()
|
void |
setCredential(java.lang.String accessId,
java.lang.String secretKey)
Configures the launcher withe the AWS credential. |
void |
setPrivateKey(java.io.File keyFile)
Sets the private key used for launching EC2 instances. |
void |
setStorage(Storage storage)
Chooses the storage to be used for Hudson. |
com.xerox.amazonws.ec2.ReservationDescription.Instance |
start()
Starts the EC2 instance asynchronously. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Launcher()
| Method Detail |
|---|
public com.xerox.amazonws.ec2.Jec2 getEc2()
public void setCredential(java.lang.String accessId,
java.lang.String secretKey)
throws com.xerox.amazonws.ec2.EC2Exception
com.xerox.amazonws.ec2.EC2Exception - If the given credential fails, including network connectivity problem.public java.lang.String getAccessId()
public java.lang.String getSecretKey()
public void setPrivateKey(java.io.File keyFile)
throws java.io.IOException,
com.xerox.amazonws.ec2.EC2Exception,
OperatorErrorException
java.io.IOException
com.xerox.amazonws.ec2.EC2Exception
OperatorErrorExceptionpublic org.jvnet.hudson.ec2.launcher.PrivateKeyFile getPrivateKey()
public void setStorage(Storage storage)
public Storage getStorage()
public com.xerox.amazonws.ec2.ReservationDescription.Instance getInstance()
public com.xerox.amazonws.ec2.ReservationDescription.Instance start()
throws com.xerox.amazonws.ec2.EC2Exception,
OperatorErrorException
com.xerox.amazonws.ec2.EC2Exception
OperatorErrorException
public InstanceState checkBootStatus(com.xerox.amazonws.ec2.ReservationDescription.Instance inst)
throws com.xerox.amazonws.ec2.EC2Exception
com.xerox.amazonws.ec2.EC2Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||