private JobID parseJobId(String jobIdString) throws CliArgsException { JobID jobId; try { jobId = JobID.fromHexString(jobIdString); } catch (IllegalArgumentException e) { throw new CliArgsException(e.getMessage()); } return jobId; }
private static MapState<EmailId, EmailInformation> getMapState( String jobId, QueryableStateClient client, MapStateDescriptor<EmailId, EmailInformation> stateDescriptor) throws InterruptedException, ExecutionException { CompletableFuture<MapState<EmailId, EmailInformation>> resultFuture = client.getKvState( JobID.fromHexString(jobId), QsConstants.QUERY_NAME, QsConstants.KEY, // which key of the keyed state to access BasicTypeInfo.STRING_TYPE_INFO, stateDescriptor); return resultFuture.get(); } }
String jobID = jobArchivePath.getName(); try { JobID.fromHexString(jobID); } catch (IllegalArgumentException iae) { LOG.debug("Archive directory {} contained file with unexpected name {}. Ignoring file.",
JsonNode job = finishedJobs.get(0); JobID jobId = JobID.fromHexString(job.get("jid").asText()); String name = job.get("name").asText(); JobStatus state = JobStatus.valueOf(job.get("state").asText());
/** * Returns the JobID from the given path in ZooKeeper. * * @param path in ZooKeeper * @return JobID associated with the given path */ public static JobID jobIdfromPath(final String path) { return JobID.fromHexString(path); } }
/** * Returns the JobID from the given path in ZooKeeper. * * @param path in ZooKeeper * @return JobID associated with the given path */ public static JobID jobIdfromPath(final String path) { return JobID.fromHexString(path); } }
/** * Returns the JobID from the given path. * * @return JobID associated with the given path */ public static JobID jobIdfromPath(final String path) { return JobID.fromHexString(path); } }
/** * Returns the JobID from the given path in ZooKeeper. * * @param path in ZooKeeper * @return JobID associated with the given path */ public static JobID jobIdfromPath(final String path) { return JobID.fromHexString(path); } }
/** * Returns the JobID from the given path in ZooKeeper. * * @param path in ZooKeeper * @return JobID associated with the given path */ public static JobID jobIdfromPath(final String path) { return JobID.fromHexString(path); } }
@Override public JobID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return JobID.fromHexString(p.getValueAsString()); } }
@Override public JobID convertStringToValue(String value) throws ConversionException { try { return JobID.fromHexString(value); } catch (IllegalArgumentException iae) { throw new ConversionException("Not a valid job ID: " + value, iae); } }
private JobID parseJobId(String jobIdString) throws CliArgsException { JobID jobId; try { jobId = JobID.fromHexString(jobIdString); } catch (IllegalArgumentException e) { throw new CliArgsException(e.getMessage()); } return jobId; }
@Override public JobID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return JobID.fromHexString(p.getValueAsString()); } }
@Override public JobID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return JobID.fromHexString(p.getValueAsString()); } }
@Override public JobID convertStringToValue(String value) throws ConversionException { try { return JobID.fromHexString(value); } catch (IllegalArgumentException iae) { throw new ConversionException("Not a valid job ID: " + value, iae); } }
@Override public JobID convertStringToValue(String value) throws ConversionException { try { return JobID.fromHexString(value); } catch (IllegalArgumentException iae) { throw new ConversionException("Not a valid job ID: " + value, iae); } }
/** * Returns a JobID for the event's path. */ private JobID fromEvent(PathChildrenCacheEvent event) { return JobID.fromHexString(ZKPaths.getNodeFromPath(event.getData().getPath())); } }
/** * Returns a JobID for the event's path. */ private JobID fromEvent(PathChildrenCacheEvent event) { return JobID.fromHexString(ZKPaths.getNodeFromPath(event.getData().getPath())); } }
/** * Returns a JobID for the event's path. */ private JobID fromEvent(PathChildrenCacheEvent event) { return JobID.fromHexString(ZKPaths.getNodeFromPath(event.getData().getPath())); } }
/** * Returns a JobID for the event's path. */ private JobID fromEvent(PathChildrenCacheEvent event) { return JobID.fromHexString(ZKPaths.getNodeFromPath(event.getData().getPath())); } }