com.atlassian.bamboo.maven.plugins.aws
Class AbstractImageRebuildMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.bamboo.maven.plugins.aws.AbstractImageRebuildMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
Ec2CreateImageMojo, Ec2RunMojo, Ec2SshMojo

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


Field Summary
protected  com.atlassian.util.concurrent.LazyReference<com.amazonaws.services.s3.AmazonS3> awsS3Client
           
protected  org.apache.maven.project.MavenProject project
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractImageRebuildMojo()
           
 
Method Summary
protected  com.amazonaws.services.ec2.model.DescribeInstancesResult describeInstances(java.util.List<java.lang.String> instanceIds)
           
 void execute()
           
protected abstract  void executeMojo()
           
protected  com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region getRegion()
           
 
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
 

Field Detail

project

protected org.apache.maven.project.MavenProject project

awsS3Client

protected final com.atlassian.util.concurrent.LazyReference<com.amazonaws.services.s3.AmazonS3> awsS3Client
Constructor Detail

AbstractImageRebuildMojo

public AbstractImageRebuildMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

executeMojo

protected abstract void executeMojo()
                             throws org.apache.maven.plugin.MojoExecutionException,
                                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getRegion

protected com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region getRegion()

describeInstances

@NotNull
protected com.amazonaws.services.ec2.model.DescribeInstancesResult describeInstances(@NotNull
                                                                                             java.util.List<java.lang.String> instanceIds)
                                                                              throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2013 Atlassian. All Rights Reserved.