All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.boozallen.aiops.mda.basic.SparkJavaDataDeliveryBasicDriver Maven / Gradle / Ivy

Go to download

Contains a barebones model with all features turned off to verify basic MDA generation and compilation

There is a newer version: 1.10.0
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy