Class ExecuteContext
java.lang.Object
com.infoteria.asteria.flowengine2.log.Logger
com.infoteria.asteria.flowengine2.execute.ExecuteContext
- All Implemented Interfaces:
com.infoteria.asteria.connection.ConnectionContext,com.infoteria.asteria.log.ILogger,Cloneable
- Direct Known Subclasses:
MappingSimulatorContext,RecoveryContext,TestContext
public abstract class ExecuteContext
extends Logger
implements Cloneable, com.infoteria.asteria.connection.ConnectionContext
フローの実行コンテキストを表すクラスです。
このクラスからセッションや変数などの実行時情報を取得することができます。
このクラスからセッションや変数などの実行時情報を取得することができます。
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExecuteContext(com.infoteria.asteria.flowengine2.framework.FlowWorkInfo info) protectedExecuteContext(com.infoteria.asteria.flowengine2.framework.FlowWorkInfo info, boolean doInheritConnection) protectedExecuteContext(String catName, com.infoteria.asteria.util.resource.MessageFormat mf) -
Method Summary
Modifier and TypeMethodDescriptionvoidトランザクションを追加します。booleanvoidDeprecated.voiddebug(int code) デバッグログの出力voidデバッグログの出力voidデバッグログの出力voidデバッグログの出力voidデバッグログの出力voidデバッグログの出力voidデバッグのログ出力。voidデバッグログの出力voidデバッグログの出力voiddebugInfo(int code) デバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voidデバッグ情報のログ出力。voiderror(int code) エラーログの出力voidエラーログの出力voidエラーログの出力voidエラーログの出力voidエラーログの出力voidエラーログの出力voidエラーのログ出力。voidエラーログの出力voidエラーログの出力voidfatal(int code) 致命的エラーログの出力void致命的エラーログの出力void致命的エラーログの出力void致命的エラーログの出力void致命的エラーログの出力void致命的エラーログの出力void致命的エラーのログ出力。void致命的エラーログの出力void致命的エラーログの出力protected voidflowExternalVariablesSetting(com.infoteria.asteria.flowengine2.flow.Flow flow) protected voidflowLogSetting(com.infoteria.asteria.flowengine2.flow.Flow flow) 実行中のプロジェクトのベースディレクトリを返します。com.infoteria.asteria.flowengine2.checkpoint.CheckPointManagergetConnection(ConnectionProperty property) ConnectionPropertyの設定値に対応するConnectionを取得します。
リクエストの実行中に同じConnectionが複数回参照された場合は同一のConnectionインスタンスを返します。
対応するConnectionがない場合はExceptionとなります。getConnection(String conType, String conName) Connection種別とConnection名を指定してConnectionを取得します。
リクエストの実行中に同じConnectionが複数回参照された場合は同一のConnectionインスタンスを返します。
対応するConnectionがない場合はExceptionとなります。getConnectionEntry(String conType, String conName) Connection種別とConnection名を指定してConnectionEntryを取得します。
対応するConnectionEntryがない場合はnullとなります。getConnectionTransaction(ConnectionProperty property) ConnectionPropertyの設定値に対応するConnectionのTransactionを取得します。
リクエストの実行中に同じコネクションが複数回参照された場合は同一のTransactionインスタンスを返します。
対応するConnectionがリクエストで一度も使用されていない場合はnullを返します。getConnectionTransaction(String conType, String conName) Connection種別とコConnection名を指定してConnectionを取得します。
リクエストの実行中に同じコネクションが複数回参照された場合は同一のTransactionインスタンスを返します。
対応するConnectionがリクエストで一度も使用されていない場合はnullを返します。このフローで最後に発生したExceptionを取得します。getExternalVariables(String name) 名前を指定して外部変数を取得します。外部変数のマップを取得します。com.infoteria.asteria.flowmetrics.model.FlowMetrics実行中のフローのフロー名を返します。フロー変数を取得します。リクエスト実行中保持されるMapを返します。intフローがサブフロー、またはExceptionフローとして実行されている場合に親フローのExecuteContextを返します。
それ以外の場合はnullを返します。フローがExceptionフローとして実行されている場合に親フローで発生したExceptionを取得します。
それ以外の場合はnullが返ります。実行中のフローのプロジェクト名を返します。実行中のフローのプロジェクトオーナーを返します。プロジェクト変数を取得します。intintこのフローのSessionを取得します。セッション変数を取得します。longマッパーによって設定されたStatus文字列を保持するValueを返します。システム変数を取得します。getUser()実行ユーザを返します。
実行ユーザが設定されていない場合はnullを返します。voidinfo(int code) 情報ログの出力void情報ログの出力void情報ログの出力void情報ログの出力void情報ログの出力void情報ログの出力void情報のログ出力。void情報ログの出力void情報ログの出力booleanbooleanデバッグログの出力が可能かどうかを返します。booleanデバッグ情報の出力が有効な場合にtrueを返します。
このメソッドがfalseを返す場合はdebugInfoメソッドで出力された情報はログ出力されません。booleanエラーログの出力が可能かどうかを返します。boolean致命的エラーログの出力が可能かどうかを返します。boolean情報ログの出力が可能かどうかを返します。booleanフローがサブフローまたはExceptionフローとして実行されている場合、falseを返します。booleanbooleanこのフローがトランザクション化されている場合はtrueを返します。boolean警告ログの出力が可能かどうかを返します。void処理が実行中であることを通知します。
外部からリクエストの強制終了が実行されている場合はこのメソッドの実行によりエラーが発生します。voidDeprecated.voidsetAutoRetry(boolean value) voidvoidsetMaxRetryCount(int value) voidsetOtherServerRetry(boolean value) voidsetRetryCount(int value) voidsetRetryInterval(int value) voidsetStartTime(long time) boolean大容量ストリームを使用するかどうかを返します。voidwarn(int code) 警告ログの出力void警告ログの出力void警告ログの出力void警告ログの出力void警告ログの出力void警告ログの出力void警告のログ出力。void警告ログの出力void警告ログの出力Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.infoteria.asteria.log.ILogger
debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, info, info, info, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn, warn, warn, warn, warn, warn
-
Field Details
-
_connectionMap
-
-
Constructor Details
-
ExecuteContext
protected ExecuteContext(com.infoteria.asteria.flowengine2.framework.FlowWorkInfo info) -
ExecuteContext
protected ExecuteContext(com.infoteria.asteria.flowengine2.framework.FlowWorkInfo info, boolean doInheritConnection) -
ExecuteContext
-
-
Method Details
-
debugInfo
デバッグ情報のログ出力。- Specified by:
debugInfoin interfacecom.infoteria.asteria.connection.ConnectionContext
-
debugInfo
public void debugInfo(int code) デバッグ情報のログ出力。- Specified by:
debugInfoin interfacecom.infoteria.asteria.connection.ConnectionContext
-
debugInfo
デバッグ情報のログ出力。- Specified by:
debugInfoin interfacecom.infoteria.asteria.connection.ConnectionContext
-
debugInfo
デバッグ情報のログ出力。 -
debugInfo
デバッグ情報のログ出力。 -
debugInfo
デバッグ情報のログ出力。 -
debugInfo
デバッグ情報のログ出力。- Specified by:
debugInfoin interfacecom.infoteria.asteria.connection.ConnectionContext
-
debugInfo
デバッグ情報のログ出力。- Specified by:
debugInfoin interfacecom.infoteria.asteria.connection.ConnectionContext
-
debugInfo
デバッグ情報のログ出力。- Specified by:
debugInfoin interfacecom.infoteria.asteria.connection.ConnectionContext
-
isDebugInfoEnabled
public boolean isDebugInfoEnabled()デバッグ情報の出力が有効な場合にtrueを返します。
このメソッドがfalseを返す場合はdebugInfoメソッドで出力された情報はログ出力されません。- Specified by:
isDebugInfoEnabledin interfacecom.infoteria.asteria.connection.ConnectionContext
-
info
情報のログ出力。- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告のログ出力。- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーのログ出力。- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグのログ出力。- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーのログ出力。- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
getSession
このフローのSessionを取得します。 -
isTransaction
public boolean isTransaction()このフローがトランザクション化されている場合はtrueを返します。 -
getProjectName
実行中のフローのプロジェクト名を返します。 -
getBaseDirectory
実行中のプロジェクトのベースディレクトリを返します。 -
getProjectOwner
実行中のフローのプロジェクトオーナーを返します。 -
getUser
実行ユーザを返します。
実行ユーザが設定されていない場合はnullを返します。 -
getFlowName
実行中のフローのフロー名を返します。 -
useHighCapacityStreams
public boolean useHighCapacityStreams()大容量ストリームを使用するかどうかを返します。 -
flowExternalVariablesSetting
protected void flowExternalVariablesSetting(com.infoteria.asteria.flowengine2.flow.Flow flow) -
flowLogSetting
protected void flowLogSetting(com.infoteria.asteria.flowengine2.flow.Flow flow) -
getParentContext
フローがサブフロー、またはExceptionフローとして実行されている場合に親フローのExecuteContextを返します。
それ以外の場合はnullを返します。 -
getConnectionEntry
Connection種別とConnection名を指定してConnectionEntryを取得します。
対応するConnectionEntryがない場合はnullとなります。- Throws:
FlowException
-
getConnection
Connection種別とConnection名を指定してConnectionを取得します。
リクエストの実行中に同じConnectionが複数回参照された場合は同一のConnectionインスタンスを返します。
対応するConnectionがない場合はExceptionとなります。- Throws:
FlowException
-
getConnection
ConnectionPropertyの設定値に対応するConnectionを取得します。
リクエストの実行中に同じConnectionが複数回参照された場合は同一のConnectionインスタンスを返します。
対応するConnectionがない場合はExceptionとなります。- Throws:
FlowException
-
getConnectionTransaction
Connection種別とコConnection名を指定してConnectionを取得します。
リクエストの実行中に同じコネクションが複数回参照された場合は同一のTransactionインスタンスを返します。
対応するConnectionがリクエストで一度も使用されていない場合はnullを返します。 -
getConnectionTransaction
ConnectionPropertyの設定値に対応するConnectionのTransactionを取得します。
リクエストの実行中に同じコネクションが複数回参照された場合は同一のTransactionインスタンスを返します。
対応するConnectionがリクエストで一度も使用されていない場合はnullを返します。 -
commitConnection
Deprecated.フローがトランザクション化されていない場合に引数のConnectionをcommitします。
フローがトランザクション化されている場合は何もしません。- Throws:
FlowException
-
rollbackConnection
Deprecated.フローがトランザクション化されていない場合に引数のConnectionをrollbackします。
フローがトランザクション化されている場合は何もしません。- Throws:
FlowException
-
getProjectVariables
プロジェクト変数を取得します。 -
getFlowVariables
フロー変数を取得します。 -
getSessionVariables
セッション変数を取得します。 -
getExternalVariablesMap
外部変数のマップを取得します。 -
getExternalVariables
名前を指定して外部変数を取得します。 -
isOriginalContext
public boolean isOriginalContext()フローがサブフローまたはExceptionフローとして実行されている場合、falseを返します。 -
getSystemVariables
システム変数を取得します。 -
getParentException
フローがExceptionフローとして実行されている場合に親フローで発生したExceptionを取得します。
それ以外の場合はnullが返ります。 -
getCurrentException
このフローで最後に発生したExceptionを取得します。 -
getIndependentMap
リクエスト実行中保持されるMapを返します。 -
notifyRunning
処理が実行中であることを通知します。
外部からリクエストの強制終了が実行されている場合はこのメソッドの実行によりエラーが発生します。- Throws:
FlowException
-
addTransaction
トランザクションを追加します。- Throws:
FlowException
-
getStatusValue
マッパーによって設定されたStatus文字列を保持するValueを返します。 -
getCheckPointManager
public com.infoteria.asteria.flowengine2.checkpoint.CheckPointManager getCheckPointManager() -
isReRunContext
public boolean isReRunContext() -
getCheckPointStatus
-
getCheckPointStart
-
setStartTime
public void setStartTime(long time) -
getStartTime
public long getStartTime() -
getMaxRetryCount
public int getMaxRetryCount() -
setMaxRetryCount
public void setMaxRetryCount(int value) -
getRetryInterval
public int getRetryInterval() -
setRetryInterval
public void setRetryInterval(int value) -
canOtherServerRetry
public boolean canOtherServerRetry() -
setOtherServerRetry
public void setOtherServerRetry(boolean value) -
setAutoRetry
public void setAutoRetry(boolean value) -
isAutoRetry
public boolean isAutoRetry() -
getRetryCount
public int getRetryCount() -
setRetryCount
public void setRetryCount(int value) -
setCheckPointDataFileDir
-
getCheckPointDataFileDir
-
getFlowMetrics
public com.infoteria.asteria.flowmetrics.model.FlowMetrics getFlowMetrics() -
info
public void info(int code) 情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
info
情報ログの出力- Specified by:
infoin interfacecom.infoteria.asteria.log.ILogger
-
warn
public void warn(int code) 警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
warn
警告ログの出力- Specified by:
warnin interfacecom.infoteria.asteria.log.ILogger
-
error
public void error(int code) エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
error
エラーログの出力- Specified by:
errorin interfacecom.infoteria.asteria.log.ILogger
-
fatal
public void fatal(int code) 致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
fatal
致命的エラーログの出力- Specified by:
fatalin interfacecom.infoteria.asteria.log.ILogger
-
debug
public void debug(int code) デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
debug
デバッグログの出力- Specified by:
debugin interfacecom.infoteria.asteria.log.ILogger
-
isInfoEnabled
public boolean isInfoEnabled()情報ログの出力が可能かどうかを返します。- Specified by:
isInfoEnabledin interfacecom.infoteria.asteria.log.ILogger
-
isWarnEnabled
public boolean isWarnEnabled()警告ログの出力が可能かどうかを返します。- Specified by:
isWarnEnabledin interfacecom.infoteria.asteria.log.ILogger
-
isErrorEnabled
public boolean isErrorEnabled()エラーログの出力が可能かどうかを返します。- Specified by:
isErrorEnabledin interfacecom.infoteria.asteria.log.ILogger
-
isFatalEnabled
public boolean isFatalEnabled()致命的エラーログの出力が可能かどうかを返します。- Specified by:
isFatalEnabledin interfacecom.infoteria.asteria.log.ILogger
-
isDebugEnabled
public boolean isDebugEnabled()デバッグログの出力が可能かどうかを返します。- Specified by:
isDebugEnabledin interfacecom.infoteria.asteria.log.ILogger
-