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

com.boozallen.aiops.mda.generator.AsynchronousStepJavaGenerator Maven / Gradle / Ivy

The newest version!
package com.boozallen.aiops.mda.generator;

/*-
 * #%L
 * AIOps Foundation::AIOps MDA
 * %%
 * Copyright (C) 2021 Booz Allen
 * %%
 * This software package is licensed under the Booz Allen Public License. All Rights Reserved.
 * #L%
 */

import static com.boozallen.aiops.mda.generator.util.PipelineUtils.isAsynchronousStep;

import org.technologybrewery.fermenter.mda.generator.GenerationContext;

import com.boozallen.aiops.mda.metamodel.element.Step;

/**
 * Generate asynchronous step implementations for the target pipeline.
 */
public class AsynchronousStepJavaGenerator extends TargetedPipelineStepJavaGenerator {
    /*--~-~-~~
     * Usages:
     * | Target                | Template                                                 | Generated File                   |
     * |-----------------------|----------------------------------------------------------|----------------------------------|
     * | javaBatchCreatorBase  | data-delivery-spark/asynchronous.processor.base.java.vm  | ${basePackage}/${name}Base.java  |
     * | javaBatchCreatorImpl  | data-delivery-spark/asynchronous.processor.impl.java.vm  | ${basePackage}/${name}.java      |
     */


    @Override
    protected boolean shouldGenerateStep(Step step, GenerationContext generationContext) {
        return isAsynchronousStep(step);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy