/*
* 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.AmazonSimpleWorkflow;
import com.amazonaws.services.simpleworkflow.flow.DataConverter;
import com.amazonaws.services.simpleworkflow.flow.StartWorkflowOptions;
import com.amazonaws.services.simpleworkflow.flow.WorkflowClientFactoryExternalBase;
import com.amazonaws.services.simpleworkflow.flow.generic.GenericWorkflowClientExternal;
import com.amazonaws.services.simpleworkflow.model.WorkflowExecution;
import com.amazonaws.services.simpleworkflow.model.WorkflowType;
public class CloudWatchWorkflowClientExternalFactoryImpl extends WorkflowClientFactoryExternalBase<CloudWatchWorkflowClientExternal> implements CloudWatchWorkflowClientExternalFactory {
public CloudWatchWorkflowClientExternalFactoryImpl(AmazonSimpleWorkflow service, String domain) {
super(service, domain);
setDataConverter(new com.amazonaws.services.simpleworkflow.flow.JsonDataConverter());
}
public CloudWatchWorkflowClientExternalFactoryImpl() {
super(null);
setDataConverter(new com.amazonaws.services.simpleworkflow.flow.JsonDataConverter());
}
public CloudWatchWorkflowClientExternalFactoryImpl(GenericWorkflowClientExternal genericClient) {
super(genericClient);
setDataConverter(new com.amazonaws.services.simpleworkflow.flow.JsonDataConverter());
}
@Override
protected CloudWatchWorkflowClientExternal createClientInstance(WorkflowExecution workflowExecution,
StartWorkflowOptions options, DataConverter dataConverter, GenericWorkflowClientExternal genericClient) {
WorkflowType workflowType = new WorkflowType();
workflowType.setName("CloudWatchWorkflow.sendMetrics");
workflowType.setVersion("2.0");
return new CloudWatchWorkflowClientExternalImpl(workflowExecution, workflowType, options, dataConverter, genericClient);
}
}