|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.infoteria.asteria.flowengine2.log.Logger | +--com.infoteria.asteria.flowengine2.execute.ExecuteContext
フローの実行コンテキストを表すクラスです。
このクラスからセッションや変数などの実行時情報を取得することができます。
Field Summary | |
protected Map |
_connectionMap
|
Constructor Summary | |
protected |
ExecuteContext(com.infoteria.asteria.flowengine2.framework.FlowWorkInfo info)
|
protected |
ExecuteContext(String catName,
MessageFormat mf)
|
Method Summary | |
void |
addTransaction(Transaction t)
トランザクションを追加します。 |
boolean |
canOtherServerRetry()
|
void |
commitConnection(Connection con)
Deprecated. |
void |
debug(String m)
デバッグのログ出力。 |
void |
debugInfo(int code)
デバッグ情報のログ出力。 |
void |
debugInfo(int code,
Object o1)
デバッグ情報のログ出力。 |
void |
debugInfo(int code,
Object o1,
Object o2)
デバッグ情報のログ出力。 |
void |
debugInfo(int code,
Object o1,
Object o2,
Object o3)
デバッグ情報のログ出力。 |
void |
debugInfo(int code,
Object o,
Throwable t)
デバッグ情報のログ出力。 |
void |
debugInfo(int code,
Throwable t)
デバッグ情報のログ出力。 |
void |
debugInfo(String m)
デバッグ情報のログ出力。 |
void |
debugInfo(String m,
Throwable t)
デバッグ情報のログ出力。 |
void |
debugInfo(Throwable t)
デバッグ情報のログ出力。 |
void |
error(String m)
エラーのログ出力。 |
void |
fatal(String m)
致命的エラーのログ出力。 |
protected void |
flowExternalVariablesSetting(Flow flow)
|
protected void |
flowLogSetting(Flow flow)
|
String |
getBaseDirectory()
実行中のプロジェクトのベースディレクトリを返します。 |
File |
getCheckPointDataFileDir()
|
com.infoteria.asteria.flowengine2.checkpoint.CheckPointManager |
getCheckPointManager()
|
Date |
getCheckPointStart()
|
String |
getCheckPointStatus()
|
Connection |
getConnection(ConnectionProperty property)
ConnectionPropertyの設定値に対応するConnectionを取得します。 リクエストの実行中に同じConnectionが複数回参照された場合は同一のConnectionインスタンスを返します。 対応するConnectionがない場合はExceptionとなります。 |
Connection |
getConnection(String conType,
String conName)
Connection種別とコConnection名を指定してConnectionを取得します。 リクエストの実行中に同じConnectionが複数回参照された場合は同一のConnectionインスタンスを返します。 対応するConnectionがない場合はExceptionとなります。 |
ConnectionTransaction |
getConnectionTransaction(ConnectionProperty property)
ConnectionPropertyの設定値に対応するConnectionのTransactionを取得します。 リクエストの実行中に同じコネクションが複数回参照された場合は同一のTransactionインスタンスを返します。 対応するConnectionがリクエストで一度も使用されていない場合はnullを返します。 |
ConnectionTransaction |
getConnectionTransaction(String conType,
String conName)
Connection種別とコConnection名を指定してConnectionを取得します。 リクエストの実行中に同じコネクションが複数回参照された場合は同一のTransactionインスタンスを返します。 対応するConnectionがリクエストで一度も使用されていない場合はnullを返します。 |
FlowException |
getCurrentException()
このフローで最後に発生したExceptionを取得します。 |
ExternalVariables |
getExternalVariables(String name)
名前を指定して外部変数を取得します。 |
Map |
getExternalVariablesMap()
外部変数のマップを取得します。 |
String |
getFlowName()
実行中のフローのフロー名を返します。 |
VariableList |
getFlowVariables()
フロー変数を取得します。 |
Map |
getIndependentMap()
リクエスト実行中保持されるMapを返します。 |
int |
getMaxRetryCount()
|
ExecuteContext |
getParentContext()
フローがサブフロー、またはExceptionフローとして実行されている場合に親フローのExecuteContextを返します。 それ以外の場合はnullを返します。 |
FlowException |
getParentException()
フローがExceptionフローとして実行されている場合に親フローで発生したExceptionを取得します。 それ以外の場合はnullが返ります。 |
String |
getProjectName()
実行中のフローのプロジェクト名を返します。 |
User |
getProjectOwner()
実行中のフローのプロジェクトオーナーを返します。 |
VariableList |
getProjectVariables()
プロジェクト変数を取得します。 |
int |
getRetryCount()
|
int |
getRetryInterval()
|
FlowSession |
getSession()
このフローのSessionを取得します。 |
VariableList |
getSessionVariables()
セッション変数を取得します。 |
long |
getStartTime()
|
Value |
getStatusValue()
マッパーによって設定されたStatus文字列を保持するValueを返します。 |
SystemVariables |
getSystemVariables()
システム変数を取得します。 |
User |
getUser()
実行ユーザを返します。 実行ユーザが設定されていない場合はnullを返します。 |
void |
info(String m)
情報のログ出力。 |
boolean |
isAutoRetry()
|
boolean |
isDebugInfoEnabled()
デバッグ情報の出力が有効な場合にtrueを返します。 このメソッドがfalseを返す場合はdebugInfoメソッドで出力された情報はログ出力されません。 |
boolean |
isOriginalContext()
フローがサブフローまたはExceptionフローとして実行されている場合、falseを返します。 |
boolean |
isReRunContext()
|
boolean |
isTransaction()
このフローがトランザクション化されている場合はtrueを返します。 |
void |
notifyRunning()
処理が実行中であることを通知します。 外部からリクエストの強制終了が実行されている場合はこのメソッドの実行によりエラーが発生します。 |
void |
rollbackConnection(Connection con)
Deprecated. |
void |
setAutoRetry(boolean value)
|
void |
setCheckPointDataFileDir(File dir)
|
void |
setMaxRetryCount(int value)
|
void |
setOtherServerRetry(boolean value)
|
void |
setRetryCount(int value)
|
void |
setRetryInterval(int value)
|
void |
setStartTime(long time)
|
void |
warn(String m)
警告のログ出力。 |
Methods inherited from class com.infoteria.asteria.flowengine2.log.Logger |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.infoteria.asteria.log.ILogger |
debug, debug, debug, debug, debug, error, error, error, error, error, fatal, fatal, fatal, fatal, fatal, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn, warn, warn |
Field Detail |
protected Map _connectionMap
Constructor Detail |
protected ExecuteContext(com.infoteria.asteria.flowengine2.framework.FlowWorkInfo info)
protected ExecuteContext(String catName, MessageFormat mf)
Method Detail |
public void debugInfo(String m)
debugInfo
in interface com.infoteria.asteria.connection.ConnectionContext
public void debugInfo(int code)
debugInfo
in interface com.infoteria.asteria.connection.ConnectionContext
public void debugInfo(int code, Object o1)
debugInfo
in interface com.infoteria.asteria.connection.ConnectionContext
public void debugInfo(int code, Object o1, Object o2)
public void debugInfo(int code, Object o1, Object o2, Object o3)
public void debugInfo(Throwable t)
public void debugInfo(String m, Throwable t)
debugInfo
in interface com.infoteria.asteria.connection.ConnectionContext
public void debugInfo(int code, Throwable t)
debugInfo
in interface com.infoteria.asteria.connection.ConnectionContext
public void debugInfo(int code, Object o, Throwable t)
debugInfo
in interface com.infoteria.asteria.connection.ConnectionContext
public boolean isDebugInfoEnabled()
isDebugInfoEnabled
in interface com.infoteria.asteria.connection.ConnectionContext
public void info(String m)
info
in interface com.infoteria.asteria.log.ILogger
info
in class Logger
public void warn(String m)
warn
in interface com.infoteria.asteria.log.ILogger
warn
in class Logger
public void error(String m)
error
in interface com.infoteria.asteria.log.ILogger
error
in class Logger
public void debug(String m)
debug
in interface com.infoteria.asteria.log.ILogger
debug
in class Logger
public void fatal(String m)
fatal
in interface com.infoteria.asteria.log.ILogger
fatal
in class Logger
public FlowSession getSession()
public boolean isTransaction()
public String getProjectName()
public String getBaseDirectory()
public User getProjectOwner()
public User getUser()
public String getFlowName()
protected void flowExternalVariablesSetting(Flow flow)
protected void flowLogSetting(Flow flow)
public ExecuteContext getParentContext()
public Connection getConnection(String conType, String conName) throws FlowException
public Connection getConnection(ConnectionProperty property) throws FlowException
public ConnectionTransaction getConnectionTransaction(String conType, String conName)
public ConnectionTransaction getConnectionTransaction(ConnectionProperty property)
public void commitConnection(Connection con) throws FlowException
public void rollbackConnection(Connection con) throws FlowException
public VariableList getProjectVariables()
public VariableList getFlowVariables()
public VariableList getSessionVariables()
public Map getExternalVariablesMap()
public ExternalVariables getExternalVariables(String name)
public boolean isOriginalContext()
public SystemVariables getSystemVariables()
public FlowException getParentException()
public FlowException getCurrentException()
public Map getIndependentMap()
public void notifyRunning() throws FlowException
public void addTransaction(Transaction t) throws FlowException
public Value getStatusValue()
public com.infoteria.asteria.flowengine2.checkpoint.CheckPointManager getCheckPointManager()
public boolean isReRunContext()
public String getCheckPointStatus()
public Date getCheckPointStart()
public void setStartTime(long time)
public long getStartTime()
public int getMaxRetryCount()
public void setMaxRetryCount(int value)
public int getRetryInterval()
public void setRetryInterval(int value)
public boolean canOtherServerRetry()
public void setOtherServerRetry(boolean value)
public void setAutoRetry(boolean value)
public boolean isAutoRetry()
public int getRetryCount()
public void setRetryCount(int value)
public void setCheckPointDataFileDir(File dir)
public File getCheckPointDataFileDir()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |