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 void
dropped()
the router is extremely overloaded, so this job has been dropped.Exception
getAddedBy()
Deprecated.RouterContext
getContext()
long
getJobId()
unique idlong
getMadeReadyOn()
JobTiming
getTiming()
Timing criteria for the taskvoid
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()
-
-
-
Constructor Detail
-
JobImpl
public JobImpl(RouterContext context)
-
-
Method Detail
-
getJobId
public long getJobId()
Description copied from interface:Job
unique id
-
getTiming
public JobTiming getTiming()
Description copied from interface:Job
Timing criteria for the task
-
getContext
public final RouterContext getContext()
-
getAddedBy
@Deprecated public Exception getAddedBy()
Deprecated.- Specified by:
getAddedBy
in interfaceJob
- Returns:
- null always
-
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.
-
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.
-
-