Class AsyncMessageSendActionForUt

java.lang.Object
nablarch.core.db.support.DbAccessSupport
nablarch.fw.action.BatchActionBase<D>
nablarch.fw.action.BatchAction<nablarch.core.db.statement.SqlRow>
nablarch.fw.messaging.action.AsyncMessageSendAction
nablarch.test.core.messaging.AsyncMessageSendActionForUt
All Implemented Interfaces:
nablarch.fw.DataReaderFactory<nablarch.core.db.statement.SqlRow>, nablarch.fw.Handler<nablarch.core.db.statement.SqlRow,nablarch.fw.Result>, nablarch.fw.handler.ExecutionHandlerCallback<nablarch.fw.launcher.CommandLine,nablarch.fw.Result>, nablarch.fw.TransactionEventCallback<nablarch.core.db.statement.SqlRow>

public class AsyncMessageSendActionForUt extends nablarch.fw.messaging.action.AsyncMessageSendAction
リクエスト単体テスト用のメッセージ送信(応答なし)アクション。

本クラスは、バッチ起動引数で「errorCase=true」が指定された場合に、 例外を送出し異常系のテストとして処理を行う。

バッチ起動引数でerrorCaseが指定されていない場合や、errorCaseがfalseの場合には、 AsyncMessageSendActionに処理を委譲する。

Author:
hisaaki sioiri
  • Nested Class Summary

    Nested classes/interfaces inherited from interface nablarch.fw.TransactionEventCallback

    nablarch.fw.TransactionEventCallback.Provider<TData extends Object>
  • Field Summary

    Fields inherited from interface nablarch.fw.TransactionEventCallback

    REQUEST_DATA_REQUEST_SCOPE_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nablarch.fw.Result
    handle(nablarch.core.db.statement.SqlRow inputData, nablarch.fw.ExecutionContext ctx)
     
    protected void
    initialize(nablarch.fw.launcher.CommandLine command, nablarch.fw.ExecutionContext context)
     

    Methods inherited from class nablarch.fw.messaging.action.AsyncMessageSendAction

    createDataRecordFormatter, createFormInstance, createHeaderRecord, createHeaderRecordFormatter, createReader, createStatement, getFormatDir, getHeaderFormatName, getQueueName, getSettings, getSqlResource, transactionAbnormalEnd, transactionNormalEnd, updateStatus

    Methods inherited from class nablarch.fw.action.BatchActionBase

    error, errorInExecution, postExecution, preExecution, terminate, transactionFailure, transactionSuccess, writeErrorLog, writeFatalLog, writeLog

    Methods inherited from class nablarch.core.db.support.DbAccessSupport

    countByParameterizedSql, countByStatementSql, getParameterizedSqlStatement, getParameterizedSqlStatement, getSqlCStatement, getSqlPStatement, search

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AsyncMessageSendActionForUt

      public AsyncMessageSendActionForUt()
  • Method Details

    • initialize

      protected void initialize(nablarch.fw.launcher.CommandLine command, nablarch.fw.ExecutionContext context)
      Overrides:
      initialize in class nablarch.fw.messaging.action.AsyncMessageSendAction
    • handle

      public nablarch.fw.Result handle(nablarch.core.db.statement.SqlRow inputData, nablarch.fw.ExecutionContext ctx)
      Specified by:
      handle in interface nablarch.fw.Handler<nablarch.core.db.statement.SqlRow,nablarch.fw.Result>
      Overrides:
      handle in class nablarch.fw.messaging.action.AsyncMessageSendAction