Class AsyncJob<S>

java.lang.Object
org.jclouds.cloudstack.domain.AsyncJob<S>

public class AsyncJob<S> extends Object
Class AsyncJob
  • Constructor Details

  • Method Details

    • builder

      public static <T> AsyncJob.Builder<?,T> builder()
    • toBuilder

      public AsyncJob.Builder toBuilder()
    • getAccountId

      @Nullable public String getAccountId()
      Returns:
      the account that executed the async command
    • getCmd

      @Nullable public String getCmd()
      Returns:
      the async command executed
    • getCreated

      @Nullable public Date getCreated()
      Returns:
      the created date of the job
    • getId

      public String getId()
      Returns:
      async job ID
    • getInstanceId

      @Nullable public String getInstanceId()
      Returns:
      the unique ID of the instance/entity object related to the job
    • getInstanceType

      @Nullable public String getInstanceType()
      Returns:
      the instance/entity object related to the job
    • getProgress

      public int getProgress()
      Returns:
      the progress information of the PENDING job
    • getResult

      @Nullable public S getResult()
      Returns:
      the result reason
    • getResultCode

      @Nullable public AsyncJob.ResultCode getResultCode()
      Returns:
      the result code for the job
    • getResultType

      @Nullable public String getResultType()
      Returns:
      the result type
    • getStatus

      @Nullable public AsyncJob.Status getStatus()
      Returns:
      the current job status-should be 0 for PENDING
    • getUserId

      @Nullable public String getUserId()
      Returns:
      the user that executed the async command
    • getError

      @Nullable public AsyncJobError getError()
      Returns:
      the error related to this command, or null if no error or error not yet encountered.
    • hasFailed

      public boolean hasFailed()
    • hasSucceed

      public boolean hasSucceed()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object