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 Details

  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object
    • getAddedBy

      @Deprecated public Exception getAddedBy()
      Deprecated.
      Specified by:
      getAddedBy in interface Job
      Returns:
      null always
    • getMadeReadyOn

      public long getMadeReadyOn()
    • madeReady

      @Deprecated public void madeReady()
      Deprecated.
      use madeReady(long)
      Deprecated to avoid JobQueue deadlocks
    • madeReady

      public void madeReady(long now)
      For JobQueue only, not for external use
      Since:
      0.9.55
    • 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)
      Warning - only call this from runJob() or if Job is not already queued, or else it gets the job queue out of order.