Class Activity

java.lang.Object
org.yamcs.activities.Activity
All Implemented Interfaces:
Comparable<Activity>

public class Activity extends Object implements Comparable<Activity>
  • Constructor Details

  • Method Details

    • getId

      public UUID getId()
    • getStatus

      public ActivityStatus getStatus()
    • setStatus

      public void setStatus(ActivityStatus status)
    • getStart

      public long getStart()
    • getSeq

      public int getSeq()
    • getType

      public String getType()
    • getArgs

      public Map<String,Object> getArgs()
    • getStartedBy

      public String getStartedBy()
    • getStoppedBy

      public String getStoppedBy()
    • getComment

      public String getComment()
    • setComment

      public void setComment(String comment)
    • getDetail

      public String getDetail()
    • setDetail

      public void setDetail(String detail)
    • getStop

      public long getStop()
    • getFailureReason

      public String getFailureReason()
    • setFailureReason

      public void setFailureReason(String failureReason)
    • isStopped

      public boolean isStopped()
    • cancel

      public void cancel(User user)
    • complete

      public void complete(User user)
      Stop a successful activity
    • completeExceptionally

      public void completeExceptionally(String failureReason, User user)
      Stop an activity. If failureReason is null, the activity is considered successful.
    • toTuple

      public Tuple toTuple()
    • compareTo

      public int compareTo(Activity other)
      Specified by:
      compareTo in interface Comparable<Activity>