net.i2p.router
Class JobImpl
java.lang.Object
net.i2p.router.JobImpl
- All Implemented Interfaces:
- Job
- Direct Known Subclasses:
- BootCommSystemJob, BootNetworkDbJob, BootPeerManagerJob, BuildTrustedLinksJob, CreateRouterInfoJob, CreateSessionJob, ExpireJob, ExpireLeasesJob, ExpireRoutersJob, ExploreKeySelectorJob, FloodfillMonitorJob, FloodfillVerifyStoreJob, FloodOnlyLookupMatchJob, FloodOnlyLookupTimeoutJob, FloodSearchJob, GetBidsJob, HandleDatabaseLookupMessageJob, HandleDatabaseStoreMessageJob, HandleFloodfillDatabaseStoreMessageJob, HandleGarlicMessageJob, HarvesterJob, LoadClientAppsJob, LoadClientAppsJob.DelayedRunClient, LoadRouterInfoJob, LookupDestJob, MessageReceivedJob, OutboundClientMessageOneShotJob, PeerTestJob, PublishLocalRouterInfoJob, ReadConfigJob, RebuildRouterInfoJob, ReportAbuseJob, RepublishLeaseSetJob, RepublishLeaseSetJob.OnRepublishFailure, RepublishLeaseSetJob.OnRepublishSuccess, RequestLeaseSetJob, SearchJob, SearchJob.FailedJob, SearchReplyJob, SearchUpdateReplyFoundJob, SendMessageDirectJob, SingleLookupJob, StartAcceptingClientsJob, StartExplorersJob, StartupJob, StoreJob, TestJob
public abstract class JobImpl
- extends java.lang.Object
- implements Job
Base implementation of a Job
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JobImpl
public JobImpl(RouterContext context)
getJobId
public long getJobId()
- Description copied from interface:
Job
- unique id
- Specified by:
getJobId
in interface Job
getTiming
public JobTiming getTiming()
- Description copied from interface:
Job
- Timing criteria for the task
- Specified by:
getTiming
in interface Job
getContext
public final RouterContext getContext()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
addedToQueue
void addedToQueue()
getAddedBy
public java.lang.Exception getAddedBy()
- Specified by:
getAddedBy
in interface Job
getMadeReadyOn
public long getMadeReadyOn()
madeReady
public void madeReady()
dropped
public void dropped()
- Description copied from interface:
Job
- the router is extremely overloaded, so this job has been dropped. if for
some reason the job *must* do some cleanup / requeueing of other tasks, it
should do so here.
- Specified by:
dropped
in interface Job
requeue
protected void requeue(long delayMs)