|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.JobImpl
public abstract class JobImpl
Base implementation of a Job
| Constructor Summary | |
|---|---|
JobImpl(RouterContext context)
|
|
| Method Summary | |
|---|---|
(package private) void |
addedToQueue()
Deprecated. As of 0.8.1, this is a noop, as it just adds classes to the log manager class list for no good reason. Logging in jobs is almost always set explicitly rather than by class name. |
void |
dropped()
the router is extremely overloaded, so this job has been dropped. |
Exception |
getAddedBy()
Deprecated. |
RouterContext |
getContext()
|
long |
getJobId()
unique id |
long |
getMadeReadyOn()
|
JobTiming |
getTiming()
Timing criteria for the task |
void |
madeReady()
|
protected void |
requeue(long delayMs)
Warning - only call this from runJob() or if Job is not already queued, or else it gets the job queue out of order. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.i2p.router.Job |
|---|
getName, runJob |
| Constructor Detail |
|---|
public JobImpl(RouterContext context)
| Method Detail |
|---|
public long getJobId()
Job
getJobId in interface Jobpublic JobTiming getTiming()
Job
getTiming in interface Jobpublic final RouterContext getContext()
public String toString()
toString in class Objectvoid addedToQueue()
public Exception getAddedBy()
getAddedBy in interface Jobpublic long getMadeReadyOn()
public void madeReady()
public void dropped()
Job
dropped in interface Jobprotected void requeue(long delayMs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||