Package com.streamconverter
Class CommandResult.Builder
java.lang.Object
com.streamconverter.CommandResult.Builder
- Enclosing class:
CommandResult
CommandResultのビルダークラス
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
CommandResultインスタンスを生成withCommandName
(String commandName) コマンド名を設定withEndTime
(Instant endTime) 終了時刻を設定withErrorMessage
(String errorMessage) エラーメッセージを設定withExecMillis
(long execMillis) 実行時間を設定withInputBytes
(long inputBytes) 入力バイト数を設定withOutputBytes
(long outputBytes) 出力バイト数を設定withStartTime
(Instant startTime) 開始時刻を設定withSuccess
(boolean success) 成功フラグを設定
-
Constructor Details
-
Builder
public Builder()Default constructor for CommandResult Builder.
-
-
Method Details
-
withCommandName
コマンド名を設定- Parameters:
commandName
- コマンド名- Returns:
- Builderインスタンス
-
withSuccess
成功フラグを設定- Parameters:
success
- 成功フラグ- Returns:
- Builderインスタンス
-
withExecMillis
実行時間を設定- Parameters:
execMillis
- 実行時間(ミリ秒)- Returns:
- Builderインスタンス
-
withInputBytes
入力バイト数を設定- Parameters:
inputBytes
- 入力バイト数- Returns:
- Builderインスタンス
-
withOutputBytes
出力バイト数を設定- Parameters:
outputBytes
- 出力バイト数- Returns:
- Builderインスタンス
-
withErrorMessage
エラーメッセージを設定- Parameters:
errorMessage
- エラーメッセージ- Returns:
- Builderインスタンス
-
withStartTime
開始時刻を設定- Parameters:
startTime
- 開始時刻- Returns:
- Builderインスタンス
-
withEndTime
終了時刻を設定- Parameters:
endTime
- 終了時刻- Returns:
- Builderインスタンス
-
build
CommandResultインスタンスを生成- Returns:
- CommandResultインスタンス
-