public class ProgramState extends Object
Constructor and Description |
---|
ProgramState(ProgramStatus status,
String failureInfo)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getFailureInfo()
Return any available information on the reason of failure of the program.
|
ProgramStatus |
getStatus()
Return the
ProgramStatus of the program. |
String |
toString() |
public ProgramState(ProgramStatus status, @Nullable String failureInfo)
status
- status of the programfailureInfo
- cause of failure, null if the program execution is succeededpublic ProgramStatus getStatus()
ProgramStatus
of the program.@Nullable public String getFailureInfo()
Copyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.