Search in sources :

Example 11 with TdchOperationType

use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.

the class TdchUtilsTest method getTdchProcessResultWithSuccessExitCode.

private static TdchProcessResult getTdchProcessResultWithSuccessExitCode() {
    int exitValue = 0;
    TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
    String[] logLines = new String[4];
    logLines[0] = "     Map input records=6";
    logLines[1] = "     Map output records=5";
    logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
    logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
    return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
Also used : TdchProcessResult(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchProcessResult) TdchOperationType(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType)

Example 12 with TdchOperationType

use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.

the class TdchUtilsTest method getTdchProcessResultWithNoTimeTaken.

private static TdchProcessResult getTdchProcessResultWithNoTimeTaken() {
    int exitValue = 0;
    TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
    String[] logLines = new String[4];
    logLines[0] = "     Map input records=6";
    logLines[1] = "     Map output records=5";
    logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
    logLines[3] = null;
    return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
Also used : TdchProcessResult(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchProcessResult) TdchOperationType(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType)

Example 13 with TdchOperationType

use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.

the class TdchUtilsTest method getTdchProcessResultWithInvalidOutputRecordCountShortLineInfo.

private static TdchProcessResult getTdchProcessResultWithInvalidOutputRecordCountShortLineInfo() {
    int exitValue = 0;
    TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
    String[] logLines = new String[4];
    logLines[0] = "     Map input records=6";
    logLines[1] = "No output rec";
    logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
    logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
    return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
Also used : TdchProcessResult(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchProcessResult) TdchOperationType(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType)

Example 14 with TdchOperationType

use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.

the class TdchUtilsTest method getTdchProcessResultWithFailureExitCode.

private static TdchProcessResult getTdchProcessResultWithFailureExitCode() {
    int exitValue = -1;
    TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
    String[] logLines = new String[4];
    logLines[0] = "     Map input records=6";
    logLines[1] = "     Map output records=5";
    logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
    logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
    return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
Also used : TdchProcessResult(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchProcessResult) TdchOperationType(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType)

Example 15 with TdchOperationType

use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.

the class TdchUtilsTest method getTdchProcessResultWithEmptyExitCode.

private static TdchProcessResult getTdchProcessResultWithEmptyExitCode() {
    int exitValue = 0;
    TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
    String[] logLines = new String[4];
    logLines[0] = "     Map input records=6";
    logLines[1] = "     Map output records=5";
    logLines[2] = "";
    logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
    return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
Also used : TdchProcessResult(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchProcessResult) TdchOperationType(com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType)

Aggregations

TdchOperationType (com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType)18 TdchProcessResult (com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchProcessResult)18