クラス ContainerStatus

java.lang.ObjectSE
org.springframework.boot.buildpack.platform.json.MappedObject
org.springframework.boot.buildpack.platform.docker.type.ContainerStatus

public class ContainerStatus extends MappedObject
Docker container wait から返されたステータスの詳細。
導入:
2.3.0
作成者:
Scott Frederick
  • メソッドの詳細

    • getStatusCode

      public int getStatusCode()
      コンテナーの終了ステータスコードを返します。
      戻り値:
      終了ステータスコード
    • getWaitingErrorMessage

      public StringSE getWaitingErrorMessage()
      コンテナーの停止を待機しているエラーを示すメッセージを返します。
      戻り値:
      待機中のエラーメッセージ
    • of

      public static ContainerStatus of(InputStreamSE content) throws IOExceptionSE
      指定された JSON コンテンツストリームから新しい ContainerStatus インスタンスを作成します。
      パラメーター:
      content - JSON コンテンツストリーム
      戻り値:
      新しい ContainerStatus インスタンス
      例外:
      IOExceptionSE - IO エラー時
    • of

      public static ContainerStatus of(int statusCode, StringSE errorMessage)
      指定された値で新しい ContainerStatus インスタンスを作成します。
      パラメーター:
      statusCode - ステータスコード
      errorMessage - エラーメッセージ
      戻り値:
      新しい ContainerStatus インスタンス