public JobStatus getJobStatus()

in genie-client/src/main/java/com/netflix/genie/client/JobClient.java [764:783]


    public JobStatus getJobStatus(
        final String jobId
    ) throws IOException, GenieClientException {
        if (StringUtils.isEmpty(jobId)) {
            throw new IllegalArgumentException("Missing required parameter: jobId.");
        }
        final JsonNode jsonNode = this.jobService.getJobStatus(jobId).execute().body();
        if (jsonNode == null || jsonNode.getNodeType() != JsonNodeType.OBJECT) {
            throw new GenieClientException("Unknown response from server: " + jsonNode);
        }
        try {
            final JsonNode statusNode = jsonNode.get(STATUS);
            if (statusNode == null || statusNode.getNodeType() != JsonNodeType.STRING) {
                throw new GenieClientException("Unknown response format for status: " + statusNode);
            }
            return JobStatus.parse(statusNode.asText());
        } catch (GeniePreconditionException ge) {
            throw new GenieClientException(ge.getMessage());
        }
    }