Package org.yamcs.activities
Class Activity
java.lang.Object
org.yamcs.activities.Activity
- All Implemented Interfaces:
Comparable<Activity>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintvoidStop a successful activityvoidcompleteExceptionally(String failureReason, User user) Stop an activity.getArgs()getId()intgetSeq()longgetStart()longgetStop()getType()booleanvoidsetComment(String comment) voidvoidsetFailureReason(String failureReason) voidsetStatus(ActivityStatus status) toTuple()
-
Constructor Details
-
Activity
-
Activity
-
-
Method Details
-
getId
-
getStatus
-
setStatus
-
getStart
public long getStart() -
getSeq
public int getSeq() -
getType
-
getArgs
-
getStartedBy
-
getStoppedBy
-
getComment
-
setComment
-
getDetail
-
setDetail
-
getStop
public long getStop() -
getFailureReason
-
setFailureReason
-
isStopped
public boolean isStopped() -
cancel
-
complete
Stop a successful activity -
completeExceptionally
Stop an activity. If failureReason is null, the activity is considered successful. -
toTuple
-
compareTo
- Specified by:
compareToin interfaceComparable<Activity>
-