org.kuali.maven.ec2
Class AbstractEC2Mojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.kuali.maven.ec2.AbstractEC2Mojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DescribeInstancesMojo, LaunchMojo, TerminateMojo

public abstract class AbstractEC2Mojo
extends org.apache.maven.plugin.AbstractMojo


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractEC2Mojo()
           
 
Method Summary
 String getAccessKey()
           
protected  com.amazonaws.auth.AWSCredentials getCredentials()
           
protected  com.amazonaws.services.ec2.AmazonEC2 getEC2Client()
           
protected  com.amazonaws.services.ec2.model.Instance getInstance(com.amazonaws.services.ec2.AmazonEC2 client, String instanceId)
           
 String getSecretKey()
           
protected  String getTagValue(com.amazonaws.services.ec2.model.Instance i, String tag)
           
protected  boolean isEmpty(Collection<?> c)
           
 void setAccessKey(String accessKey)
           
 void setSecretKey(String secretKey)
           
protected  void sleep(int millis)
           
protected  void waitForState(com.amazonaws.services.ec2.AmazonEC2 client, String instanceId, String state, int waitTimeout)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractEC2Mojo

public AbstractEC2Mojo()
Method Detail

getCredentials

protected com.amazonaws.auth.AWSCredentials getCredentials()

getEC2Client

protected com.amazonaws.services.ec2.AmazonEC2 getEC2Client()

getTagValue

protected String getTagValue(com.amazonaws.services.ec2.model.Instance i,
                             String tag)

getInstance

protected com.amazonaws.services.ec2.model.Instance getInstance(com.amazonaws.services.ec2.AmazonEC2 client,
                                                                String instanceId)

isEmpty

protected boolean isEmpty(Collection<?> c)

waitForState

protected void waitForState(com.amazonaws.services.ec2.AmazonEC2 client,
                            String instanceId,
                            String state,
                            int waitTimeout)
                     throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

sleep

protected void sleep(int millis)

getAccessKey

public String getAccessKey()

setAccessKey

public void setAccessKey(String accessKey)

getSecretKey

public String getSecretKey()

setSecretKey

public void setSecretKey(String secretKey)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.