Interface TaskAttemptResultOrBuilder (0.70.0)

public interface TaskAttemptResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExitCode()

public abstract int getExitCode()

Output only. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.

At most one of exit_code or term_signal will be set.

int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The exitCode.

getStatus()

public abstract Status getStatus()

Output only. The status of this attempt. If the status code is OK, then the attempt succeeded.

.google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The status.

getStatusOrBuilder()

public abstract StatusOrBuilder getStatusOrBuilder()

Output only. The status of this attempt. If the status code is OK, then the attempt succeeded.

.google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getTermSignal()

public abstract int getTermSignal()

Output only. Termination signal of the container. This is set to non-zero if the container is terminated by the system.

At most one of exit_code or term_signal will be set.

int32 term_signal = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The termSignal.

hasStatus()

public abstract boolean hasStatus()

Output only. The status of this attempt. If the status code is OK, then the attempt succeeded.

.google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.