public class JobTiming extends Object implements Clock.ClockUpdateListener
| Constructor and Description |
|---|
JobTiming(RouterContext context)Create a JobTiming for the given context. |
| Modifier and Type | Method and Description |
|---|---|
void | end()Record the current time as the actual end. |
long | getActualEnd()Get the actual end time when the job finished execution. |
long | getActualStart()Get the actual start time when the job began execution. |
long | getStartAfter()# of milliseconds after the epoch to start the job |
void | offsetChanged(long delta)Adjust all timing values by the specified delta |
void | setActualEnd(long actualEndTime)Set the actual end time when the job finished execution. |
void | setActualStart(long actualStartTime)Set the actual start time when the job began execution. |
void | setStartAfter(long startTime)WARNING - this does not force a resort of the job queue any more... |
void | start()Record the current time as the actual start. |
public JobTiming(RouterContext context)
context - the router contextpublic void end()
public long getActualEnd()
public long getActualStart()
public long getStartAfter()
public void offsetChanged(long delta)
offsetChanged in interface Clock.ClockUpdateListenerdelta - = (new offset - old offset),
where each offset = (now() - System.currentTimeMillis())public void setActualEnd(long actualEndTime)
actualEndTime - the actual end timepublic void setActualStart(long actualStartTime)
actualStartTime - the actual start timepublic void setStartAfter(long startTime)
startTime - the new start timepublic void start()