@Override public Object call() throws Exception { try { return doVersionRequest(current.toString()); } catch (IOException e) { return null; } } });
public String toJsonString() { return Json.asStringUnchecked(this); } }
@Override public Supplier<List<URI>> getEndpointSupplier() { return Resolver.supplier(srv, domain); }
private <T> T tryGetEntity(final ZooKeeperClient client, String path, TypeReference<T> type, String name) { try { final byte[] data = client.getData(path); return Json.read(data, type); } catch (NoNodeException e) { return null; } catch (KeeperException | IOException e) { throw new HeliosRuntimeException("reading " + name + " info failed", e); } }
public static <T extends Descriptor> T parse(final byte[] bytes, Class<T> clazz) throws IOException { return Json.read(bytes, clazz); }
public JobsResource(final MasterModel model, final MasterMetrics metrics, final Set<String> whitelistedCapabilities) { this(model, metrics, whitelistedCapabilities, new SystemClock()); }
private Job getJob(final ZooKeeperClient client, final JobId id) { final String path = Paths.configJob(id); try { final byte[] data = client.getData(path); return Json.read(data, Job.class); } catch (NoNodeException e) { // Return null to indicate that the job does not exist return null; } catch (KeeperException | IOException e) { throw new HeliosRuntimeException("getting job " + id + " failed", e); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); }
public String toJsonString() { return Json.asStringUnchecked(this); }
public String toJsonString() { return Json.asStringUnchecked(this); }
public String toJsonString() { return Json.asStringUnchecked(this); } }
public String toJsonString() { return Json.asStringUnchecked(this); } }