com.boozallen.aiops.mda.basic.SparkJavaDataDeliveryBasicDriver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-data-delivery-spark-model-basic Show documentation
Show all versions of test-data-delivery-spark-model-basic Show documentation
Contains a barebones model with all features turned off to verify basic MDA generation and compilation
package com.boozallen.aiops.mda.basic;
/*-
* #%L
* aiSSEMBLE::Test::MDA::Data Delivery Spark Basic
* %%
* Copyright (C) 2021 Booz Allen
* %%
* This software package is licensed under the Booz Allen Public License. All Rights Reserved.
* #L%
*/
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.CompletionStage;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.spi.CDI;
import com.boozallen.aiops.mda.basic.pipeline.PipelineBase;
/**
* Configures the steps needed to run a Spark-based implementation for SparkJavaDataDeliveryBasic.
*
* This pipeline serves the following purpose: ${pipeline.description}.
*
* Please **DO** modify with your customizations, as appropriate.
*
* Originally generated from: templates/pipeline.driver.impl.java.vm
*/
public class SparkJavaDataDeliveryBasicDriver extends SparkJavaDataDeliveryBasicBaseDriver {
private static final Logger logger = LoggerFactory.getLogger(SparkJavaDataDeliveryBasicDriver.class);
public static void main(String[] args) {
logger.info("STARTED: {} driver", "SparkJavaDataDeliveryBasic");
SparkJavaDataDeliveryBasicBaseDriver.main(args);
final ExampleSyncStep exampleSyncStep = CDI.current().select(ExampleSyncStep.class, new Any.Literal()).get();
exampleSyncStep.executeStep();
final ExampleAsyncStep exampleAsyncStep = CDI.current().select(ExampleAsyncStep.class, new Any.Literal()).get();
CompletionStage exampleAsyncStepResult = exampleAsyncStep.executeStep();
}
}