Package io.digdag.spi
Interface CommandStatus
-
public interface CommandStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default com.google.common.base.Optional<java.lang.String>getErrorMessage()Return error message.java.lang.StringgetIoDirectory()Return the same String with CommandRequest.getIoDirectory.intgetStatusCode()Return exit code of command finished.booleanisFinished()Check command is finished or not.com.fasterxml.jackson.databind.node.ObjectNodetoJson()
-
-
-
Method Detail
-
isFinished
boolean isFinished()
Check command is finished or not.- Returns:
-
getStatusCode
int getStatusCode()
Return exit code of command finished. It is valid only when isFinished returns true.- Returns:
-
getErrorMessage
default com.google.common.base.Optional<java.lang.String> getErrorMessage()
Return error message.- Returns:
-
getIoDirectory
java.lang.String getIoDirectory()
Return the same String with CommandRequest.getIoDirectory.- Returns:
-
toJson
com.fasterxml.jackson.databind.node.ObjectNode toJson()
-
-