public DistributedProgramLiveInfo getLiveInfo(String appId, ProgramType programType, String programName)
throws IOException, ProgramNotFoundException, UnAuthorizedAccessTokenException {
URL url = config.resolveURL(String.format("apps/%s/%s/%s/live-info",
appId, programType.getCategoryName(), programName));
HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(),
HttpURLConnection.HTTP_NOT_FOUND);
if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
throw new ProgramNotFoundException(programType, appId, programName);
}
return ObjectResponse.fromJsonBody(response, DistributedProgramLiveInfo.class).getResponseObject();
}