com.boozallen.aiops.mda.pattern.NativeInboundAndMessagingOutbound Maven / Gradle / Ivy
package com.boozallen.aiops.mda.pattern;
/*-
* #%L
* aiSSEMBLE::Test::MDA::Data Delivery Spark
* %%
* Copyright (C) 2021 Booz Allen
* %%
* This software package is licensed under the Booz Allen Public License. All Rights Reserved.
* #L%
*/
import java.lang.String;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import javax.enterprise.context.ApplicationScoped;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Instant;
import java.util.Map;
import com.boozallen.aissemble.core.metadata.MetadataModel;
/**
* Performs the business logic for NativeInboundAndMessagingOutbound.
*
* Because this class is {@link ApplicationScoped}, exactly one managed singleton instance will exist
* in any deployment.
*
* GENERATED STUB CODE - PLEASE ***DO*** MODIFY
*
* Originally generated from: templates/data-delivery-spark/synchronous.processor.impl.java.vm
*/
@ApplicationScoped
public class NativeInboundAndMessagingOutbound extends NativeInboundAndMessagingOutboundBase {
private static final Logger logger = LoggerFactory.getLogger(NativeInboundAndMessagingOutbound.class);
public NativeInboundAndMessagingOutbound(){
super("synchronous",getDataActionDescriptiveLabel());
}
/**
* Provides a descriptive label for the action that can be used for logging (e.g., provenance details).
*
* @return descriptive label
*/
private static String getDataActionDescriptiveLabel(){
// TODO: replace with descriptive label
return"NativeInboundAndMessagingOutbound";
}
/**
* {@inheritDoc}
*/
@Override
protected String executeStepImpl(Dataset inbound) {
// TODO: Add your business logic here for this step!
logger.error("Implement executeStepImpl(..) or remove this pipeline step!");
return null;
}
/**
* {@inheritDoc}
*/
@Override
protected MetadataModel createProvenanceMetadata(String resource,String subject,String action){
// TODO: Add any additional provenance-related metadata here
return new MetadataModel(resource,subject,action,Instant.now());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy