Package net.i2p.router
Class JobImpl
- java.lang.Object
-
- net.i2p.router.JobImpl
-
- All Implemented Interfaces:
Job
- Direct Known Subclasses:
Analysis,BootCommSystemJob,BootNetworkDbJob,BootPeerManagerJob,BuildTrustedLinksJob,CreateRouterInfoJob,CreateSessionJob,ExpireJob,ExpireLeasesJob,ExpireRoutersJob,ExploreKeySelectorJob,FloodfillMonitorJob,FloodfillRouterInfoFloodJob,FloodfillVerifyStoreJob,FloodOnlyLookupMatchJob,FloodOnlyLookupTimeoutJob,FloodSearchJob,GetBidsJob,HandleDatabaseLookupMessageJob,HandleFloodfillDatabaseStoreMessageJob,HandleGarlicMessageJob,IterativeLookupJob,IterativeTimeoutJob,LoadClientAppsJob,LoadRouterInfoJob,LookupDestJob,MessageReceivedJob,OutboundClientMessageOneShotJob,PeerTestJob,PersistRouterInfoJob,PublishLocalRouterInfoJob,ReadConfigJob,RebuildRouterInfoJob,RefreshRoutersJob,ReportAbuseJob,RepublishLeaseSetJob,RequestLeaseSetJob,SearchJob,SearchJob.FailedJob,SearchReplyJob,SearchUpdateReplyFoundJob,SendMessageDirectJob,SingleLookupJob,StartAcceptingClientsJob,StartExplorersJob,StartupJob,StoreJob,TestJob,UpdateRoutingKeyModifierJob
public abstract class JobImpl extends Object implements Job
Base implementation of a Job For use by the router only. Not to be used by applications or plugins.
-
-
Constructor Summary
Constructors Constructor Description JobImpl(RouterContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddropped()the router is extremely overloaded, so this job has been dropped.ExceptiongetAddedBy()Deprecated.RouterContextgetContext()longgetJobId()unique idlonggetMadeReadyOn()JobTiminggetTiming()Timing criteria for the taskvoidmadeReady()protected voidrequeue(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.StringtoString()
-
-
-
Constructor Detail
-
JobImpl
public JobImpl(RouterContext context)
-
-
Method Detail
-
getJobId
public long getJobId()
Description copied from interface:Jobunique id
-
getTiming
public JobTiming getTiming()
Description copied from interface:JobTiming criteria for the task
-
getContext
public final RouterContext getContext()
-
getAddedBy
@Deprecated public Exception getAddedBy()
Deprecated.- Specified by:
getAddedByin interfaceJob- Returns:
- null always
-
getMadeReadyOn
public long getMadeReadyOn()
-
madeReady
public void madeReady()
-
dropped
public void dropped()
Description copied from interface:Jobthe 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.
-
requeue
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.
-
-