public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
awaitState(Job job,
Job.State state,
long timeout,
java.util.concurrent.TimeUnit unit)
Wait for the job to reach the specified state.
|
static java.lang.String |
simpleTS()
Generate a simple timestamp with the form
HH:mm:ss.SSS |
public static java.lang.String simpleTS()
HH:mm:ss.SSS
public static boolean awaitState(Job job, Job.State state, long timeout, java.util.concurrent.TimeUnit unit)
A placeholder till GraphJob directly supports awaitState()?
job
- the jobstate
- the state to wait fortimeout
- specify -1 to wait forever (until interrupted)unit
- may be null if timeout is -1Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641