Package com.amazonaws.services.simpleworkflow.flow

Examples of com.amazonaws.services.simpleworkflow.flow.ActivitySchedulingOptions


            // It is safe to call Promise.get() here as deploySelf is called after
            // all Databases AppServer depends on are already deployed
            dataSources.add(db.getUrl().get());
        }
        // Use host name as taskList to route request to appropriate host
        ActivitySchedulingOptions options = new ActivitySchedulingOptions();
        options.setTaskList(getHost());
        return activities.deployAppServer(dataSources, options);
    }
View Full Code Here


    private DeploymentActivitiesClient activities;

    @Override
    protected Promise<String> deploySelf() {
        // Use host name as taskList to route request to appropriate host
        ActivitySchedulingOptions options = new ActivitySchedulingOptions();
        options.setTaskList(getHost());
        return activities.deployDatabase(options);
    }
View Full Code Here

            // It is safe to call Promise.get() here as deploySelf is called after
            // all components WebServer depends on are already deployed
            appServerUrls.add(appServer.getUrl().get());
        }
        // Use host name as taskList to route request to appropriate host
        ActivitySchedulingOptions options = new ActivitySchedulingOptions();
        options.setTaskList(getHost());
        return activities.deployWebServer(appServerUrls, dataSources, options);
    }
View Full Code Here

            // It is safe to call Promise.get() here as deploySelf is called after
            // all components WebServer depends on are already deployed
            urls.add(webServer.getUrl().get());
        }
        // Use host name as taskList to route request to appropriate host
        ActivitySchedulingOptions options = new ActivitySchedulingOptions();
        options.setTaskList(getHost());
        return activities.deployLoadBalancer(urls, options);
    }
View Full Code Here

            @Override
            protected void doFinally() throws Throwable {
                if (taskList.isReady()) { // File was downloaded

                    // Set option to schedule activity in worker specific task list
                    ActivitySchedulingOptions options = new ActivitySchedulingOptions().withTaskList(taskList.get());

                    // Call deleteLocalFile activity using the host specific task list
                    store.deleteLocalFile(localSourceFilename, options);
                    store.deleteLocalFile(localTargetFilename, options);
                }
View Full Code Here

    @Asynchronous
    private Promise<Void> processFileOnHost(String fileToProcess, String fileToUpload, Promise<String> taskList) {
        state = "Downloaded to " + taskList.get();
        // Call the activity to process the file using worker specific task list
        ActivitySchedulingOptions options = new ActivitySchedulingOptions().withTaskList(taskList.get());
        return processor.processFile(fileToProcess, fileToUpload, options);
    }
View Full Code Here

    @Asynchronous
    private void upload(final String targetBucketName, final String targetFilename, final String localTargetFilename,
            Promise<String> taskList, Promise<Void> fileProcessed) {
        state = "Processed at " + taskList.get();
        ActivitySchedulingOptions options = new ActivitySchedulingOptions().withTaskList(taskList.get());
        store.upload(targetBucketName, localTargetFilename, targetFilename, options);
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.simpleworkflow.flow.ActivitySchedulingOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.