/*
* This code was generated by AWS Flow Framework Annotation Processor.
* Refer to Amazon Simple Workflow Service documentation at http://aws.amazon.com/documentation/swf
*
* Any changes made directly to this file will be lost when
* the code is regenerated.
*/
package com.eucalyptus.simplequeue.workflow;
import com.amazonaws.services.simpleworkflow.flow.DataConverter;
import com.amazonaws.services.simpleworkflow.flow.StartWorkflowOptions;
import com.amazonaws.services.simpleworkflow.flow.WorkflowClientFactoryBase;
import com.amazonaws.services.simpleworkflow.flow.generic.GenericWorkflowClient;
import com.amazonaws.services.simpleworkflow.model.WorkflowExecution;
import com.amazonaws.services.simpleworkflow.model.WorkflowType;
public class CloudWatchWorkflowClientFactoryImpl extends WorkflowClientFactoryBase<CloudWatchWorkflowClient> implements CloudWatchWorkflowClientFactory {
public CloudWatchWorkflowClientFactoryImpl() {
this(null, null, null);
}
public CloudWatchWorkflowClientFactoryImpl(StartWorkflowOptions startWorkflowOptions) {
this(startWorkflowOptions, null, null);
}
public CloudWatchWorkflowClientFactoryImpl(StartWorkflowOptions startWorkflowOptions, DataConverter dataConverter) {
this(startWorkflowOptions, dataConverter, null);
}
public CloudWatchWorkflowClientFactoryImpl(StartWorkflowOptions startWorkflowOptions, DataConverter dataConverter,
GenericWorkflowClient genericClient) {
super(startWorkflowOptions, new com.amazonaws.services.simpleworkflow.flow.JsonDataConverter(), genericClient);
}
@Override
protected CloudWatchWorkflowClient createClientInstance(WorkflowExecution execution,
StartWorkflowOptions options, DataConverter dataConverter, GenericWorkflowClient genericClient) {
WorkflowType workflowType = new WorkflowType();
workflowType.setName("CloudWatchWorkflow.sendMetrics");
workflowType.setVersion("2.0");
return new CloudWatchWorkflowClientImpl(execution, workflowType, options, dataConverter, genericClient);
}
}