Download Amazon AWS SDK User guide
Transcript
AWS SDK for Java Developer Guide Building and Running the Samples using the Command Line AwsFlowFramework These samples demonstrate how to use AWS Flow Framework. The following samples are included: • HelloWorld – this sample includes a simple workflow that calls an activity to print hello world to the console. It shows the basic usage of AWS Flow Framework, including defining contracts, implementation of activities and workflow coordination logic and worker programs to host them. • Booking – shows an example workflow for making a reservation, including flight and rental car. • FileProcessing – shows a workflow for media processing use case. The sample workflow downloads a file from an S3 bucket, creates a .zip file, and uploads that .zip file back to Amazon S3. The sample uses the task routing feature. • PeriodicWorkflow – shows how to create a workflow that periodically executes an activity. The workflow can run for extended periods; hence, it uses the continue as new execution feature. • SplitMerge – the workflow in this sample processes a large data set by splitting it up into smaller data sets. The sample calculates the average of a large set of numbers stored in a file in Amazon S3. The smaller data sets are assigned to workers, and the results of processing are merged to produce the final result. • Deployment – the workflow in this sample shows deployment of interdependent components. • Cron – the workflow in this sample starts an activity periodically based on a cron schedule. • CronWithRetry – this is an enhanced version of the Cron sample that uses the exponential retry feature to retry the activity if it fails. Building and Running the Samples using the Command Line The samples include Ant build scripts so that you can easily build and run them from the command line. Each sample also contains a README file in HTML format that contains information specific to each sample. Tip If you are browsing the sample code on GitHub, click the Raw button in the source code display when viewing the README.html file for a sample. In raw mode, the HTML will render as intended in your browser. Prerequisites Version v1.0.0 69