Class WorkflowInfo

  • All Implemented Interfaces:
    JobInfo

    public class WorkflowInfo
    extends java.lang.Object
    implements JobInfo
    The workflow description.
    • Constructor Detail

      • WorkflowInfo

        public WorkflowInfo​(long id,
                            java.lang.String name,
                            Status status,
                            long lastUpdated,
                            java.lang.String errorType,
                            java.lang.String errorMessage,
                            java.util.List<JobInfo> children)
        Default constructor.
        Parameters:
        id - id of the workflow
        name - name of the workflow
        status - Status of the workflow
        lastUpdated - lastUpdated time in milliseconds
        errorType - error type
        errorMessage - error message
        children - list of child job infos
      • WorkflowInfo

        public WorkflowInfo​(alluxio.grpc.JobInfo jobInfo)
                     throws java.io.IOException
        Constructor from the proto object.
        Parameters:
        jobInfo - proto representation of the job
        Throws:
        java.io.IOException
    • Method Detail

      • getId

        public long getId()
        Specified by:
        getId in interface JobInfo
        Returns:
        job id
      • getParentId

        @Nullable
        public java.lang.Long getParentId()
        Specified by:
        getParentId in interface JobInfo
        Returns:
        parent job id
      • getName

        @Nonnull
        public java.lang.String getName()
        Specified by:
        getName in interface JobInfo
        Returns:
        name of the job
      • getDescription

        @Nonnull
        public java.lang.String getDescription()
        Specified by:
        getDescription in interface JobInfo
        Returns:
        description of the job
      • getStatus

        @Nonnull
        public Status getStatus()
        Specified by:
        getStatus in interface JobInfo
        Returns:
        status of the job
      • getLastUpdated

        public long getLastUpdated()
        Specified by:
        getLastUpdated in interface JobInfo
        Returns:
        last updated time in milliseconds
      • getChildren

        @Nonnull
        public java.util.List<JobInfo> getChildren()
        Specified by:
        getChildren in interface JobInfo
        Returns:
        collection of children
      • getResult

        @Nullable
        public java.io.Serializable getResult()
        Specified by:
        getResult in interface JobInfo
        Returns:
        result of the job
      • getErrorType

        @Nonnull
        public java.lang.String getErrorType()
        Specified by:
        getErrorType in interface JobInfo
        Returns:
        error type
      • getErrorMessage

        @Nonnull
        public java.lang.String getErrorMessage()
        Specified by:
        getErrorMessage in interface JobInfo
        Returns:
        error message
      • toProto

        @Nonnull
        public alluxio.grpc.JobInfo toProto()
                                     throws java.io.IOException
        Specified by:
        toProto in interface JobInfo
        Returns:
        proto representation of the job info
        Throws:
        java.io.IOException - if serialization fails
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object